Conversation
…ameObject initialization
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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 significant improvements to the engine's scene and rendering systems, focusing on enhanced support for environment collision maps, improved runtime component initialization, and more robust background rendering for game objects. It also includes a new project configuration example and refactors component metadata application for better editor and runtime compatibility.
Scene and Environment System Enhancements:
environmentCollisionMapPathin scene schemas and metadata, allowing scenes to define collision maps alongside tile maps. Scene loading, initialization, and static collision environment setup now handle collision map data similarly to tile maps. (assets/schema/scene.schema.json[1]src/Core/Scenes/AbstractScene.php[2] [3] [4] [5] [6]src/Core/Scenes/SceneManager.php[7]GameObject Lifecycle and Physics Integration:
GameObjectlifecycle management: Components (especially physics colliders) are now started and registered with the physics system only when appropriate, both at startup and when added at runtime. Added checks to ensure components are initialized only if the object belongs to the active scene. (src/Core/GameObject.php[1] [2] [3] [4] [5] [6] [7]Rendering and Background Handling Improvements:
Rendererclass to capture and restore the background underneath sprites, reducing visual artifacts when sprites move or are erased. This includes tracking the last rendered bounds and background, and composing background segments from the current console buffer and static world tiles. (src/Core/Rendering/Renderer.php[1] [2] [3]Scene Metadata and Component Configuration:
src/Core/Scenes/SceneManager.php[1] [2] [3] [4]Project Configuration Example:
configuration.jsonfor the "blasters" project, providing a template for project metadata. (examples/blasters/configuration.jsonexamples/blasters/configuration.jsonR1-R8)Other Improvements:
src/Game.phpsrc/Game.phpL375-R378)