scene

package
v0.0.0-...-3c69f0b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stage1

type Stage1 struct {
	// contains filtered or unexported fields
}

Stage1 represents a scene of Stage1

func (*Stage1) Drive

func (stage1 *Stage1) Drive()

Drive is called from simra. This is used to update sprites position. Thsi will be called 60 times per sec.

func (*Stage1) Initialize

func (stage1 *Stage1) Initialize()

Initialize initializes Stage1 scene. This is called from simra. simra.GetInstance().SetDesiredScreenSize should be called to determine screen size of this scene. If SetDesiredScreenSize is already called in previous scene, this scene may not call the function.

func (*Stage1) OnTouchBegin

func (stage1 *Stage1) OnTouchBegin(x, y float32)

OnTouchBegin is called when Title scene is Touched. It is caused by calling AddtouchListener for stage1.gopher sprite.

func (*Stage1) OnTouchEnd

func (stage1 *Stage1) OnTouchEnd(x, y float32)

OnTouchEnd is called when Title scene is Touched and it is released. It is caused by calling AddtouchListener for stage1.gopher sprite.

func (*Stage1) OnTouchMove

func (stage1 *Stage1) OnTouchMove(x, y float32)

OnTouchMove is called when Title scene is Touched and moved. It is caused by calling AddtouchListener for stage1.gopher sprite.

type Title

type Title struct {
	// contains filtered or unexported fields
}

Title represents a scene object for Title

func (*Title) Drive

func (title *Title) Drive()

Drive is called from simra. This is used to update sprites position. Thsi will be called 60 times per sec.

func (*Title) Initialize

func (title *Title) Initialize()

Initialize initializes title scene This is called from simra. simra.GetInstance().SetDesiredScreenSize should be called to determine screen size of this scene.

func (*Title) OnTouchBegin

func (title *Title) OnTouchBegin(x, y float32)

OnTouchBegin is called when Title scene is Touched. It is caused by calling AddtouchListener for title.background sprite.

func (*Title) OnTouchEnd

func (title *Title) OnTouchEnd(x, y float32)

OnTouchEnd is called when Title scene is Touched and it is released. It is caused by calling AddtouchListener for title.background sprite.

func (*Title) OnTouchMove

func (title *Title) OnTouchMove(x, y float32)

OnTouchMove is called when Title scene is Touched and moved. It is caused by calling AddtouchListener for title.background sprite.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL