aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/init.lua')
-rw-r--r--Scripts/init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/Scripts/init.lua b/Scripts/init.lua
index d2abb00..9e6848e 100644
--- a/Scripts/init.lua
+++ b/Scripts/init.lua
@@ -4,19 +4,19 @@ player = {
Player = 0,
EventListeners = {
MoveLeftPressed = function(self)
- self.Velocity.x = self.Velocity.x - 3
+ self.Velocity.x = self.Velocity.x - 3.0
self.Render.flipx = true;
end,
MoveLeftReleased = function(self)
game.puts("default", self.Position.x, self.Position.y, "Hey.")
- self.Velocity.x = self.Velocity.x + 3
+ self.Velocity.x = self.Velocity.x + 3.0
end,
MoveRightPressed = function(self)
- self.Velocity.x = self.Velocity.x + 3
+ self.Velocity.x = self.Velocity.x + 3.0
self.Render.flipx = false;
end,
MoveRightReleased = function(self)
- self.Velocity.x = self.Velocity.x - 3
+ self.Velocity.x = self.Velocity.x - 3.0
end,
JumpKeyPressed = function(self)
if self.Physics.standing == true then