plannin for lvl3
This commit is contained in:
parent
771c057aaa
commit
44768ead9d
45
toomgis.p8
45
toomgis.p8
@ -4,6 +4,7 @@ __lua__
|
|||||||
|
|
||||||
function _init()
|
function _init()
|
||||||
start_ampm()
|
start_ampm()
|
||||||
|
--start_level(3)
|
||||||
end
|
end
|
||||||
|
|
||||||
function _draw()
|
function _draw()
|
||||||
@ -245,6 +246,23 @@ function reset_items()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function fancy_background()
|
||||||
|
local cx1 = 20
|
||||||
|
local cx2 = 108
|
||||||
|
local cy = 40
|
||||||
|
|
||||||
|
for a=0,120,10 do
|
||||||
|
line(0, a, 128, a, 11)
|
||||||
|
line(a, 0, a, 128, 11)
|
||||||
|
end
|
||||||
|
|
||||||
|
for i=0,8 do
|
||||||
|
local x = 20*cos((i+t())/8)
|
||||||
|
local y = 30*sin((i+t())/8)
|
||||||
|
line(cx1+x, cy+y, cx2+x, cy-y, 9)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function level_draw()
|
function level_draw()
|
||||||
-- each level is 4tl/32px
|
-- each level is 4tl/32px
|
||||||
if px < 2000 then
|
if px < 2000 then
|
||||||
@ -256,6 +274,7 @@ function level_draw()
|
|||||||
else
|
else
|
||||||
cls(1)
|
cls(1)
|
||||||
end
|
end
|
||||||
|
--fancy_background()
|
||||||
--- zoom should go from 16 to 1 w/ growth
|
--- zoom should go from 16 to 1 w/ growth
|
||||||
local zoom = 16 - (15 * -sin(#tbody / MAX_PIECES / 4))
|
local zoom = 16 - (15 * -sin(#tbody / MAX_PIECES / 4))
|
||||||
local h=32 * zoom
|
local h=32 * zoom
|
||||||
@ -463,6 +482,23 @@ function shadow_pal()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function tech_pal()
|
||||||
|
pal(0, 3)
|
||||||
|
pal(1, 3)
|
||||||
|
pal(2, 3)
|
||||||
|
pal(4, 3)
|
||||||
|
pal(5, 3)
|
||||||
|
pal(6, 11)
|
||||||
|
pal(7, 11)
|
||||||
|
pal(8, 3)
|
||||||
|
pal(9, 11)
|
||||||
|
pal(10, 11)
|
||||||
|
pal(12, 11)
|
||||||
|
pal(13, 3)
|
||||||
|
pal(14, 11)
|
||||||
|
pal(15, 11)
|
||||||
|
end
|
||||||
|
|
||||||
-- gameover
|
-- gameover
|
||||||
function start_gameover()
|
function start_gameover()
|
||||||
state = "gameover"
|
state = "gameover"
|
||||||
@ -548,10 +584,6 @@ function start_explainer()
|
|||||||
state = "explainer"
|
state = "explainer"
|
||||||
scene_start = time()
|
scene_start = time()
|
||||||
tbody = {}
|
tbody = {}
|
||||||
-- for i=2, 14 do
|
|
||||||
-- add2body(i)
|
|
||||||
-- add2body(i)
|
|
||||||
-- end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function explainer_draw()
|
function explainer_draw()
|
||||||
@ -570,14 +602,9 @@ function explainer_draw()
|
|||||||
toomgis_draw(50, 50)
|
toomgis_draw(50, 50)
|
||||||
spr(33, 50, 60, 2, 2)
|
spr(33, 50, 60, 2, 2)
|
||||||
|
|
||||||
for n=0,14 do
|
|
||||||
end
|
|
||||||
print("toomgis hates stinky food", 7, 120, 9)
|
print("toomgis hates stinky food", 7, 120, 9)
|
||||||
|
|
||||||
print("❎ jump\n🅾️ shred\n⬅️ move ➡️", 5, 50)
|
print("❎ jump\n🅾️ shred\n⬅️ move ➡️", 5, 50)
|
||||||
|
|
||||||
print("\"too much good\n stuff\"", 70, 55)
|
print("\"too much good\n stuff\"", 70, 55)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function explainer_upd()
|
function explainer_upd()
|
||||||
|
Loading…
Reference in New Issue
Block a user