diff options
| author | RibbonCable <ambiguousmachine@gmail.com> | 2022-02-17 21:29:10 -0800 |
|---|---|---|
| committer | RibbonCable <ambiguousmachine@gmail.com> | 2022-02-17 21:29:10 -0800 |
| commit | b15a0c077587ddf748d34556524416435c01ec17 (patch) | |
| tree | 8d6b651465404426e1fb3eb4e9ba5c29a7c7158d /draw.lua | |
| parent | 8b53a5ee4a55f455c7b1d1dd02d67778b1ec31f8 (diff) | |
lots of stuff, check desc
Updated planet art
adjusted sprites in sheet
added boss sprites
added some boss graphic code
added score system
added ending score screen w/ cart reset
reduced wave loss from 2 to 1
reduced pickup amount to just bosses and specific waves only
reduced tokens by grouping similar math
made acid transition able to be reversed
planet seed for babymode
and a bunch of other stuff I forget sry its late
used a lot of tokens today x.x;
Diffstat (limited to 'draw.lua')
| -rw-r--r-- | draw.lua | 52 |
1 files changed, 36 insertions, 16 deletions
@@ -16,16 +16,16 @@ drawobjs() if gamerunning then if gameover then --gameover timer, it does a cute spinny! 😵 - printdropshadow(ceil(respawntimer),63+sin(t())*3,55+cos(t())*3,6,5) - currentscore("000000","000000",true,true) --clear score + printdropshadow(ceil(respawntimer),63+circletimex,55+circletimey,6,5) + runningscore(currentscore,true) --flashes score elseif players[1].health <=0 then - printdropshadow(ceil(players[1].inv),players[1].x+sin(t())*3,players[1].y+cos(t())*3,12,15) - currentscore("000000","696969",true,false) --clear score for P1 + printdropshadow(ceil(players[1].inv),players[1].x+circletimex,players[1].y+circletimey,12,15) + runningscore(currentscore,true) --flashes score elseif #players > 1 and players[2].health <=0 then - printdropshadow(ceil(players[2].inv),players[2].x+sin(t())*3,players[2].y+cos(t())*3,9,2) - currentscore("000420","000000",false,true) --clear score for P2 + printdropshadow(ceil(players[2].inv),players[2].x+circletimex,players[2].y+circletimey,9,2) + runningscore(currentscore,true) --flashes score else - currentscore("000420","696969",false,false) --current game score + runningscore(currentscore,false) --current game score end end if not gamerunning or menuscroll < 1 then @@ -46,15 +46,35 @@ if not gamerunning or menuscroll < 1 then --main screen items mainmenutext(24-menuscroll*150,53) - titlehighscores("000000","000000",52-menuscroll*110,82) + titlehighscores(52-menuscroll*110,82) credits(10-menuscroll*140,108) - --intro acid effect - if t() < 2 then - for i = 1, 128, 1 do - line(i-1,128,i-1,sin((i+0.22-t()*20)/24.357)*2+t()*80-10,11) --cool wavy transition effect!!!! - line(i-1,128,i-1,sin((i+t()*60)/44.357)*5+t()*80-5,3) - end - addcircle(rnd(128), t()*80, 0,rnd(1),rnd(12)+2,1.5,14) + --intro acid transtition + acidcounter+=ft + acidtransition() +end + +--final score screen and outro transition +if scorescreen then + finalscorescreen(0,0) + + --outro acid transition + if isoutro then + acidcounter-=ft + sfx(0,3,3) + acidtransition() end -end
\ No newline at end of file + if acidcounter < -0.2 then run() end --resets cart +end + + + + + + +-- --final boss portal parts +-- addportalthruster(70,6) +-- addportalthruster(70,107,true) +-- addfinalbossportal(80,10) +-- addportalthruster(95,6) +-- addportalthruster(95,107,true)
\ No newline at end of file |
