Skip to content

Commit c35ce5b

Browse files
author
Hirundo
committed
Add: Regression test for base graphics.
1 parent c0a36c7 commit c35ce5b

File tree

4 files changed

+109
-0
lines changed

4 files changed

+109
-0
lines changed

regression/029_base_graphics.nml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Source: OpenGFX
2+
3+
base_graphics(0, "") {
4+
// PALETTE_TILE_RED_PULSATING (red tile border pulsating)
5+
recolour_sprite {
6+
0x00..0xD6: 0x00;
7+
0xE3..0xFF: 0x00;
8+
0x0A..0x0C: 0xF0;
9+
0x0D..0x0F: 0xEF;
10+
0x10: 0x0F;
11+
0x06: 0xF0;
12+
0x07: 0xF0;
13+
0x08: 0xF0;
14+
0x04: 0xF0;
15+
0x05: 0xF0;
16+
0x03: 0xF0;
17+
0x01: 0xF0;
18+
0x02: 0xF0;
19+
0x09: 0xF0;
20+
}
21+
// PALETTE_SEL_TILE_RED (red tile border)
22+
recolour_sprite {
23+
0x00..0xD6: 0x00;
24+
0xE3..0xFF: 0x00;
25+
0x0A..0x0D: 0xA3;
26+
0x0E..0x0F: 0xA4;
27+
0x10: 0x0F;
28+
0x06: 0xB4;
29+
0x07: 0xB4;
30+
0x08: 0xB5;
31+
0x04: 0xB3;
32+
0x05: 0xB3;
33+
0x03: 0xB3;
34+
0x01: 0xB2;
35+
0x02: 0xB3;
36+
0x09: 0xB5;
37+
}
38+
}
39+
40+
base_graphics( 2, "fonts.png") { [ 10, 10, 2, 1, 0, -2, NOCROP] }
41+
base_graphics( 3, "fonts.png") { [ 30, 10, 3, 13, 0, -2] }
42+
base_graphics( 4, "fonts.png") { [ 50, 10, 5, 13, 0, -2] }
43+
base_graphics( 5, "fonts.png") { [ 70, 10, 10, 13, 0, -2] }
44+
base_graphics( 6, "fonts.png") { [ 90, 10, 9, 13, 0, -2] }
45+
base_graphics( 7, "fonts.png") { [ 110, 10, 12, 13, 0, -2] }
46+
base_graphics( 8, "fonts.png") { [ 130, 10, 9, 13, 0, -2] }
47+
base_graphics( 9, "fonts.png") { [ 150, 10, 3, 13, 0, -2] }
48+
base_graphics( 10, "fonts.png") { [ 170, 10, 5, 13, 0, -2] }
49+
1.13 KB
Binary file not shown.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// Automatically generated by GRFCODEC. Do not modify!
2+
// (Info version 32)
3+
// Escapes: 2+ 2- 2< 2> 2u< 2u> 2/ 2% 2u/ 2u% 2* 2& 2| 2^ 2sto = 2s 2rst = 2r 2psto 2ror = 2rot 2cmp 2ucmp 2<< 2u>> 2>>
4+
// Escapes: 71 70 7= 7! 7< 7> 7G 7g 7gG 7GG 7gg 7c 7C
5+
// Escapes: D= = DR D+ = DF D- = DC Du* = DM D* = DnF Du<< = DnC D<< = DO D& D| Du/ D/ Du% D%
6+
// Format: spritenum imagefile depth xpos ypos xsize ysize xrel yrel zoom flags
7+
8+
0 * 257 00
9+
00 00 00 00 00 00 00 00 00 00 F0 F0 F0 EF EF EF
10+
0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
11+
F0 F0 00 00 00 00 00 00 F0 00 00 00 00 00 00 00
12+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
13+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
14+
00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00
15+
00 00 00 00 00 00 00 00 00 00 F0 00 00 00 00 00
16+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
17+
00 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 00
18+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
19+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
21+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
22+
00 00 00 00 00 00 00 F0 F0 00 00 00 00 00 00 00
23+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
24+
00 00 00 00 00 F0 00 00 00 00 00 00 00 00 00 00
25+
1 * 257 00
26+
00 00 00 00 00 00 00 00 00 00 A3 A3 A3 A3 A4 A4
27+
0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
28+
B4 B4 00 00 00 00 00 00 B5 00 00 00 00 00 00 00
29+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
31+
00 00 00 00 00 00 00 00 B3 00 00 00 00 00 00 00
32+
00 00 00 00 00 00 00 00 00 00 B3 00 00 00 00 00
33+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
34+
00 00 00 00 00 00 00 00 B3 00 00 00 00 00 00 00
35+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
36+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
37+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
38+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
39+
00 00 00 00 00 00 00 B2 B3 00 00 00 00 00 00 00
40+
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
41+
00 00 00 00 00 B5 00 00 00 00 00 00 00 00 00 00
42+
43+
2 fonts.png 8bpp 10 10 2 1 0 -2 normal nocrop
44+
45+
3 fonts.png 8bpp 30 10 3 13 0 -2 normal
46+
47+
4 fonts.png 8bpp 50 10 5 13 0 -2 normal
48+
49+
5 fonts.png 8bpp 70 10 10 13 0 -2 normal
50+
51+
6 fonts.png 8bpp 90 10 9 13 0 -2 normal
52+
53+
7 fonts.png 8bpp 110 10 12 13 0 -2 normal
54+
55+
8 fonts.png 8bpp 130 10 9 13 0 -2 normal
56+
57+
9 fonts.png 8bpp 150 10 3 13 0 -2 normal
58+
59+
10 fonts.png 8bpp 170 10 5 13 0 -2 normal
60+

regression/fonts.png

1.16 KB
Loading

0 commit comments

Comments
 (0)