Skip to content
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

Add world.spawn() #27

Closed
wants to merge 1 commit into from
Closed

Conversation

zicklag
Copy link
Contributor

@zicklag zicklag commented Oct 5, 2022

I was almost able to spawn the breakout ball with the script, but we can't have reflected bundles yet, and when trying to add the components one by one we were missing reflected Default implementations on ComputedVisiblity and Sprite, and I'm not sure how to go about creating a typed Handle<T> from scratch in a script. :/

It seems like reflected bundles might be the best way to go about spawning things like sprites. If the bundle implemented Reflect then you could just set/patch the fields you wanted to modify on the default bundle, so we wouldn't have to worry about creating a Handle<T>, because we can just set the Handle.id from the script.

@zicklag
Copy link
Contributor Author

zicklag commented Oct 6, 2022

This commit is included in #28 so I'll close this PR in favor of that one.

@zicklag zicklag closed this Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant