A continuation of my journey exploring cross platform game development using purely Rust and the Bevy engine.
Seriously. It’s 100% Rust!
Previous Article: Compiling to iOS
Criteria
Once my project compiles to iOS, the next logical step is to handle tapping/clicking. If all succeeds, the engine should produce some sort of coordinate value on a tap/click event. Ideally, game components should react to the event and produce some sort of visual feedback.
0. Create a grid of squares
This part of the program is not important right now because my main goal is to recognize input events. If you are following along you can either skip this step or make whatever you want.
For those who are curious, the core of the grid comes down to a sprite bundle which I is encapsulated as “TileBundle”. For now, each tile has an arbitrary color and position.
sprite: SpriteBundle {
sprite: Sprite {
color: settings.color,
..default()