Add combat development sandboxes and fix rendering defensive code#32
Merged
Linkatplug merged 17 commits intocopilot/refactor-defensesystem-damagefrom Feb 14, 2026
Conversation
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix drawEnemyResistanceIndicator for missing resistance fields
Prevent crashes in drawEnemyResistanceIndicator from undefined resistance fields
Feb 14, 2026
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Copilot
AI
changed the title
Prevent crashes in drawEnemyResistanceIndicator from undefined resistance fields
Gate collision debug logs behind COLLISION_DEBUG flag
Feb 14, 2026
Copilot
AI
changed the title
Gate collision debug logs behind COLLISION_DEBUG flag
Audit enemy firing cadence - confirm cooldown-based rate limiting
Feb 14, 2026
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Copilot
AI
changed the title
Audit enemy firing cadence - confirm cooldown-based rate limiting
Add Combat Dev Sandbox for isolated combat testing
Feb 14, 2026
Copilot
AI
changed the title
Add Combat Dev Sandbox for isolated combat testing
Fix entity removal in Combat Dev Sandbox game loop
Feb 14, 2026
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Copilot
AI
changed the title
Defensive rendering, debug gating, and isolated combat sandbox
Harden production systems and add isolated combat sandbox
Feb 14, 2026
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Copilot
AI
changed the title
Harden production systems and add isolated combat sandbox
Harden systems against undefined data and add isolated combat sandbox
Feb 14, 2026
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Copilot
AI
changed the title
Harden systems against undefined data and add isolated combat sandbox
Harden defense rendering, gate debug spam, add isolated combat sandbox
Feb 14, 2026
Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Copilot
AI
changed the title
Harden defense rendering, gate debug spam, add isolated combat sandbox
Make defense rendering resilient, gate debug logs, create combat dev sandboxes
Feb 14, 2026
… combat sandbox Co-authored-by: Linkatplug <36280686+Linkatplug@users.noreply.github.com>
Copilot
AI
changed the title
Make defense rendering resilient, gate debug logs, create combat dev sandboxes
Add combat development sandboxes and fix rendering resilience
Feb 14, 2026
Copilot
AI
changed the title
Add combat development sandboxes and fix rendering resilience
Add combat development sandboxes and fix rendering defensive code
Feb 14, 2026
8e609e7
into
copilot/refactor-defensesystem-damage
4 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Created professional combat testing environments and hardened rendering code against missing data:
drawEnemyResistanceIndicatoraccessed undefinedbaseResistancespropertiesChanges
Defensive rendering (RenderSystem.js)
Debug log gating (CollisionSystem.js)
COLLISION_DEBUG = falseflag at file topif (COLLISION_DEBUG)conditionalsCombat sandboxes (dev/)
Created three testing environments:
test-combat-sandbox.html - Manual system instantiation
combat-sandbox-clean.html - Pure manual architecture
combat-sandbox.html - Game class override (recommended)
Benefits of override approach:
game.systems.spawner.spawnEnemy()Supporting fixes
world.defenseSystem = systems.defenseMath.min(deltaTime, 0.1)prevents teleportingArchitecture decisions
Sandbox approach: Override game.update() rather than disable individual systems
No core modifications: All sandbox logic contained in dev/*.html files
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.