Give Gamecontroller a destroy signal #5

Closed
opened 2026-10-13 20:28:29 +00:00 by OddlyTimbot · 2 comments
Owner

Currently the gamecontroller destroys objects directly. It should not do this.

Instead, have the gamecontroller emit a signal, then have the SceneManager destroy objects. (It is not the job of the gamecontroller to move things around on the screen or eliminate them - it just makes decisions, but allows the SceneManager to take care of it)

Currently the gamecontroller destroys objects directly. It should not do this. Instead, have the gamecontroller emit a signal, then have the SceneManager destroy objects. (It is not the job of the gamecontroller to move things around on the screen or eliminate them - it just makes decisions, but allows the SceneManager to take care of it)
Author
Owner

Update the SceneManager to handle signals coming from the GameController requesting a game object be destroyed.
If a request comes to destroy a bullet, stash it instead by hiding it off-screen and removing it from the game loop.

Update the SceneManager to handle signals coming from the GameController requesting a game object be destroyed. If a request comes to destroy a bullet, stash it instead by hiding it off-screen and removing it from the game loop.
Author
Owner

Done!

Done!
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OddlyTimbot/Sept26Game#5