mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
c110b10367
# Objective A couple issues with this example are evident from this screenshot of the example showcase: <img width="319" alt="image" src="https://github.com/bevyengine/bevy/assets/200550/5325bb29-9576-4989-a5a3-a972c8bbf1af"> - The images are misaligned, closer to the right edge of the screen - The example uses a custom window resolution with a different aspect ratio from the default, which results in black bars ## Solution - Use the default window size - Adjust positions so that things are centered This isn't really fixing a problem, but I also: - Used the default font size and adjusted the text labels and gaps so that everything still fits Which is how I got here in the first place (one less font size to adjust for the cosmic text PR). ## Before <img width="1350" alt="Screenshot 2024-06-20 at 12 23 10 PM" src="https://github.com/bevyengine/bevy/assets/200550/1c7cfcfe-7edc-4561-a4e7-9b3bc8f87f75"> ## After <img width="1280" alt="Screenshot 2024-06-20 at 12 23 30 PM" src="https://github.com/bevyengine/bevy/assets/200550/abab8a46-4e11-4ee6-a407-ae3b8bf31975"> |
||
---|---|---|
.. | ||
2d_shapes.rs | ||
2d_viewport_to_world.rs | ||
bloom_2d.rs | ||
bounding_2d.rs | ||
custom_gltf_vertex_attribute.rs | ||
mesh2d.rs | ||
mesh2d_arcs.rs | ||
mesh2d_manual.rs | ||
mesh2d_vertex_color_texture.rs | ||
move_sprite.rs | ||
pixel_grid_snap.rs | ||
rotation.rs | ||
sprite.rs | ||
sprite_animation.rs | ||
sprite_flipping.rs | ||
sprite_sheet.rs | ||
sprite_slice.rs | ||
sprite_tile.rs | ||
text2d.rs | ||
texture_atlas.rs | ||
transparency_2d.rs | ||
wireframe_2d.rs |