diff --git a/src/game_objects/process_manager.py b/src/game_objects/process_manager.py index c021d58..c54f06a 100644 --- a/src/game_objects/process_manager.py +++ b/src/game_objects/process_manager.py @@ -356,15 +356,7 @@ def _handle_sorting(self): if self._sort_in_progress or self._auto_sort_enabled: self._continue_sorting() - def update(self, current_time, events): - if self._check_game_over(): - return - - self._handle_events(events) - self._handle_process_creation(current_time) - self._handle_timed_powerups(current_time) - self._handle_sorting() - + def _update_children(self, current_time, events): for game_object in self.children: game_object.update(current_time, events) if ( @@ -373,3 +365,13 @@ def update(self, current_time, events): and game_object.view.y <= -game_object.view.height ): self.children.remove(game_object) + + def update(self, current_time, events): + if self._check_game_over(): + return + + self._handle_events(events) + self._handle_process_creation(current_time) + self._handle_timed_powerups(current_time) + self._handle_sorting() + self._update_children(current_time, events)