forked from lantus/Cannonball-C
-
Notifications
You must be signed in to change notification settings - Fork 3
/
globals.h
62 lines (46 loc) · 1.54 KB
/
globals.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
62
#pragma once
#include "stdint.h"
#define REAL_AUDIO_FREQUENCY 48000
// ------------------------------------------------------------------------------------------------
// Compiler Settings
// ------------------------------------------------------------------------------------------------
// Comment out to disable SDL specific sound code
//#define COMPILE_SOUND_CODE
// ------------------------------------------------------------------------------------------------
// Debug Settings
// ------------------------------------------------------------------------------------------------
#define DEBUG_LEVEL 0
// Force AI to play the levels
#define FORCE_AI 0
// ------------------------------------------------------------------------------------------------
// General useful stuff
// ------------------------------------------------------------------------------------------------
// Internal Sega OutRun Screen Properties
#define S16_WIDTH 320
#define S16_HEIGHT 224
// Internal Widescreen Width
#define S16_WIDTH_WIDE 398
// Palette Address in Memory
#define S16_PALETTE_BASE 0x120000
// Number of Palette Entries
#define S16_PALETTE_ENTRIES 0x1000
// Number of stages
#define STAGES 15
// Hard Coded End Point of every level
#define ROAD_END 0x79C
// End Point of level for CPU1, including horizon
#define ROAD_END_CPU1 0x904
enum
{
BIT_0 = 0x01,
BIT_1 = 0x02,
BIT_2 = 0x04,
BIT_3 = 0x08,
BIT_4 = 0x10,
BIT_5 = 0x20,
BIT_6 = 0x40,
BIT_7 = 0x80,
BIT_8 = 0x100,
BIT_9 = 0x200,
BIT_A = 0x400
};