-
Notifications
You must be signed in to change notification settings - Fork 0
/
map_star.c
44 lines (37 loc) · 1.6 KB
/
map_star.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_star.c - star map template
(C) Copyright 2021 by Petr Kucera
e-mail: [email protected]
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_s[] = {
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,3,2,2,2,2,2,3,2,2,2,2,2,3,1,
1,2,1,2,1,1,1,2,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,2,1,1,1,2,1,2,1,
1,2,2,2,2,2,2,3,2,2,2,2,2,3,1,
1,2,1,2,1,1,1,2,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,2,1,1,1,2,1,1,1,
1,2,2,2,2,2,2,2,2,3,2,2,0,0,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
};
map_template map_star = {
.name = "Star_map",
.pacman_spawn_x = 1, /* 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_s, /* 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 */
};