mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-06 19:15:45 -06:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b3a3664578 |
0
src/board.rs
Normal file
0
src/board.rs
Normal file
44
src/constants.rs
Normal file
44
src/constants.rs
Normal file
@@ -0,0 +1,44 @@
|
||||
pub const BOARD_WIDTH: u32 = 28;
|
||||
pub const BOARD_HEIGHT: u32 = 36;
|
||||
pub const BLOCK_SIZE_24: u32 = 24;
|
||||
pub const BLOCK_SIZE_32: u32 = 32;
|
||||
|
||||
pub const WINDOW_WIDTH: u32 = BLOCK_SIZE_24 * BOARD_WIDTH;
|
||||
pub const WINDOW_HEIGHT: u32 = BLOCK_SIZE_24 * BOARD_HEIGHT;
|
||||
|
||||
pub const RAW_BOARD: &str = r###"
|
||||
|
||||
|
||||
############################
|
||||
#............##............#
|
||||
#.####.#####.##.#####.####.#
|
||||
#o####.#####.##.#####.####o#
|
||||
#.####.#####.##.#####.####.#
|
||||
#..........................#
|
||||
#.####.##.########.##.####.#
|
||||
#.####.##.########.##.####.#
|
||||
#......##....##....##......#
|
||||
######.##### ## #####.######
|
||||
#.##### ## #####.#
|
||||
#.## 1 ##.#
|
||||
#.## ###==### ##.#
|
||||
######.## # # ##.######
|
||||
. #2 3 4 # .
|
||||
######.## # # ##.######
|
||||
#.## ######## ##.#
|
||||
#.## ##.#
|
||||
#.## ######## ##.#
|
||||
######.## ######## ##.######
|
||||
#............##............#
|
||||
#.####.#####.##.#####.####.#
|
||||
#.####.#####.##.#####.####.#
|
||||
#o..##.......0 .......##..o#
|
||||
###.##.##.########.##.##.###
|
||||
###.##.##.########.##.##.###
|
||||
#......##....##....##......#
|
||||
#.##########.##.##########.#
|
||||
#.##########.##.##########.#
|
||||
#..........................#
|
||||
############################
|
||||
|
||||
"###;
|
||||
11
src/game.rs
Normal file
11
src/game.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
pub struct Game {}
|
||||
|
||||
impl Game {
|
||||
pub fn new() -> Game {
|
||||
Game {}
|
||||
}
|
||||
|
||||
pub fn tick() {}
|
||||
|
||||
pub fn draw() {}
|
||||
}
|
||||
Reference in New Issue
Block a user