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, 8 insertions, 0 deletions
diff --git a/Scripts/init.lua b/Scripts/init.lua
index 6f510c1..1292ba1 100644
--- a/Scripts/init.lua
+++ b/Scripts/init.lua
@@ -14,6 +14,13 @@ bird = {
end,
MoveRightReleased = function(self)
self.Velocity.x = self.Velocity.x - 100
+ end,
+ JumpKeyPressed = function(self)
+ if self.Physics.standing == true then
+ self.Velocity.y = self.Velocity.y + 210
+ end
+ end,
+ JumpKeyReleased = function(self)
end
},
Position = {
@@ -24,6 +31,7 @@ bird = {
x = 0.0,
y = 0.0
},
+ Physics = 0,
Name = "bord",
hellotrue = true,
hellofalse = false,