diff options
author | Aki <nthirtyone@gmail.com> | 2017-03-19 02:45:17 +0100 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-03-19 02:45:17 +0100 |
commit | 4652d69cc88e3d0137cac118344d21853c6a7605 (patch) | |
tree | 5389b2bb2b84dc36a852f296fa3a5caaa6b2e419 /not/Sprite.lua | |
parent | b262cb3eec1a797832d168f9e6d144468fb48c1d (diff) | |
download | roflnauts-4652d69cc88e3d0137cac118344d21853c6a7605.zip roflnauts-4652d69cc88e3d0137cac118344d21853c6a7605.tar.gz roflnauts-4652d69cc88e3d0137cac118344d21853c6a7605.tar.bz2 |
Small changes, comments
Diffstat (limited to 'not/Sprite.lua')
-rw-r--r-- | not/Sprite.lua | 3 |
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 |