diff options
Diffstat (limited to 'Scripts/init.lua')
-rw-r--r-- | Scripts/init.lua | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Scripts/init.lua b/Scripts/init.lua index da2517f..80fee32 100644 --- a/Scripts/init.lua +++ b/Scripts/init.lua @@ -4,20 +4,24 @@ player = { Player = 0, EventListeners = { MoveLeftPressed = function(self) - self.Velocity.x = self.Velocity.x - 3.0 + --self.Velocity.x = self.Velocity.x - 3.0 + self.Velocity.y = self.Velocity.y - 1.0 self.Render.flipx = true; end, MoveLeftReleased = function(self) -- TODO can't put text at world coordinates right now --game.puts("default", self.Position.x, self.Position.y+100, "Hey. Hag?") - self.Velocity.x = self.Velocity.x + 3.0 + --self.Velocity.x = self.Velocity.x + 3.0 + self.Velocity.y = self.Velocity.y + 1.0 end, MoveRightPressed = function(self) - self.Velocity.x = self.Velocity.x + 3.0 + --self.Velocity.x = self.Velocity.x + 3.0 + self.Velocity.y = self.Velocity.y + 1.0 self.Render.flipx = false; end, MoveRightReleased = function(self) - self.Velocity.x = self.Velocity.x - 3.0 + --self.Velocity.x = self.Velocity.x - 3.0 + self.Velocity.y = self.Velocity.y - 1.0 end, JumpKeyPressed = function(self) if self.Physics.standing == true then @@ -28,7 +32,7 @@ player = { end }, Position = { - 15.0, 10.0 + 15.0, 20.0 }, Velocity = { x = 0.0, @@ -91,7 +95,7 @@ ball = { dofile("Scripts/world.lua") playerSpawn = game.spawn(player); -game.spawn(ball); +--game.spawn(ball); ------------------- -- SERIALIZING -- |