- Imp and fireball implemented

This commit is contained in:
2022-10-28 11:14:48 +02:00
parent 5587c3bd72
commit c1367b3c75
5 changed files with 156 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ function _init()
local pal=loadpal("tiles.gif")
setpal(pal)
--mapa_new()
-- ACTORS PRINCIPALS
abad_init()
table.insert(actors,abad)
@@ -46,11 +46,13 @@ function _init()
batman.init()
table.insert(actors,batman)
-- MALOTES PERSISTENTS
z = zombie.new()
table.insert(actors,z)
c=caco.new(13,24,16,true)
table.insert(actors,c)
-- STARTERS
table.insert(actors,starter.new(10,44,32,scenes.abad_inici))
table.insert(actors,starter.new(11,16,32,scenes.abad_corfes))
score.create()
@@ -89,7 +91,9 @@ function draw_hab(hab,x,y,editing)
actor:draw()
end
end
if imp.hab==hab then imp.draw() end
if cacau.hab==hab then cacau:draw() end
if fireball.hab==hab then fireball:draw() end
end
camera(0,0)
end
@@ -196,7 +200,9 @@ function update_game()
end
end
end
imp.update()
cacau.update()
fireball.update()
switches.update()
if btnp(KEY_RETURN) then