aboutsummaryrefslogtreecommitdiff
path: root/draw.lua
diff options
context:
space:
mode:
authorRibbon <ambiguousmachine@gmail.com>2022-02-14 20:38:36 -0800
committerRibbon <ambiguousmachine@gmail.com>2022-02-14 20:38:36 -0800
commit5a053b6d71de1a64884bbef7c1ba400360bf75a8 (patch)
tree7001c2ba83a6fb8ef6a23fcc08f41c1cae612b2b /draw.lua
parentae63d9af57038cc8b0027136f741c190b6f19083 (diff)
reduced ~70 tokens in ringed planet
Diffstat (limited to 'draw.lua')
-rw-r--r--draw.lua17
1 files changed, 12 insertions, 5 deletions
diff --git a/draw.lua b/draw.lua
index 0366777..65e6e69 100644
--- a/draw.lua
+++ b/draw.lua
@@ -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