main.lua, etc. - use a sorted list of mobs

The mobs are characters to animate.  They're sorted by screen depth,
so that nearer ones render over farther ones.
This commit is contained in:
Nick Stokoe
2022-07-02 22:59:14 +01:00
parent 1cfc037283
commit cb49e2b933
3 changed files with 28 additions and 14 deletions

View File

@@ -52,6 +52,8 @@ return function(size, discs, topCol, rightCol, leftCol)
end
return {
getDepth = function() return -1; end,
getWidth = function()
return size*width*2
end,