Replies: 1 comment
-
The best choice is probably to create your player as a regular Bevy SpriteBundle. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, new to bevy and rust and all sorts of things. One thing I'm confused about and isn't covered very well in the examples, AFAICT, is how to spawn and manage other entities that occupy the tilemap.
If I'm building an outdoor map, with two tag structs, Field{} and Wall{} and I want to spawn a player at a valid position on the tilemap, I get that I could pick a random tile of all the Field{} types, but then do I insert the player's texture directly into the tilemap at that position? Would I have a second layer for tracking moveables? or should I be maintaining another data structure with positions of all mobs?
The old bevy_tileset crate has an example of creating a random map with player movement, and I think this would be a great example to help newbs like myself get started.
Beta Was this translation helpful? Give feedback.
All reactions