Skip to content

Conversation

@jackandcarter
Copy link
Owner

Motivation

  • Prevent duplicate level-win transitions by removing overlapping win logic from the asteroid manager.
  • Ensure player input settings (mouse control) apply immediately to active players when toggled in the settings UI.
  • Make gravitational pull off by default for classic-mode asteroids to match the intended default gameplay options.

Description

  • Removed the AllAsteroidsCleared subscription and the internal delayed level-win coroutine from AsteroidManager and simplified CheckLevelWinCondition to only raise AllAsteroidsCleared when counts reach zero.
  • Deleted the AreAsteroidsOnScreen and LevelWinAfterDelay helpers and removed the levelWinCoroutineStarted flag and related logic.
  • Added SetMouseControlEnabled(bool) to PlayerController and used it at Awake to initialize mouseControlEnabled, with safe enabling/disabling of rightClickAction.
  • Updated SettingsPanel.ToggleMouseControl to persist the preference and immediately call SetMouseControlEnabled on all active PlayerController instances, and changed LargeAsteroidBehavior to set enableGravitationalPull default to false.

Testing

  • No automated tests were executed as part of this change.
  • The changes were built and committed locally (no CI test results included).

Codex Task

@jackandcarter jackandcarter merged commit 5250536 into v1.0.3 Dec 27, 2025
1 of 2 checks passed
@jackandcarter jackandcarter deleted the codex/improve-classic-mode-logic-and-fix-bugs branch December 27, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants