Update deepnight.p8
This commit is contained in:
parent
a7bc208450
commit
1247ccc5a9
|
|
@ -19,15 +19,6 @@ local player = {
|
||||||
dx = 0,
|
dx = 0,
|
||||||
dy = 0,
|
dy = 0,
|
||||||
|
|
||||||
setCoordinates = function(self, x, y)
|
|
||||||
self.xx = x
|
|
||||||
self.yy = y
|
|
||||||
self.cx = flr(self.xx / TILESIZE)
|
|
||||||
self.xy = flr(self.yy / TILESIZE)
|
|
||||||
self.xr = (self.xx - self.cx * TILESIZE) / TILESIZE
|
|
||||||
self.xy = (self.yy - self.cy * TILESIZE) / TILESIZE
|
|
||||||
end,
|
|
||||||
|
|
||||||
update = function(self)
|
update = function(self)
|
||||||
-- Apply gravity
|
-- Apply gravity
|
||||||
self.dy = self.dy + 0.05
|
self.dy = self.dy + 0.05
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user