-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap_circles.c
44 lines (37 loc) · 1.61 KB
/
map_circles.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*******************************************************************
Map circles for apoman on MicroZed
based MZ_APO board designed by Petr Porazil at PiKRON
map_circles.c - first map
(C) Copyright 2021 by Lukas Nejezchleb
e-mail: nejezluk@fel.cvut.cz
license: any combination of GPL, LGPL, MPL or BSD licenses
*******************************************************************/
#include "map_template.h"
// the meaning of numbers in array is defined in 'data_strcuture.h'
static char board_data[] = {
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,3,2,2,2,2,2,2,2,2,2,2,2,3,1,
1,2,1,1,1,1,1,1,1,1,1,1,1,2,1,
1,2,1,2,2,2,2,2,2,2,2,2,1,2,1,
1,2,1,2,1,1,1,1,1,1,1,2,1,2,1,
1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,
1,2,1,2,1,1,1,1,1,1,1,2,1,2,1,
1,2,1,2,2,2,2,2,2,2,2,2,3,2,1,
1,2,1,1,1,1,1,1,1,1,1,3,1,1,1,
1,3,2,2,2,2,2,2,2,2,2,2,0,0,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
};
map_template map_circles = {
.name = "Concentric_circles",
.pacman_spawn_x = 7, /* spawning location of pacman */
.pacman_spawn_y = 9, /* spawning location of pacman */
.ghost_spawn_x = 13, /* spawning location of ghost */
.ghost_spawn_y = 9, /* spawning location of ghost */
.width = 15, /* width of the map */
.height = 11, /* height of the map */
.board = board_data, /* actual data about the content of map */
.coin = 2, /* value used to describe coin */
.wall = 1, /* value used to describe wall */
.special = 3, /* value used to describe special coin */
.blank = 0, /* value used to describe place without coin */
};