59
MenuScreen = View:extend {
60
--title = Text:new{text = "Test Platform Game", font = 48, wordWrap = false},
61
title = Tile:new{image = 'data/title.png', x = 0, y = 0},
62
onNew = function(self)
64
--self.title:centerAround(400, 200)
66
onUpdate = function(self, elapsed)
67
if the.keys:allJustPressed() then
68
the.app.view = GameView:new()
73
53
the.app = App:new {
75
55
onRun = function (self)
76
self.view = MenuScreen:new()
78
self.console:watch('VERSION', 'VERSION')
79
self.console:watch('onGround', 'the.player.onGround')
80
self.console:watch('onWall', 'the.player.onWall')
81
self.console:watch('updateTook', 'the.updateTook')
82
self.console:watch('drawTook', 'the.drawTook')
83
self.console:watch('recorder state', 'the.recorder.state')
56
self.view = GameView:new()
57
self.console:watch('onGround', 'the.player.onGround')
58
self.console:watch('onWall', 'the.player.onWall')
59
self.console:watch('updateTook', 'the.updateTook')
60
self.console:watch('drawTook', 'the.drawTook')
61
self.console:watch('recorder state', 'the.recorder.state')
86
63
--the.profiler = newProfiler('time', 2000)
87
64
--the.profiler = newProfiler()