- [NEW] animated tiles

This commit is contained in:
2022-10-24 16:34:13 +02:00
parent adc89cf11c
commit 1f002c5488
6 changed files with 88 additions and 80 deletions

View File

@@ -20,7 +20,7 @@ function _init()
table.insert(actors,premiere)
z = zombie.new()
table.insert(actors,z)
c=caco.new(10,24,16)
c=caco.new(11,24,16)
table.insert(actors,c)
score.create()
@@ -141,7 +141,8 @@ function update_game()
prnt("x"..abad.vides,114,13,2)
rectfill(102+(abad.energia>>1),30,122,37,16)
mapa_update()
mapa_update(abad.hab,premiere.hab)
for key,actor in pairs(actors) do
actor:update()
if actor.hab==cacau.hab and actor~=abad then