diff --git a/player.lua b/player.lua index b4d9235..12f9762 100644 --- a/player.lua +++ b/player.lua @@ -1,6 +1,6 @@ Player = Object:extend() -cos = math.cos -sin = math.sin --optimisation +local cos = math.cos +local sin = math.sin --optimisation -- Constructor for the Player class function Player:new(p, x, y, health, image, speed)