moonbus: cheat - fuel
This commit is contained in:
parent
ee5c2bb312
commit
b4956124bd
17
moonbus.p8
17
moonbus.p8
@ -4,6 +4,8 @@ __lua__
|
|||||||
-- MoonBus
|
-- MoonBus
|
||||||
-- by Dejvino
|
-- by Dejvino
|
||||||
|
|
||||||
|
def_fuel_cons=0.01
|
||||||
|
|
||||||
function reset()
|
function reset()
|
||||||
plr_money=0
|
plr_money=0
|
||||||
plr_level=1
|
plr_level=1
|
||||||
@ -26,13 +28,20 @@ function reset()
|
|||||||
|
|
||||||
menuitem(1, "next level", function()
|
menuitem(1, "next level", function()
|
||||||
plr_win=true
|
plr_win=true
|
||||||
|
sfx(6)
|
||||||
make_progress()
|
make_progress()
|
||||||
end)
|
end)
|
||||||
menuitem(2, "prev level", function()
|
menuitem(2, "prev level", function()
|
||||||
plr_win=true
|
plr_win=true
|
||||||
plr_level-=2
|
plr_level-=2
|
||||||
|
sfx(6)
|
||||||
make_progress()
|
make_progress()
|
||||||
end)
|
end)
|
||||||
|
menuitem(3, "cheat: fuel", function()
|
||||||
|
def_fuel_cons=0
|
||||||
|
fuel_cons=def_fuel_cons
|
||||||
|
sfx(6)
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
function load_level()
|
function load_level()
|
||||||
@ -52,7 +61,7 @@ function load_level()
|
|||||||
gravity=maplevel.gravity or 0.01
|
gravity=maplevel.gravity or 0.01
|
||||||
|
|
||||||
engine_power=0.1
|
engine_power=0.1
|
||||||
fuel_cons=0.01
|
fuel_cons=def_fuel_cons
|
||||||
fuel_warning=0.3
|
fuel_warning=0.3
|
||||||
fuel_warning_on=false
|
fuel_warning_on=false
|
||||||
land_speed_limit=1
|
land_speed_limit=1
|
||||||
@ -274,10 +283,8 @@ function _draw()
|
|||||||
for part in all(particles) do
|
for part in all(particles) do
|
||||||
local p=part.p
|
local p=part.p
|
||||||
local px,py=to_scrn(p)
|
local px,py=to_scrn(p)
|
||||||
--pset(px,py,ttl > 10 and 8 or 5)
|
|
||||||
circ(px,py,cos(part.age/20)*0.6+1.5,part.age < 20 and 8 or (part.age < part.limit/2 and 5 or 1))
|
circ(px,py,cos(part.age/20)*0.6+1.5,part.age < 20 and 8 or (part.age < part.limit/2 and 5 or 1))
|
||||||
end
|
end
|
||||||
print(#particles, 32,50,11)
|
|
||||||
|
|
||||||
-- target
|
-- target
|
||||||
if plr_alive then
|
if plr_alive then
|
||||||
@ -774,11 +781,11 @@ __map__
|
|||||||
__sfx__
|
__sfx__
|
||||||
000400002c2501f250132503365036660396503764035630316202f6202c620246201d6101b6101b61019610126100e61010610116100c6000d6000e6000c6000a60007600016000060000000000000000000000
|
000400002c2501f250132503365036660396503764035630316202f6202c620246201d6101b6101b61019610126100e61010610116100c6000d6000e6000c6000a60007600016000060000000000000000000000
|
||||||
010800003d0202d0203d0203d61421620216201d6101c6101a6150000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
010800003d0202d0203d0203d61421620216201d6101c6101a6150000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
0001002005750087500b7500b7500a750067500375005750087500a7500b7500a75009750047500475006750097500a7500a75009750087500675006750087500a7500a75008750067500675008750097500a750
|
0101002005770087700b7700b7700a750067500375005750087600a7600b7600a76009760047700477006770097700a7700a75009750087500675006760087600a7600a76008760067700677008770097700a770
|
||||||
00020000226502265026150241501d150161500e1500c150061500315001150001500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
00020000226502265026150241501d150161500e1500c150061500315001150001500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
010800002605000000260502163021610216102161600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
010800002605000000260502163021610216102161600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
000a00082405024050240500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
000a00082405024050240500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
0003000015150181501b15021150251502b1503115039150000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
|
Loading…
Reference in New Issue
Block a user