-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Un-hardcode positions and colors in
2d_shapes
example (#11867)
# 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>
- Loading branch information
1 parent
dc9b486
commit 1d5388e
Showing
1 changed file
with
36 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters