Update deepnight.p8
This commit is contained in:
@@ -19,15 +19,6 @@ local player = {
|
||||
dx = 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)
|
||||
-- Apply gravity
|
||||
self.dy = self.dy + 0.05
|
||||
|
||||
Reference in New Issue
Block a user