 94e0e1f031
			
		
	
	
		94e0e1f031
		
			
		
	
	
	
	
		
			
			# Objective Make the examples look more uniform and more polished. following the issue #17167 ## Solution - [x] Added a minimal UI explaining how to interact with the examples only when needed. - [x] Used the same notation for interactions ex : "Up Arrow: Move Forward \nLeft / Right Arrow: Turn" - [x] Set the color to [GRAY](https://github.com/bevyengine/bevy/pull/17237#discussion_r1907560092) when it's not visible enough - [x] Changed some colors to be easy on the eyes - [x] removed the //camera comment - [x] Unified the use of capital letters in the examples. - [x] Simplified the mesh2d_arc offset calculations. ... --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: Rob Parrett <robparrett@gmail.com>
		
			
				
	
	
		
			24 lines
		
	
	
		
			595 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			595 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //! Displays a single [`Sprite`], created from an image, but flipped on one axis.
 | |
| 
 | |
| use bevy::prelude::*;
 | |
| 
 | |
| fn main() {
 | |
|     App::new()
 | |
|         .add_plugins(DefaultPlugins)
 | |
|         .add_systems(Startup, setup)
 | |
|         .run();
 | |
| }
 | |
| 
 | |
| fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
 | |
|     commands.spawn(Camera2d);
 | |
| 
 | |
|     commands.spawn(Sprite {
 | |
|         image: asset_server.load("branding/bevy_bird_dark.png"),
 | |
|         // Flip the logo to the left
 | |
|         flip_x: true,
 | |
|         // And don't flip it upside-down ( the default )
 | |
|         flip_y: false,
 | |
|         ..Default::default()
 | |
|     });
 | |
| }
 |