-
Hi, GameplayTiles should be able to 'do stuff'. By that I mean if you place, say, a factory on a tile, it would periodically produce some product and store it in a nearby depot. ControlsThere is no character the camera is centered on. Instead, you can move the camera around using arrow keys/wasd and interact with the tiles via the mouse. Perhaps hovering over a tile highlights it, and clicking it places or removes a building. Questions
I hope this is the right place to ask this question. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for your question! Sounds like a fun idea for a game. Regarding your first questions, I haven't used either of the plugins, so maybe try to play around with both and see what fits better your needs. What i know is that As per the second question, you'd need to map the cursor position to world space, see in the cheatbook how it's done. Once you have the cursor coordinates in world space, in a system you can query for your Tiles, and determine if the cursor coordinates are over a specific Tile, based on the Tile's |
Beta Was this translation helpful? Give feedback.
Thanks for your question! Sounds like a fun idea for a game.
Regarding your first questions, I haven't used either of the plugins, so maybe try to play around with both and see what fits better your needs. What i know is that
bevy_ecs_tilemap
has anEntity
per tile, which means that it's very easy to attach specific behaviours to individual tiles, by inserting corresponding components. But maybe try both and decide based on that.As per the second question, you'd need to map the cursor position to world space, see in the cheatbook how it's done. Once you have the cursor coordinates in world space, in a system you can query for your Tiles, and determine if the cursor coordinates are over a…