Conversation
…dling in Debug class
fix(InputManager): update enable/disable non-blocking mode to throw IOException refactor(InputManager): enhance isAnyKeyPressed and isKeyDown methods with ignoreCase parameter
…h screen with error handling
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.
This pull request introduces several improvements and refactorings across the game engine, focusing on error handling, input management, physics integration, and code quality. The most important changes include enhanced exception handling for debugging and IO operations, improved input key handling with case insensitivity, better physics engine integration with scenes, and the addition of a splash screen renderer.
Error and Exception Handling Improvements
DebuggingExceptionclass and updated theDebugclass to use it instead ofRuntimeExceptionfor logging errors, making error reporting more specific and consistent. [1] [2] [3]IOExceptionclass and refactoredInputManagerto throwIOExceptioninstead ofRuntimeExceptionwhen non-blocking mode operations fail. [1] [2]Input Handling Enhancements
InputManagerandInputto support case-insensitive key matching, improving reliability for user input across different cases. [1] [2] [3]InputManagerfor more accurate directional input handling.Physics Engine and Scene Integration
Physicsengine intoSceneManager, initializing physics and registering colliders from game objects when a scene loads, ensuring physics simulation is ready for each scene. [1] [2] [3] [4]Physicsclass to track world bounds and collisions, and refactored the simulation loop for better collision management. [1] [2]Rendering and Game Lifecycle
SplashScreenrenderer for displaying a splash screen at game startup, including texture loading and rendering logic.Game.phpby restoring console settings and resetting on stop, and handling last errors in the destructor. [1] [2] [3] [4]General Refactoring and Documentation
createWordsSpacetocreateWorldSpacein scenes for clarity. [1] [2]composer.jsonto use newer versions of development dependencies.Let me know if you'd like a deeper dive into any of these areas!