aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Scripts/init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/Scripts/init.lua b/Scripts/init.lua
index d1f108c..a57e8b3 100644
--- a/Scripts/init.lua
+++ b/Scripts/init.lua
@@ -3,12 +3,14 @@ bird = {
EventListeners = {
MoveLeftPressed = function(self)
self.Velocity.x = self.Velocity.x - 100
+ self.Render.flipx = true;
end,
MoveLeftReleased = function(self)
self.Velocity.x = self.Velocity.x + 100
end,
MoveRightPressed = function(self)
self.Velocity.x = self.Velocity.x + 100
+ self.Render.flipx = false;
end,
MoveRightReleased = function(self)
self.Velocity.x = self.Velocity.x - 100