Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ButtonBlueTouchListener ¶
type ButtonBlueTouchListener struct {
// contains filtered or unexported fields
}
ButtonBlueTouchListener represents a listener object to notify touch event of Blue Button
func (*ButtonBlueTouchListener) OnTouchBegin ¶
func (ctrltrial *ButtonBlueTouchListener) OnTouchBegin(x, y float32)
OnTouchBegin is called when Blue Button is Touched.
func (*ButtonBlueTouchListener) OnTouchEnd ¶
func (ctrltrial *ButtonBlueTouchListener) OnTouchEnd(x, y float32)
OnTouchEnd is called when Blue Button is Touched and it is released.
func (*ButtonBlueTouchListener) OnTouchMove ¶
func (ctrltrial *ButtonBlueTouchListener) OnTouchMove(x, y float32)
OnTouchMove is called when Blue Button is Touched and moved.
type ButtonRedTouchListener ¶
type ButtonRedTouchListener struct {
// contains filtered or unexported fields
}
ButtonRedTouchListener represents a listener object to notify touch event of Red Button
func (*ButtonRedTouchListener) OnTouchBegin ¶
func (ctrltrial *ButtonRedTouchListener) OnTouchBegin(x, y float32)
OnTouchBegin is called when Red Button is Touched.
func (*ButtonRedTouchListener) OnTouchEnd ¶
func (ctrltrial *ButtonRedTouchListener) OnTouchEnd(x, y float32)
OnTouchEnd is called when Red Button is Touched and it is released.
func (*ButtonRedTouchListener) OnTouchMove ¶
func (ctrltrial *ButtonRedTouchListener) OnTouchMove(x, y float32)
OnTouchMove is called when Red Button is Touched and moved.
type CtrlTrial ¶
type CtrlTrial struct {
// contains filtered or unexported fields
}
CtrlTrial represents a scene object for CtrlTrial
func (*CtrlTrial) Drive ¶
func (ctrltrial *CtrlTrial) Drive()
Drive is called from simra. This is used to update sprites position. This will be called 60 times per sec.
func (*CtrlTrial) Initialize ¶
func (ctrltrial *CtrlTrial) Initialize()
Initialize initializes CtrlTrial scene This is called from simra. simra.GetInstance().SetDesiredScreenSize should be called to determine screen size of this scene.
func (*CtrlTrial) OnTouchBegin ¶
OnTouchBegin is called when CtrlTrial scene is Touched.
func (*CtrlTrial) OnTouchEnd ¶
OnTouchEnd is called when CtrlTrial scene is Touched and it is released.
func (*CtrlTrial) OnTouchMove ¶
OnTouchMove is called when CtrlTrial scene is Touched and moved.
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. This 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.