fn init_reference_sprite(world: &mut World, sprite_sheet: &Handle<SpriteSheet>) -> Entity {
    let mut transform = Transform::default();
    transform.set_translation_xyz(0.0, 0.0, 0.0);
    let sprite = SpriteRender {
        sprite_sheet: sprite_sheet.clone(),
        sprite_number: 0,
    };
    world
        .create_entity()
        .with(transform)
        .with(sprite)
        .with(Transparent)
        .named("reference")
        .build()
}
// Initialize a sprite as a reference point at a fixed location
Initialize a sprite as a reference point at a fixed location
Initialize a sprite as a reference point at a fixed location
fn init_reference_sprite(world: &mut World, sprite_sheet: &Handle<SpriteSheet>) -> Entity {
    let mut transform = Transform::default();
    transform.set_translation_xyz(0.0, 0.0, 0.0);
    let sprite = SpriteRender {
        sprite_sheet: sprite_sheet.clone(),
        sprite_number: 0,
    };
    world
        .create_entity()
        .with(transform)
        .with(sprite)
        .with(Transparent)
        .named("reference")
        .build()
}
fn init_reference_sprite ( world : & mut World , sprite_sheet : & Handle < SpriteSheet > ) -> Entity { let mut transform = Transform :: default ( ) ; transform . set_translation_xyz ( 0.0 , 0.0 , 0.0 ) ; let sprite = SpriteRender { sprite_sheet : sprite_sheet . clone ( ) , sprite_number : 0 , } ; world . create_entity ( ) . with ( transform ) . with ( sprite ) . with ( Transparent ) . named ( " " ) . build ( ) }
Initialize a sprite as a reference point at a fixed location
Initialize a sprite as a reference point at a fixed location
world
&mut World
sprite_sheet
&Handle<SpriteSheet>
world
&mut World
sprite_sheet
&Handle<SpriteSheet>