diff options
Diffstat (limited to 'Scripts/init.lua')
-rw-r--r-- | Scripts/init.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Scripts/init.lua b/Scripts/init.lua index 6d225f5..d1f108c 100644 --- a/Scripts/init.lua +++ b/Scripts/init.lua @@ -1,5 +1,19 @@ bird = { Player = 0, + EventListeners = { + MoveLeftPressed = function(self) + self.Velocity.x = self.Velocity.x - 100 + end, + MoveLeftReleased = function(self) + self.Velocity.x = self.Velocity.x + 100 + end, + MoveRightPressed = function(self) + self.Velocity.x = self.Velocity.x + 100 + end, + MoveRightReleased = function(self) + self.Velocity.x = self.Velocity.x - 100 + end + }, Position = { x = 150, y = 75 |