- Imp and fireball implemented
This commit is contained in:
8
main.lua
8
main.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user