Skip to content

Commit

Permalink
Merge pull request #359 from StarArawn/example-fix
Browse files Browse the repository at this point in the history
Fixing texture_vec and texture_container examples.
  • Loading branch information
StarArawn authored Nov 30, 2022
2 parents fe91357 + 2b04793 commit b29f5a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/texture_container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ mod no_atlas {
const MAP_RADIUS: u32 = 10;
const MAP_DIAMETER: u32 = 2 * MAP_RADIUS + 1;
const MAP_CENTER: TilePos = TilePos {
x: MAP_RADIUS + 1,
y: MAP_RADIUS + 1,
x: MAP_RADIUS,
y: MAP_RADIUS,
};
// const TILE_SIZE: TilemapTileSize = TilemapTileSize { x: 48.0, y: 54.0 };
const TILE_SIZE: TilemapTileSize = TilemapTileSize { x: 48.0, y: 56.0 };
Expand Down
4 changes: 2 additions & 2 deletions examples/texture_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ mod no_atlas {
const MAP_RADIUS: u32 = 10;
const MAP_DIAMETER: u32 = 2 * MAP_RADIUS + 1;
const MAP_CENTER: TilePos = TilePos {
x: MAP_RADIUS + 1,
y: MAP_RADIUS + 1,
x: MAP_RADIUS,
y: MAP_RADIUS,
};
const TILE_SIZE: TilemapTileSize = TilemapTileSize { x: 48.0, y: 54.0 };
const COORD_SYS: HexCoordSystem = HexCoordSystem::Row;
Expand Down

0 comments on commit b29f5a4

Please sign in to comment.