- minor additions for the teaser

This commit is contained in:
2022-10-25 19:57:44 +02:00
parent df21041f1b
commit f9bc44085a
2 changed files with 20 additions and 13 deletions

View File

@@ -28,10 +28,11 @@ function _init()
table.insert(actors,premiere) table.insert(actors,premiere)
z = zombie.new() z = zombie.new()
table.insert(actors,z) table.insert(actors,z)
c=caco.new(11,24,16) c=caco.new(13,24,16,true)
table.insert(actors,c) table.insert(actors,c)
table.insert(actors,starter.new(10,44,32,scenes.abad_inici)) table.insert(actors,starter.new(10,44,32,scenes.abad_inici))
table.insert(actors,starter.new(11,16,32,scenes.abad_corfes))
score.create() score.create()
_update=update_game _update=update_game
@@ -143,9 +144,9 @@ function update_game()
end end
else else
draw_hab(abad.hab,0,0) draw_hab(abad.hab,0,0)
text(abad.hab,1,1,2) --text(abad.hab,1,1,2)
draw_hab(premiere.hab,0,48) draw_hab(premiere.hab,0,48)
text("Premiere",2,49,2) text("Premiere",2,49,8)
score.draw() score.draw()
setsource(tiles) setsource(tiles)

View File

@@ -1,8 +1,12 @@
scenes={ scenes={
abad_inici={ abad_inici={
{x=4,y=0,flip=false,text={"Be, millor me fique a","buscar... com s'eixia","d'esta habitacio???"}}, {x=4,y=0,flip=false,text={"Be, millor me fique a","buscar... com s'eixia","d'esta habitacio???"}},
{x=4,y=0,flip=true,text={"Perque parles en","tu mateix?",""}}, {x=4,y=0,flip=true,text={"Perque parles","tu soles?",""}},
{x=4,y=0,flip=false,text={"No se, tio...","",""}} {x=4,y=0,flip=false,text={"Pa que Doc prove","com queden els","dialegs..."}}
},
abad_corfes={
{x=4,y=0,flip=false,text={"Osti, esta ple de","monstruacos.",""}},
{x=4,y=0,flip=false,text={"Pos al que s'acoste","s'endura una corfa","de cacau al cap!"}}
} }
--premiere_intro={x=4,y=0,text={"Be, millor me fique a","buscar... com s'eixia","d'esta habitacio???"}} --premiere_intro={x=4,y=0,text={"Be, millor me fique a","buscar... com s'eixia","d'esta habitacio???"}}
} }
@@ -103,7 +107,8 @@ function update_scene()
scenes.wait=0 scenes.wait=0
draw_scene() draw_scene()
end end
if btnp(KEY_SPACE) and scenes.step>8 then if btnp(KEY_SPACE) then
if scenes.step>8 then
if scenes.dnum==#scenes.current_scene then if scenes.dnum==#scenes.current_scene then
freesurf(bkg) freesurf(bkg)
_update=update_game _update=update_game
@@ -111,7 +116,8 @@ function update_scene()
scenes.dnum=scenes.dnum+1 scenes.dnum=scenes.dnum+1
scenes.step=2 scenes.step=2
end end
elseif anykey() then else
scenes.step=8 scenes.step=8
end end
end end
end