5
deque = require 'deque'
10
GameView = View:extend {
11
onNew = function (self)
12
--self:loadLayers('data/map.lua')
13
--self.focus = the.player
14
--self:clampTo(self.bg)
16
the.player = Player:new{x = the.app.width / 2,
17
y = the.app.height / 2}
20
onUpdate = function(self, dt)
21
if the.keys:justPressed('escape', 'q') then
29
onRun = function (self)
30
print('Version: ' .. VERSION)
32
self.view = GameView:new()
35
self.console:watch('VERSION', 'VERSION')
37
-- back off that dark overlay a bit
38
self.console.fill.fill[4] = 75