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

Load backgrounds from scene files #6

Closed
cdsupina opened this issue Aug 3, 2021 · 2 comments · Fixed by #10
Closed

Load backgrounds from scene files #6

cdsupina opened this issue Aug 3, 2021 · 2 comments · Fixed by #10
Assignees
Labels
art Relating to creating or managing art

Comments

@cdsupina
Copy link
Contributor

cdsupina commented Aug 3, 2021

Bevy has the capability to load entities from scene files. https://github.com/bevyengine/bevy/blob/main/examples/scene/scene.rs

Instead of hardcoding backgrounds like what was done in Amethyst Thetawave, we should define the entities in these scene files. Currently, there are gltf model files for the earth and sun located in the Amethyst Thetawave repo. Since everything else in the game (player, enemies, items, etc) is generated at runtime, the scene file should only contain these background model files.

@cdsupina cdsupina added the art Relating to creating or managing art label Aug 3, 2021
@cdsupina cdsupina added this to the Port to Bevy milestone Aug 3, 2021
@cdsupina cdsupina added this to To do in Port to Bevy via automation Aug 3, 2021
@cdsupina
Copy link
Contributor Author

cdsupina commented Aug 4, 2021

Arena border barriers are also constant they can be defined in scene files as well.

@cdsupina cdsupina self-assigned this Aug 7, 2021
@cdsupina cdsupina moved this from To do to In progress in Port to Bevy Aug 7, 2021
@cdsupina
Copy link
Contributor Author

It seems that at this point scene files aren't meant for/ aren't capable of handling entities at the complexity level needed. If this changes we will switch to scene files, otherwise we can store the data to define level backgrounds in .ron game data files.

Discussion:
https://github.com/thetawavegame/thetawave/blob/cdsupina/load_background_scene/src/main.rs

@cdsupina cdsupina linked a pull request Aug 13, 2021 that will close this issue
Port to Bevy automation moved this from In progress to Done Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
art Relating to creating or managing art
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant