Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Commit

Permalink
Fix typos in "Improved simple example" (#168)
Browse files Browse the repository at this point in the history
As per #167 (comment), fix the typos.
  • Loading branch information
BrettWitty authored Jun 29, 2021
1 parent d0962c7 commit 76f4eee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,18 @@ let mut tilemap = Tilemap::default();
let texture_atlas_handle = Handle::weak(HandleId::random::<TextureAtlas>());

// Set the texture atlas for the Tilemap
tilemap.set_default_texture_atlas(texture_atlas_handle);
tilemap.set_texture_atlas(texture_atlas_handle);

// Create tile data
let tile = Tile {
// 2D location x,y (units are in tiles)
point: (16,16),

// Which tile from the TextureAtlas
sprite_index = 0,
sprite_index: 0,

// Which z-layer in the Tilemap (0-up)
sprite_order = 0,
sprite_order: 0,

// Give the tile an optional green tint
tint: bevy::render::color::Color::GREEN,
Expand Down

0 comments on commit 76f4eee

Please sign in to comment.