Fox Shooter · published · build 25753281
Organized by change batch: each batch covers one round of focused work,
grouped into Added / Changed / Fixed / Removed.
Version numbers are for tracking only; renumber freely for an actual release.
Enemy projectile system
Red slimes now fire projectiles. Projectiles use a dedicated enemy-bullet scene whose
collision relationship is mirrored from the player bullet: they hit the player only,
never other enemies.
- Three projectile patterns, rolled once at spawn and fixed for that slime's lifetime:
single shot, shotgun (3-pellet fan), and burst (3 shots, re-aimed each pellet).
- Projectiles buff allies on contact: one random stat is enhanced, the projectile is not
consumed, and it can continue on to buff other slimes.
- Buffs stack by a fixed step: +4 max HP (and full heal), +1 contact damage, +25% move speed,
+1 burst pellet, +1 shotgun pellet, −0.2 s fire interval (floor 0.5 s).
- Buffed slimes get a warm-yellow health bar tint so they are identifiable at a glance.
- Multiple red slimes now coordinate: at most 2 act as "direct shooters" aiming at the
player's current position, and every other red slime leads its shots.
- Leading solves a linear equation for intercept time (t = |d|² / (v·|d| − vp·d)) rather than
iterating; a predicting slime's burst increases the lead per pellet to lay down an
intercept line.
Player
Added a damped velocity estimate used by enemy predictive aiming.
UI animation
Added a global Anim autoload with static fade / slide / pop helpers.
No animation leaves a node in a non-resting transform.
- The home page fades in on launch and fades out when a run starts.
- Card screen intro: cards fade in with a slight pop (staggered), panels fade in, and the
next-stage button appears last.
- Game over: the result text pops in, holds, scales up while fading out, then the scene reloads.
- Options and ranking screens now animate in and out.
Card screen scaling and panel placement are viewport-adaptive; the hand-tuned row width and
spacing are preserved as-is.
- Card stat-row spacing is derived from row height instead of a fixed scene value, and the
stat list margins now align with the card's content area.
- Card stat rows now auto-shrink at runtime (fewer pixels per row when there are many rows)
so they never collide with the buy button.
- Card numbers now match their actual effect: the stats panel, the card text, and the real
calculation share one conversion table.
- Display units changed: crit / dodge / discount / enemy-count show raw points with a %
suffix and are no longer inflated 100×; fire rate shows as an interval in seconds
(−0.02s means faster); proceed, pickup range and fire range show absolute values;
no-op rows such as +0 are dropped.
- Card number colour is now decided by buff/debuff semantics rather than sign alone
(a shorter fire interval is a buff; more enemies is a debuff).
- Stat floors are now targeted instead of a blanket abs(): discount clamped to 0–90,
fire interval floored at 0.01 s, max HP clamped to 1–16.
- Blue slimes move at 1.4× the base speed.
- The player's dodge accumulation now resolves once per hit, even for multi-point damage.
- Enemy projectiles are larger with a warm glow; the hit radius tracks the new visual size.
Weapon cards did nothing: the success/failure branch was inverted, so actually adding a
weapon was treated as a failed purchase — no score deduction, no card refresh, no stat gain
(and the stage counter stopped advancing). Now driven by the set_weapon() return value.
- Weapons were lost between rounds: held weapons are now restored when a round starts and
persist for the whole run.
- Red slimes never fired: the fire timer moved into _process, no longer depending on a
scene child node and signal connection (either of which failed silently).
- Projectiles dealt no damage: two causes — ① the hitbox was too small (6×3 against a
7 px/frame step, so it tunnelled through the player); ② hit detection depended on
collision-layer configuration that failed silently. Detection is now a per-frame distance
check inside the bullet, independent of collision layers.
- Health bar colour did not recover on healing: only the losing-HP branches existed, so the
texture stayed red. It now updates both ways by ratio, and handles overflow past max and the
case where value is unchanged (no signal fired).
- modulate on CanvasLayer was a compile error: CanvasLayer extends Node, not
CanvasItem, so it has no modulate. All transitions now animate the layer's CanvasItem
children instead.
- ESC pause stopped working: the transition re-entry guard latched permanently and swallowed
every key press, ESC included. It now only applies during the transition and is released
immediately after.
- Stat labels disappeared: the fixed minimum widths of the two right-hand columns plus the
scrollbar reservation squeezed the left-hand name column to zero width, clipping the text.
- Weapon slots were clipped: the panel height scaled as a whole while the title font size
stayed fixed, so the content was taller than the panel and the slot row was clipped.
- Buy buttons overlapped the card frame: they sat outside the frame (y=592–635 against a
frame bottom edge at 583). They now sit inside the frame.
- Missing translation keys crashed the game: prompt.pickrange and prompt.firerange were
absent while the lookup has no fallback; Token.dataline also lacked firerange, so the
first card purchase after a restart crashed. Both are fixed.
- Max HP could drop to 0 or below, guaranteeing death next round; it is now clamped to 1–16.
- Weapon aiming error: look_at() errored when a weapon sprite coincided with its target;
a guard was added.
- Several script syntax errors (merged statements, invalid format strings, failed type
inference) have all been fixed.
Removed the opaque black overlay on the card screen: the paused game scene now shows through.
- Removed projectile homing in favour of straight-line flight; slime "intelligence" now lives in
the lead calculation at fire time rather than in curved trajectories.
Buff steps are currently fixed values (e.g. speed is always +25% per stack).
To randomize the magnitude as well, edit BUFF_STEP in slime.gd.
- Projectile speed is declared twice: SPEED in enemy_bullet.gd and ENEMY_BULLET_SPEED in
slime.gd (used for intercept time). Keep them in sync.
- The DEBUG_LOG / DEBUG_LAYOUT switches at the top of several files control diagnostic
logging; turn them off for a relssa,dehg*uc