7
image = 'data/player.png',
8
onUpdate = function (self)
12
if the.keys:pressed('left') then
13
self.velocity.x = -200
14
elseif the.keys:pressed('right') then
20
GameView = View:extend {
21
onNew = function (self)
22
self:loadLayers('data/map.lua')
23
self.focus = the.player
24
self:clampTo(self.map)
27
onUpdate = function (self, dt)
28
self.map:subdisplace(the.player)
33
onRun = function (self)
34
self.view = GameView:new()
36
onUpdate = function (self, dt)
37
if the.keys:justPressed('escape') then
b'\\ No newline at end of file'