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: 4 Imported by: 0

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

func (ctrltrial *CtrlTrial) OnTouchBegin(x, y float32)

OnTouchBegin is called when CtrlTrial scene is Touched.

func (*CtrlTrial) OnTouchEnd

func (ctrltrial *CtrlTrial) OnTouchEnd(x, y float32)

OnTouchEnd is called when CtrlTrial scene is Touched and it is released.

func (*CtrlTrial) OnTouchMove

func (ctrltrial *CtrlTrial) OnTouchMove(x, y float32)

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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