one hit comment now shows correct value to use
some guns do less than one damage per shot (vulcan gun does 0.5), so Instant Death Mode needs to max at 0x0.0001, the smallest nonzero value in Pico-8's fixed-point numeric type. One Hit Mode is just a comment for now, but I've been uncommenting it to test it. Note that replacing the health meter with a "!" is triggered by max HP + max shield <= 1 because 1 hp shows an empty bar. this needs some more special cases for low-HP ships with active shields.
This commit is contained in:
parent
965fc0d688
commit
eebd84544b
@ -911,9 +911,11 @@ player = ship_m.new{
|
|||||||
mknew(player,
|
mknew(player,
|
||||||
function(p)
|
function(p)
|
||||||
p.main_gun = zap_gun.new()
|
p.main_gun = zap_gun.new()
|
||||||
-- ONE HIT MODE
|
-- ONE HIT MODE: max hp is
|
||||||
-- p.hp = 1
|
-- minimum nonzero value.
|
||||||
-- p.maxhp = 1
|
--
|
||||||
|
-- p.hp = 0x0.0001
|
||||||
|
-- p.maxhp = 0x0.0001
|
||||||
-- p.shield = 0
|
-- p.shield = 0
|
||||||
-- p.maxshield = 0
|
-- p.maxshield = 0
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user