aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/scripts/local2P.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/assets/scripts/local2P.lua b/assets/scripts/local2P.lua
index 7413406..fe3f91e 100644
--- a/assets/scripts/local2P.lua
+++ b/assets/scripts/local2P.lua
@@ -315,9 +315,6 @@ function ApplyPhysics(character)
character.x = character.x + character.x_velocity * deltaTime
character.x_velocity = character.x_velocity * 0.88
- print(character.name, character.x_velocity)
- print(character.name, character.y_velocity)
-
if character.y_velocity > 0 then
-- Falling
if IsOnGround(character) then
@@ -352,8 +349,8 @@ function Update()
ApplyPhysics(player2Character)
-- Render characters
- queueTextureForRender(player1Character.current_sprite, math.floor(player1Character.x), math.floor(player1Character.y))
- queueTextureForRender(player2Character.current_sprite, math.floor(player2Character.x), math.floor(player2Character.y))
+ queueTextureForRender(player1Character.current_sprite, math.ceil(player1Character.x), math.ceil(player1Character.y))
+ queueTextureForRender(player2Character.current_sprite, math.ceil(player2Character.x), math.ceil(player2Character.y))
-- Environment
DrawGroundTiles()