mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 14:10:19 +00:00
1d5388eded
# Objective We recently got some neat new 2d shapes and the shapes are no longer centered on the screen. The hardcoded positions and colors are a pain to deal with when a new shape is added. ## Solution Delete a bunch of code and position shapes evenly. Assign colors evenly too. ## Before <img width="1280" alt="Screenshot 2024-02-14 at 3 17 40 PM" src="https://github.com/bevyengine/bevy/assets/200550/cc9fd9a8-4019-4907-a50e-621cb656c20a"> ## After <img width="1280" alt="Screenshot 2024-02-14 at 3 17 24 PM" src="https://github.com/bevyengine/bevy/assets/200550/033a3f91-d3bc-4ec8-af59-42a221f8b8e7"> --------- Co-authored-by: BD103 <59022059+BD103@users.noreply.github.com> Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: Joona Aalto <jondolf.dev@gmail.com> |
||
---|---|---|
.. | ||
2d_gizmos.rs | ||
2d_shapes.rs | ||
2d_viewport_to_world.rs | ||
bloom_2d.rs | ||
bounding_2d.rs | ||
custom_gltf_vertex_attribute.rs | ||
mesh2d.rs | ||
mesh2d_manual.rs | ||
mesh2d_vertex_color_texture.rs | ||
move_sprite.rs | ||
pixel_grid_snap.rs | ||
rotation.rs | ||
sprite.rs | ||
sprite_flipping.rs | ||
sprite_sheet.rs | ||
sprite_slice.rs | ||
sprite_tile.rs | ||
text2d.rs | ||
texture_atlas.rs | ||
transparency_2d.rs |