diff options
author | Aki <nthirtyone@gmail.com> | 2016-06-29 03:28:35 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-06-29 03:28:35 +0200 |
commit | 2b207c4282219bae06eff9589824dc851f014be3 (patch) | |
tree | aa4516bdb3f077d696cfa8bc6efe010d77d8dca5 /player.lua | |
parent | f0effa29c282c72a09def0d5372dd7b7b9cd1623 (diff) | |
download | roflnauts-2b207c4282219bae06eff9589824dc851f014be3.zip roflnauts-2b207c4282219bae06eff9589824dc851f014be3.tar.gz roflnauts-2b207c4282219bae06eff9589824dc851f014be3.tar.bz2 |
Flying Rayss!
Diffstat (limited to 'player.lua')
-rw-r--r-- | player.lua | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |