-
Notifications
You must be signed in to change notification settings - Fork 349
In the future, a node tree/graph should be added to the framework, so users can directly use add_child. #2704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Or just like this:
|
Thank you for the feedback. |
Sure, arrange your tasks. |
It can make sense to make a hierarchy for sprites to handle rotation or order (smaller group of sprites). Do you have an arcade-specific example? Even better if it's something runnable. The ursina example is not easy to translate to arcade. It depends at what level you apply it. If this is done too fine grained the performance cost can be astronomical, so it depends on the details. What will the specific andvantages be for such a system (whatever is described from the questions above). |
For the near-term future, this may be best addressed with links to add-on ECS systems. I've mentioned Ben's Esper on Discord. The |
Uh oh!
There was an error while loading. Please reload this page.
Right now, if a sprite is attached to another sprite, we have to manually calculate the transform. There is no concept of local space and world space—everything is in world space: position, rotation, and scale.
Most game engines support a node graph, where nodes can have parent-child relationships. With that, we can just call
add_child
, and the child will automatically follow the parent's transform.For example, if I have a popup UI panel with a few buttons and labels, and those buttons also have text, and text have animation, then if I want to animate this UI panel (like moving or scaling it), I only need to animate the parent node. The children will follow automatically. Like Godot node tree.
I’ve developed games in Unity using C# for many years, and I believe a game engine doesn’t need a full editor. Python is already easy to work with. If Arcade adds more basic features like this, it would be much easier to build games on top of it.
I also prefer not to import too many other libraries. For example, my project won’t have
import pygame
anywhere.By the way, in my opinion, pyglet and arcade are currently the best Python game development frameworks in terms of performance and simplicity. Arcade has the most features. I will make a game by Arcade.
The text was updated successfully, but these errors were encountered: