bevy/examples/2d
willolisp 5ff96b8e7e Improve many sprites example (#2785)
# Objective

My attempt at fixing #2075 .

This is my very first contribution to this repo. Also, I'm very new to both Rust and bevy, so any feedback is *deeply* appreciated.

## Solution
- Changed `move_camera_system` so it only targets the camera entity. My approach here differs from the one used in the [cheatbook](https://bevy-cheatbook.github.io/cookbook/cursor2world.html?highlight=maincamera#2d-games) (in which a marker component is used to track the camera), so please, let me know which of them is more idiomatic.
- `move_camera_system` does not require both `Position` and `Transform` anymore (I used `rotate` for rotating the `Transform` in place, but couldn't find an equivalent `translate` method).
- Changed `tick_system` so it only targets the timer entity.
- Sprites are now spawned via a single `spawn_batch` instead of multiple `spawn`s.
2021-09-10 19:13:14 +00:00
..
contributors.rs Merge AppBuilder into App (#2531) 2021-07-27 20:21:06 +00:00
many_sprites.rs Improve many sprites example (#2785) 2021-09-10 19:13:14 +00:00
mesh.rs Merge AppBuilder into App (#2531) 2021-07-27 20:21:06 +00:00
sprite_flipping.rs Merge AppBuilder into App (#2531) 2021-07-27 20:21:06 +00:00
sprite_sheet.rs Merge AppBuilder into App (#2531) 2021-07-27 20:21:06 +00:00
sprite.rs Merge AppBuilder into App (#2531) 2021-07-27 20:21:06 +00:00
text2d.rs Merge AppBuilder into App (#2531) 2021-07-27 20:21:06 +00:00
texture_atlas.rs Merge AppBuilder into App (#2531) 2021-07-27 20:21:06 +00:00