Compare commits
No commits in common. "78b200272e54973b37a91005dbff43080bcd1353" and "c55ea000fdf64152f3161fa8e14909fbd832cdbc" have entirely different histories.
78b200272e
...
c55ea000fd
@ -124,12 +124,11 @@ function linked_list:pop_front()
|
||||
end
|
||||
|
||||
function _init()
|
||||
mode = game_mode
|
||||
init_blip_pals()
|
||||
wipe_level()
|
||||
primary_ship.main_gun = zap_gun_p.new() -- redundant?
|
||||
load_level(example_level_csv)
|
||||
game_state = game
|
||||
state = game
|
||||
pal(2,129)
|
||||
pal()
|
||||
end
|
||||
@ -173,7 +172,7 @@ function wipe_level()
|
||||
end
|
||||
|
||||
function _update60()
|
||||
mode:update()
|
||||
updategame()
|
||||
end
|
||||
|
||||
function call_f(x)
|
||||
@ -250,9 +249,9 @@ function updategame()
|
||||
intangibles_fg:strip(call_move)
|
||||
|
||||
if leveldone and not eships.next and not ebullets.next and not events.next then
|
||||
game_state = win
|
||||
state = win
|
||||
end
|
||||
if (not pships.next) game_state = lose
|
||||
if (not pships.next) state = lose
|
||||
|
||||
if primary_ship.xp >= primary_ship.xptarget then
|
||||
if not xpwhoosh then
|
||||
@ -267,23 +266,14 @@ function updategame()
|
||||
end
|
||||
|
||||
function _draw()
|
||||
mode:draw()
|
||||
end
|
||||
|
||||
function drawgame_top()
|
||||
fillp(0)
|
||||
drawgame()
|
||||
if (game_state == game) fadelvl = -45
|
||||
if (game_state == win) dropshadow("win",50,61,11)
|
||||
if (game_state == lose) dropshadow("fail",48,61,8)
|
||||
if (state == game) fadelvl = -45
|
||||
if (state == win) dropshadow("win",50,61,11)
|
||||
if (state == lose) dropshadow("fail",48,61,8)
|
||||
fadescreen()
|
||||
end
|
||||
|
||||
game_mode = {
|
||||
update = updategame,
|
||||
draw = drawgame_top,
|
||||
}
|
||||
|
||||
fadetable = split"0,1.5,1025.5,1029.5,1285.5,1413.5,9605.5,9637.5,-23130.5,-23066.5,-18970.5,-18954.5,-2570.5,-2568.5,-520.5,-8.5,-0.5"
|
||||
|
||||
function fadescreen()
|
||||
@ -462,7 +452,6 @@ ship_m = mknew{
|
||||
maxshield = 0,
|
||||
shieldcooldown = 0x0.003c,--1s
|
||||
shieldpenalty = 0x0.012c, --5s
|
||||
shield_refresh_ready = 0,
|
||||
|
||||
slip = true, -- most enemies slide
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user