-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraphics.h
More file actions
112 lines (101 loc) · 2.9 KB
/
graphics.h
File metadata and controls
112 lines (101 loc) · 2.9 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#include "stdio.h"
#include "spriteConv.h"
struct RGBa
{
unsigned char r;
unsigned char g;
unsigned char b;
unsigned char joe;
};
struct OSprite
{
unsigned int address;
unsigned char width;
unsigned char height;
unsigned char palette;
};
void DrawTile(FILE* rom, long address, int xx, int yy, int pal, unsigned char sprite[80][64]);
void GetSprite(FILE* rom, int spriteNum, unsigned char sprite[80][64], int*, int*);
RGBa globalPal[256] =
{ { 0*4, 0*4, 0 *4, 0}, // Color 0
{ 60*4, 60*4, 60 *4, 0}, // Color 1
{ 50*4, 50*4, 50 *4, 0}, // Color 2
{ 36*4, 40*4, 32 *4, 0}, // Color 3, and so forth...
{ 0*4, 40*4, 32 *4, 0},
{ 0*4, 32*4, 28 *4, 0},
{ 20*4, 28*4, 24 *4, 0},
{ 60*4, 44*4, 36 *4, 0},
{ 50*4, 38*4, 30 *4, 0},
{ 60*4, 36*4, 36 *4, 0},
{ 60*4, 0*4, 24 *4, 0},
{ 36*4, 0*4, 6 *4, 0},
{ 56*4, 52*4, 8 *4, 0},
{ 60*4, 36*4, 0 *4, 0},
{ 28*4, 28*4, 60 *4, 0},
{ 12*4, 8*4, 8 *4, 0},
{ 0*4, 0*4, 0 *4, 0},
{ 60*4, 62*4, 62 *4, 0},
{ 42*4, 42*4, 42 *4, 0},
{ 34*4, 34*4, 34 *4, 0},
{ 38*4, 30*4, 11 *4, 0},
{ 60*4, 12*4, 16 *4, 0},
{ 56*4, 52*4, 8 *4, 0},
{ 60*4, 37*4, 0 *4, 0},
{ 50*4, 38*4, 30 *4, 0},
{ 60*4, 36*4, 36 *4, 0},
{ 60*4, 0*4, 24 *4, 0},
{ 20*4, 30*4, 24 *4, 0},
{ 56*4, 52*4, 8 *4, 0},
{ 48*4, 52*4, 38 *4, 0},
{ 36*4, 38*4, 24 *4, 0},
{ 12*4, 8*4, 8 *4, 0},
{ 0*4, 0*4, 0 *4, 0},
{ 60*4, 60*4, 44 *4, 0},
{ 48*4, 44*4, 32 *4, 0},
{ 48*4, 40*4, 26 *4, 0},
{ 38*4, 30*4, 22 *4, 0},
{ 32*4, 24*4, 16 *4, 0},
{ 20*4, 16*4, 10 *4, 0},
{ 60*4, 44*4, 36 *4, 0},
{ 50*4, 38*4, 30 *4, 0},
{ 20*4, 28*4, 22 *4, 0},
{ 60*4, 44*4, 36 *4, 0},
{ 60*4, 36*4, 36 *4, 0},
{ 40*4, 34*4, 60 *4, 0},
{ 28*4, 22*4, 56 *4, 0},
{ 28*4, 28*4, 60 *4, 0},
{ 12*4, 8*4, 8 *4, 0},
{ 0*4, 0*4, 0 *4, 0},
{ 60*4, 60*4, 44 *4, 0},
{ 48*4, 44*4, 32 *4, 0},
{ 48*4, 40*4, 26 *4, 0},
{ 38*4, 30*4, 22 *4, 0},
{ 32*4, 24*4, 16 *4, 0},
{ 20*4, 16*4, 10 *4, 0},
{ 0*4, 44*4, 32 *4, 0},
{ 0*4, 36*4, 28 *4, 0},
{ 20*4, 28*4, 22 *4, 0},
{ 60*4, 44*4, 36 *4, 0},
{ 60*4, 36*4, 36 *4, 0},
{ 60*4, 60*4, 60 *4, 0},
{ 50*4, 50*4, 50 *4, 0},
{ 60*4, 60*4, 60 *4, 0},
{ 12*4, 8*4, 8 *4, 0},
{ 0*4, 0*4, 0 *4, 0},
{ 24*4, 32*4, 62 *4, 0},
{ 62*4, 62*4, 62 *4, 0},
{ 28*4, 28*4, 60 *4, 0},
{ 22*4, 18*4, 38 *4, 0},
{ 32*4, 24*4, 16 *4, 0},
{ 20*4, 16*4, 10 *4, 0},
{ 60*4, 44*4, 36 *4, 0},
{ 62*4, 62*4, 62 *4, 0},
{ 18*4, 20*4, 20 *4, 0},
{ 20*4, 28*4, 22 *4, 0},
{ 60*4, 44*4, 36 *4, 0},
{ 60*4, 36*4, 36 *4, 0},
{ 40*4, 34*4, 60 *4, 0},
{ 28*4, 22*4, 56 *4, 0},
{ 20*4, 0*4, 30 *4, 0},
{ 12*4, 8*4, 8*4 , 0}
};