summaryrefslogtreecommitdiff
path: root/game/src/main.h
blob: f8d5d779f7655bf2dd9b7f909a1f28663c9953ef (plain)
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
#ifndef _MAIN_H
#define _MAIN_H

#include <stdint.h>

#ifndef LOCAL
#define LOCAL extern
#endif

#define WHITESPACE_TILE 129

// sub-songs matching our Arkos song
// configure the song to use MSX AY
enum songs
{
    SONG_SILENCE = 0,
    SONG_IN_GAME,
    SONG_GAME_OVER,
};

// we will use 0 and 1 for the music
#define EFX_CHAN_NO 2

// sound effects matching our Arkos efc song
// configure the song to use MSX AY
enum effects
{
    EFX_NONE = 0,
    EFX_START,
    EFX_BATTERY,
    EFX_ELEVATOR,
    EFX_HIT,
    EFX_DEAD,
};

void draw_end_game();
void draw_menu();

// store the selected control
LOCAL uint8_t ctl;

// Arkos data
extern uint8_t SONG[];
extern uint8_t EFFECTS[];

#ifdef LOCAL
#undef LOCAL
#endif

#endif // _MAIN_H