diff --git a/res/tiles.png b/res/tiles.png index 008e901..c3223e8 100644 Binary files a/res/tiles.png and b/res/tiles.png differ diff --git a/src/world.rs b/src/world.rs index e61ceb9..203f0d4 100644 --- a/src/world.rs +++ b/src/world.rs @@ -115,6 +115,12 @@ impl Chunk { b.id = rng.gen_range(1..5); } } + // Unbreakable layer at bottom + if pos.y > 510 { + for b in &mut tiles { + b.id = Tile::UNBREAKANIUM; + } + } Self { tiles } } @@ -132,4 +138,5 @@ pub struct Tile { impl Tile { pub const AIR: TileId = 0; + pub const UNBREAKANIUM: TileId = 5; }