2 Commits

Author SHA1 Message Date
7e4833d567 very silly shot pattern 2025-06-28 23:11:27 -07:00
c752e8e1e3 fix hpcols_init
note that I need to re-call this whenever I have a new max hp

also note that vertmeter does not handle 1024 correctly. find out what max hp functions and hardcap it
2025-06-28 23:10:57 -07:00

View File

@ -130,7 +130,7 @@ hpcols_lut = csv[[36
-- call after any change to maxhp
-- configures health gradient
function init_hpcols()
hpcols = hpcols_lut[min(primary_ship.maxhp,6)]
hpcols = hpcols_lut[min(primary_ship.maxhp,5)]
end
function wipe_game()
@ -1022,7 +1022,7 @@ machine_gun_e = mknew(vulcan_gun_e.new{
icon = 38,
clip_size = 12,
clip_interval = 0x0.005a,
shots = {{{0, 2}}, {{0, -2}}}
shots = {{{0.0625, 2}}, {{-0.0625, -2}}}
})
vulcan_gun_p = mknew(vulcan_gun_e.new{
@ -1064,8 +1064,8 @@ player = mknew(ship_m.new{
boss = true, -- dramatic special effects
-- health
hp = 3, -- current health, non-regenerating
maxhp = 3, -- player only; other ships never heal
hp = 1024, -- current health, non-regenerating
maxhp = 1024, -- player only; other ships never heal
shield = 2, -- regenerates
maxshield = 2,