2
image = 'data/player-null.png',
7
self.movementScale = self.height / 32
8
--print(self.movementScale)
10
--self.scale = self.scaleHeight / self.height
11
--self.width = self.height * .826
12
--self.width = self.width * self.scale
15
onStartFrame = function(self)
16
local ms = self.movementScale
17
if DEBUG and the.console.visible then
21
if the.keys:pressed('up') then
22
self.velocity.y = -100 * ms
23
elseif the.keys:pressed('down') then
24
self.velocity.y = 100 * ms
29
if the.keys:pressed('right') then
30
self.velocity.x = 100 * ms
31
elseif the.keys:pressed('left') then
32
self.velocity.x = -100 * ms
37
onUpdate = function(self, dt)
38
self:collide(the.view)
40
onEndFrame = function(self)
41
if self.y < self.minY then
44
if self.y > self.maxY then
b'\\ No newline at end of file'