From 2b207c4282219bae06eff9589824dc851f014be3 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 29 Jun 2016 03:28:35 +0200 Subject: Flying Rayss! --- player.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'player.lua') diff --git a/player.lua b/player.lua index 70446b4..a0599a3 100644 --- a/player.lua +++ b/player.lua @@ -293,6 +293,11 @@ function Player:draw (offset_x, offset_y, scale, debug) end end +-- getPosition +function Player:getPosition() + return self.body:getPosition() +end + -- Draw HUD of `Player` -- elevation: 1 bottom, 0 top function Player:drawHUD (x,y,scale,elevation) @@ -386,4 +391,4 @@ end function Player:playSound(sfx) local source = love.audio.newSource(self.sfx[sfx]) source:play() -end \ No newline at end of file +end -- cgit v1.1