Skip to content

Commit

Permalink
feat: add maze level
Browse files Browse the repository at this point in the history
  • Loading branch information
claby2 committed Mar 4, 2022
1 parent 05de9f6 commit e5dcb0b
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
52 changes: 52 additions & 0 deletions assets/levels/maze.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# * . . . . . . . . . # # . . . . . . # # . . . . . . # # . . . . . . . . . . . . . . # # . . . . #
# . . . . . . . . . . # # . . . . . . # # . . . . . . # # . . . . . . . . . . . . . . # # . . . . #
# . . # # # # # # . . # # . . # # # # # # . . # # # # # # . . # # # # # # # # # # # # # # . . # # #
# . . # # # # # # . . # # . . # # # # # # . . # # # # # # . . # # # # # # # # # # # # # # . . # # #
# . . . . . . # # . . . . . . . . . . . . . . . . . . . . . . . . . . M # . . . . . . . . . . . . #
# . . . . . . # # . . . . . . . . . . . . . . . . . . . . . . . . . . M # . . . . . . . . . . . . #
# . . # # . . # # . . # # # # # # . . # # . . # # # # # # # # # # # # # # . . # # . . # # # # # # #
# . . # # . . # # . . # # # # # # . . # # . . # # # # # # # # # # # # # # . . # # . . # # # # # # #
# . . # # . . # # . . # # . . # # . . # # . . . . . . # # . . . . . . . . . . # # . . . . . . # # #
# M M # # . . # # . . # # . . # # . . # # . . . . . . # # . . . . . . . . . . # # . . . . . . # # #
# # # # # # # # # . . # # . . # # # # # # # # # # # # # # . . # # # # # # . . # # # # # # # # # # #
# # # # # # # # # . . # # . . # # # # # # # # # # # # # # . . # # # # # # . . # # # # # # # # # # #
# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . # # . . # # . . . . . . . . #
# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . # # . . # # . . . . . . . . #
# . . # # # # # # . . # # . . # # # # # # . . # # . . # # # # # # # # # # # # # # . . # # # # # # #
# . . # # # # # # . . # # . . # # # # # # . . # # . . # # # # # # # # # # # # # # . . # # # # # # #
# . . # # . . . . . . # # . . . . . . M # . . # # . . . . . . . . . . . . . . . . . . . . . . . . #
# . . # # . . . . . . # # . . . . . . M # . . # # . . . . . . . . . . . . . . . . . . . . . . . . #
# . . # # . . # # # # # # . . # # . . # # . . # # . . # # . . # # # # # # # # # # # # # # . . # # #
# . . # # . . # # # # # # . . # # . . # # . . # # . . # # . . # # # # # # # # # # # # # # . . # # #
# . . # # . . # # . . . . . . # # . . # # . . # # . . # # . . . . . . M # . . . . . . . . . . . . #
# . . # # . . # # . . . . . . # # . . # # . . # # . . # # . . . . . . M # . . . . . . . . . . . . #
# . . # # . . # # # # # # . . # # . . # # . . # # . . # # . . # # . . # # # # # # # # # # # # # # #
# . . # # . . # # # # # # . T # # . . # # . . # # . . # # . . # # . . # # # # # # # # # # # # # # #
# . . # # . . . . . . M # . T # # . . # # . . # # . . # # . . # # . . # # . . # # . . # # . . . . #
# . . # # . . . . . . M # . T # # . . # # . . # # . . # # . . # # . . # # . . # # . . # # . . . . #
# . . # # # # # # # # # # . . # # . . # # . . # # . . # # . . # # # # # # . . # # . . # # . . # # #
# . . # # # # # # # # # # . . # # . . # # . . # # . . # # . . # # # # # # . . # # . . # # . . # # #
# . . . . . . # # . . . . . . # # . . # # . . # # . . # # . . . . . . . . . . . . . . # # . . # # #
# . . . . . . # # . . . . . . # # . . # # . . # # . . # # . . . . . . . . . . . . . . # # . . # # #
# # # # # . . # # . . # # . . # # . . # # # # # # . . # # . . # # # # # # # # # # . . # # # # # # #
# # # # # . . # # . . # # . . # # . . # # # # # # . . # # . . # # # # # # # # # # . . # # # # # # #
# . . . . . . # # . . # # . . # # . . # # . . # # . . # # . . # # . . # # . . # # . . . . . . # # #
# . . . . . . # # . . # # . . # # . . # # . . # # . . # # . . # # . . # # . . # # . . . . . . # # #
# . . # # . . # # . . # # # # # # # # # # . . # # . . # # # # # # . . # # . . # # # # # # # # # # #
# . . # # . . # # . . # # # # # # # # # # . . # # . . # # # # # # . . # # . . # # # # # # # # # # #
# . . # # . . # # . . # M . . . . . . . . . . . . . . . . . . . . . . . . . . # # . . . . . . . . #
# . . # # . . # # . . # M . . . . . . . . . . . . . . . . . . . . . . . . . . # # . . . . . . . . #
# . . # # # # # # # # # # . . # # . . # # # # # # . . # # . . # # # # # # . . # # . . # # # # # # #
# . . # # # # # # # # # # . . # # . . # # # # # # . . # # . . # # # # # # . . # # . . # # # # # # #
# . . # # . . . . . . . . . . # # . . # # G M M M . . # # . . # # . . . . . . . . . . . . . . . . #
# . . # # . . . . . . . . . . # # . . # # G M M M . . # # . . # # . . . . . . . . . . . . . . . . #
# . . # # . . # # # # # # . . # # # # # # # # # # # # # # . . # # . . # # # # # # . . # # # # # # #
# . . # # . . # # # # # # . . # # # # # # # # # # # # # # . . # # . . # # # # # # . . # # # # # # #
# . . # # . . # # . . . . . . # # . . . . . . . . . . . . . . # # . . . . . . # # . . . . . . # # #
# . . # # . . # # . . . . . . # # . . . . . . . . . . . . . . # # . . . . . . # # . . . . . . # # #
# . . # # . . # # . . # # # # # # . . # # . . # # # # # # . . # # # # # # . . # # . . # # . . # # #
# . . # # . . # # . . # # # # # # . . # # . . # # # # # # . . # # # # # # . . # # . . # # . . # # #
# . . # # . . # # . . # # . . . . . . # # . . # # G G G G . . M M M M # # . . # # . . # # . . . . # .
# . . # # . . # # . . # # . . . . . . # # . . # # G G G G . . M M M M # # . . # # . . # # . . . . # .
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
3 changes: 2 additions & 1 deletion src/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub struct GameWorld {
pub layout: Vec<Vec<Option<Tile>>>,
}

pub const LEVELS: [(&'static str, &'static str); 4] = [
pub const LEVELS: [(&'static str, &'static str); 5] = [
("Level 0", include_str!("../assets/levels/level0.tsv")),
("Level 1", include_str!("../assets/levels/level1.tsv")),
(
Expand All @@ -70,6 +70,7 @@ pub const LEVELS: [(&'static str, &'static str); 4] = [
"Drift",
include_str!("../assets/levels/Levels_-_Beeline_-_Drift.tsv"),
),
("Maze", include_str!("../assets/levels/maze.tsv")),
];

impl GameWorld {
Expand Down

0 comments on commit e5dcb0b

Please sign in to comment.