diff options
Diffstat (limited to 'draw.lua')
| -rw-r--r-- | draw.lua | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -1,6 +1,6 @@ --pallete replacement pal(15,140,1) -pal(14,3,1) +pal(14,3,1) --5 tokens pal(13,133,1) pal(11,139,1) pal(10,137,1) @@ -24,18 +24,27 @@ if gamerunning then end end if not gamerunning or menuscroll < 1 then + menuscroll += scrollspeed + if not gamerunning then menushipscroll += 1/60 end + for i = 1, 3, 1 do - spr(14+i*16, (-menushipscroll*(i*20)+(sin(i/3)*128)+8)%(128+8)-1*8-menuscroll*240, i*36+sin(menushipscroll*i/3)*i*2-20-menuscroll*50,1,1) end + spr(14+i*16, (-menushipscroll*(i*20)+(sin(i/3)*128)+8)%(128+8)-1*8-menuscroll*240, i*36+sin(menushipscroll*i/3)*i*2-20-menuscroll*50,1,1) + end + if t() < 1 then drawlogo(24-menuscroll*120,19.5+sin(0.25+t()*0.5)*6.5) else drawlogo(24-menuscroll*120,26) end + + --main screen items mainmenutext(24-menuscroll*150,53) 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!!!! @@ -43,6 +52,4 @@ if not gamerunning or menuscroll < 1 then end addcircle(rnd(128), t()*80, 0,rnd(1),rnd(12)+2,1.5,14,0) end -end - --- print(#obj)
\ No newline at end of file +end
\ No newline at end of file |
