2
image = 'data/player-null.png',
6
self.movementScale = self.height / 32
7
print(self.movementScale)
9
--self.scale = self.scaleHeight / self.height
10
--self.width = self.height * .826
11
--self.width = self.width * self.scale
14
onStartFrame = function(self)
15
local ms = self.movementScale
17
if the.keys:pressed('up') then
18
self.velocity.y = -100 * ms
19
elseif the.keys:pressed('down') then
20
self.velocity.y = 100 * ms
25
if the.keys:pressed('right') then
26
self.velocity.x = 100 * ms
27
elseif the.keys:pressed('left') then
28
self.velocity.x = -100 * ms
33
onEndFrame = function(self)
34
if self.y < self.minY then
37
if self.y > self.maxY then
b'\\ No newline at end of file'