示例#1
0
func (self *Simra) SetScene(driver Driver) {
	peer.LogDebug("IN")
	peer.GetGLPeer().Reset()
	peer.GetTouchPeer().RemoveAllTouchListener()

	self.driver = driver
	driver.Initialize()
	peer.LogDebug("OUT")
}
示例#2
0
func (self *Gomo) Initialize(onStart, onStop chan bool, updateCallback func()) {
	peer.LogDebug("IN")
	self.glPeer = peer.GetGLPeer()
	self.touchPeer = peer.GetTouchPeer()
	self.onStart = onStart
	self.onStop = onStop
	self.updateCallback = updateCallback
	peer.LogDebug("OUT")
}
示例#3
0
func (self *Stage1) Initialize() {
	peer.LogDebug("[IN]")

	peer.SetDesiredScreenSize(1080/2, 1920/2)
	peer.GetTouchPeer().AddTouchListener(self)

	// initialize sprites
	self.initSprite()

	peer.LogDebug("[OUT]")
}
示例#4
0
文件: title.go 项目: sassy/gomo-simra
func (self *Title) Initialize() {
	peer.LogDebug("[IN]")

	peer.SetDesiredScreenSize(960, 540)
	peer.GetTouchPeer().AddTouchListener(self)

	// initialize sprites
	self.initialize()

	peer.LogDebug("[OUT]")
}