Skip to content

Commit 6c620d7

Browse files
Add fullscreen image example
1 parent 2a89bcb commit 6c620d7

File tree

14 files changed

+228
-1
lines changed

14 files changed

+228
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"rom": "84pce_515.rom",
3+
"transfer_files": [
4+
"bin/DEMO.8xp",
5+
"src/gfx/var_gfx.8xv"
6+
],
7+
"target": {
8+
"name": "DEMO",
9+
"isASM": true
10+
},
11+
"sequence": [
12+
"action|launch",
13+
"hashWait|1",
14+
"key|enter",
15+
"hashWait|2"
16+
],
17+
"hashes": {
18+
"1": {
19+
"description": "Fullscreen tiled image",
20+
"start": "vram_start",
21+
"size": "vram_8_size",
22+
"expected_CRCs": [ "2846A371" ]
23+
},
24+
"2": {
25+
"description": "Back to the home screen (exit check)",
26+
"start": "vram_start",
27+
"size": "vram_16_size",
28+
"expected_CRCs": [ "FFAF89BA", "101734A5", "9DA19F44", "43BF8092", "5ACF1C01" ]
29+
}
30+
}
31+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ----------------------------
2+
# Set NAME to the program name
3+
# Set ICON to the png icon file name
4+
# Set DESCRIPTION to display within a compatible shell
5+
# Set COMPRESSED to "YES" to create a compressed program
6+
# ----------------------------
7+
8+
NAME ?= DEMO
9+
COMPRESSED ?= NO
10+
ICON ?= iconc.png
11+
DESCRIPTION ?= "C SDK Demo"
12+
13+
# ----------------------------
14+
15+
include $(CEDEV)/include/.makefile
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### GraphX Fullscreen Image Demo
2+
3+
An example of a compressed tiled image to construct a fullscreen image.
4+
5+
![Screenshot](screenshot.png)
6+
7+
---
8+
9+
This demo is a part of the C SDK Toolchain for use on the CE.
Loading
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Appvar to place all graphics in
2+
3+
#AppvarC : var_gfx
4+
#OutputPalettes : tiles_gfx
5+
#PNGImages :
6+
tileset
7+
8+
// The compressed group for the tileset
9+
10+
#GroupC : tiles_gfx
11+
#Tilemap : 80,80,true
12+
#Compression : zx7
13+
#PNGImages :
14+
tileset
15+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// convpng
2+
#include <stdint.h>
3+
#include "tiles_gfx.h"
4+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// convpng
2+
// this file contains all the graphics sources for easy inclusion in a project
3+
#ifndef __tiles_gfx__
4+
#define __tiles_gfx__
5+
#include <stdint.h>
6+
7+
8+
#endif
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// convpng
2+
#include <stdint.h>
3+
#include "tiles_gfx.h"
4+
5+
uint8_t *tileset_tiles_compressed[12] = {
6+
(uint8_t*)0,
7+
(uint8_t*)3752,
8+
(uint8_t*)7872,
9+
(uint8_t*)12183,
10+
(uint8_t*)15527,
11+
(uint8_t*)20894,
12+
(uint8_t*)25809,
13+
(uint8_t*)30646,
14+
(uint8_t*)35982,
15+
(uint8_t*)41664,
16+
(uint8_t*)46419,
17+
(uint8_t*)50679,
18+
};
Loading
Binary file not shown.

0 commit comments

Comments
 (0)