summaryrefslogtreecommitdiffhomepage
path: root/not/Sprite.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-03-19 02:45:17 +0100
committerAki <nthirtyone@gmail.com>2017-03-19 02:45:17 +0100
commit4652d69cc88e3d0137cac118344d21853c6a7605 (patch)
tree5389b2bb2b84dc36a852f296fa3a5caaa6b2e419 /not/Sprite.lua
parentb262cb3eec1a797832d168f9e6d144468fb48c1d (diff)
downloadroflnauts-4652d69cc88e3d0137cac118344d21853c6a7605.zip
roflnauts-4652d69cc88e3d0137cac118344d21853c6a7605.tar.gz
roflnauts-4652d69cc88e3d0137cac118344d21853c6a7605.tar.bz2
Small changes, comments
Diffstat (limited to 'not/Sprite.lua')
-rw-r--r--not/Sprite.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/not/Sprite.lua b/not/Sprite.lua
index 6342f60..d4cde59 100644
--- a/not/Sprite.lua
+++ b/not/Sprite.lua
@@ -1,4 +1,4 @@
--- `Sprite`
+--- `Sprite`
-- Abstract class for drawable animated entities.
Sprite = {
animations =--[[table with animations]]nil,
@@ -80,6 +80,7 @@ end
-- Drawing self to LOVE2D buffer.
-- If there is no Quad, it will draw entire image. It won't draw anything if there is no image.
+-- TODO: it doesn't follow same pattern as `not.Hero.draw`. It should implement so it can be called from `not.World`.
function Sprite:draw (...)
local i, q = self:getImage(), self:getQuad()
if i then