summaryrefslogtreecommitdiffhomepage
path: root/player.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-06-29 03:28:35 +0200
committerAki <nthirtyone@gmail.com>2016-06-29 03:28:35 +0200
commit2b207c4282219bae06eff9589824dc851f014be3 (patch)
treeaa4516bdb3f077d696cfa8bc6efe010d77d8dca5 /player.lua
parentf0effa29c282c72a09def0d5372dd7b7b9cd1623 (diff)
downloadroflnauts-2b207c4282219bae06eff9589824dc851f014be3.zip
roflnauts-2b207c4282219bae06eff9589824dc851f014be3.tar.gz
roflnauts-2b207c4282219bae06eff9589824dc851f014be3.tar.bz2
Flying Rayss!
Diffstat (limited to 'player.lua')
-rw-r--r--player.lua7
1 files changed, 6 insertions, 1 deletions
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