Skip to content

Commit

Permalink
added some better levels
Browse files Browse the repository at this point in the history
  • Loading branch information
10aded committed Mar 12, 2024
1 parent 39b8660 commit 72b6c3e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 18 deletions.
2 changes: 1 addition & 1 deletion level-parser.zig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const dprint = std.debug.print;
const Tile = i8;
const Grid = [16] Tile;

const NUMBER_OF_LEVELS = 5;
const NUMBER_OF_LEVELS = 6;
const LEVEL_FILENAME = "levels.txt";

const level_string_data = @embedFile(LEVEL_FILENAME);
Expand Down
38 changes: 22 additions & 16 deletions levels.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,34 @@
1034
4321
2143
3412
0402

// Level 2
0034
1000
2143
0000
0421
1003
2004
4310

// Level 3
0000
4000
0100
0002
3001
0240
0130
4002

// Level 4
1234
4321
2143
3412
0030
3002
2300
0420

// Level 5
1034
0310
0103
0000

// Level 6
1230
4001
0010
0000
1234
2143
4312
1 change: 0 additions & 1 deletion main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@


// TODO LIST:
// * Add menu button to instructions screen
// * Create some levels!!!
// * Choose a niceish color theme.

Expand Down

0 comments on commit 72b6c3e

Please sign in to comment.