-
-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make the entire engine modular #1091
Comments
with the global pool property now being an instance of the new ObjectPool Class
time (namespace) is now a default instance of the Timer class
…t, with `game` now being the default instance of it this not yet though possible to create a different Application instance, as references to the "default" game are hardcoded a bit everywhere and need more rework for instances to work independently.
@L1lith making some progress here, with now Unfortunately this not yet though possible to create a different Application instance, as references to the "default" game are hardcoded a bit everywhere and need more rework for instances to work independently. This is the last bit though as all other required elements can also now or already be dynamically instantiated. |
…esponding parent application/game no more direct reference to the global namespace: - world is now properly attached to an "Application" - Body are now properly updated based on their "parent" world gravity - Quadtree also now refers to its parent World when required
I feel like this one kinda fits here too #1139 |
…ames within the same page (still a work in progress)
- the `sortOn` property is now a proper getter/setter for the App World instance `sortOn` property - Container now defines a `getRootAncestor()` method that will return the reference to the root container parent (aka world container) - remove more internal reference to me.game in Container and Trigger
…erties to configure a game behavior on blur and focus events - this will allow later to have different behavior based on game instance (see #1091) - `pauseOnBlur`, `resumeOnFocus` and `stopOnBlur` device properties are now deprecated and replaced by their Application counterpart
I recently published the library Melon Solid. Unfortunately, there is no way to instantiate each game/canvas to a specific component on the page (which is bad if the a game component is put on the page, taken off again, and put back again, like in the side of client side routing, or simply if there 2 games on the same page). Basically what I need to make everything work properly would be a way to instantiate every part of the engine (the pool, video object, etc) so that I can have one instance for each game (this prevents games from overlapping in memory).
I talked to the author in discord so I'm pretty sure they're already aware, but I'm just opening an issue so we can track this issue and others can comment.
The text was updated successfully, but these errors were encountered: