-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefines.h
61 lines (52 loc) · 884 Bytes
/
defines.h
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#pragma once
#include <Gamebuino-Meta.h>
const int tempsCycle = 50;
enum {
EMPTY,
W_SANTA,
W_GIFT,
W_TREE,
W_IS,
W_WIN,
W_PUSH,
W_WALL,
SANTA,
GIFT,
TREE,
WALL,
W_STOP,
W_YOU,
W_ICE,
ICE,
W_SINK,
W_LAVA,
LAVA,
W_KILL,
W_LOVE,
LOVE,
W_SWAP,
W_EMPTY,
BALL,
W_BALL,
TILE_COUNT
};
#define IS_YOU 1
#define IS_WIN 2
#define IS_STOP 4
#define IS_PUSH 8
#define IS_SINK 16
#define IS_KILL 32
#define IS_SWAP 64
#define SCREEN_WIDTH 160
#define TILE_SIZE 12
#define ROW_SIZE (16*160*2)
#define ROWS_COUNT (128/16)
extern uint8_t CURRENT_SCREEN;
#define MENU_SCREEN 0
#define GAME_SCREEN 1
#define LEVEL_SELECT_SCREEN 2
#define EDITOR_SCREEN 3
#define GAME_SLICES 10
#define MAP_WIDTH 13
#define MAP_FULL_SIZE (MAP_WIDTH * GAME_SLICES)
void gotoScreen(uint8_t screen);