From f9bc44085a840e942946c8b0baaafc7d27995671 Mon Sep 17 00:00:00 2001 From: JailDoctor Date: Tue, 25 Oct 2022 19:57:44 +0200 Subject: [PATCH] - minor additions for the teaser --- main.lua | 7 ++++--- scenes.lua | 26 ++++++++++++++++---------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/main.lua b/main.lua index db137ea..c37cb63 100644 --- a/main.lua +++ b/main.lua @@ -28,10 +28,11 @@ function _init() table.insert(actors,premiere) z = zombie.new() table.insert(actors,z) - c=caco.new(11,24,16) + c=caco.new(13,24,16,true) table.insert(actors,c) table.insert(actors,starter.new(10,44,32,scenes.abad_inici)) + table.insert(actors,starter.new(11,16,32,scenes.abad_corfes)) score.create() _update=update_game @@ -143,9 +144,9 @@ function update_game() end else draw_hab(abad.hab,0,0) - text(abad.hab,1,1,2) + --text(abad.hab,1,1,2) draw_hab(premiere.hab,0,48) - text("Premiere",2,49,2) + text("Premiere",2,49,8) score.draw() setsource(tiles) diff --git a/scenes.lua b/scenes.lua index ccdb068..eb6d29d 100644 --- a/scenes.lua +++ b/scenes.lua @@ -1,8 +1,12 @@ scenes={ 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=true,text={"Perque parles en","tu mateix?",""}}, - {x=4,y=0,flip=false,text={"No se, tio...","",""}} + {x=4,y=0,flip=true,text={"Perque parles","tu soles?",""}}, + {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???"}} } @@ -103,15 +107,17 @@ function update_scene() scenes.wait=0 draw_scene() end - if btnp(KEY_SPACE) and scenes.step>8 then - if scenes.dnum==#scenes.current_scene then - freesurf(bkg) - _update=update_game + if btnp(KEY_SPACE) then + if scenes.step>8 then + if scenes.dnum==#scenes.current_scene then + freesurf(bkg) + _update=update_game + else + scenes.dnum=scenes.dnum+1 + scenes.step=2 + end else - scenes.dnum=scenes.dnum+1 - scenes.step=2 + scenes.step=8 end - elseif anykey() then - scenes.step=8 end end