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 ¶
OnTouchBegin is called when Title scene is Touched. It is caused by calling AddtouchListener for stage1.gopher sprite.
func (*Stage1) OnTouchEnd ¶
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 ¶
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 ¶
OnTouchBegin is called when Title scene is Touched. It is caused by calling AddtouchListener for title.background sprite.
func (*Title) OnTouchEnd ¶
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 ¶
OnTouchMove is called when Title scene is Touched and moved. It is caused by calling AddtouchListener for title.background sprite.