summaryrefslogtreecommitdiff
path: root/game/data
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2020-12-30 19:07:31 +0000
committerJuan J. Martinez <jjm@usebox.net>2020-12-30 19:23:41 +0000
commit2682bc5d1d864341aaeb42a449db73c3ecd16d70 (patch)
tree9116764364b4ee0ce7f6037305077807b57776de /game/data
downloadubox-msx-lib-ca9b663c147340e92804979a96eee4113ab0b27f.tar.gz
ubox-msx-lib-ca9b663c147340e92804979a96eee4113ab0b27f.zip
Initial import1.0
Diffstat (limited to 'game/data')
-rw-r--r--game/data/Makefile21
-rw-r--r--game/data/effects.aksbin0 -> 1614 bytes
-rw-r--r--game/data/enemy.pngbin0 -> 5448 bytes
-rw-r--r--game/data/map.json159
-rw-r--r--game/data/map_conf.json19
-rw-r--r--game/data/player.pngbin0 -> 5447 bytes
-rw-r--r--game/data/song.aksbin0 -> 2019 bytes
-rw-r--r--game/data/tiles.pngbin0 -> 6932 bytes
8 files changed, 199 insertions, 0 deletions
diff --git a/game/data/Makefile b/game/data/Makefile
new file mode 100644
index 0000000..f79ae33
--- /dev/null
+++ b/game/data/Makefile
@@ -0,0 +1,21 @@
+OUTPUT=../generated
+GENERATED=$(OUTPUT)/tiles.h $(OUTPUT)/player.h $(OUTPUT)/enemy.h $(OUTPUT)/map.h
+
+all: $(GENERATED)
+
+$(OUTPUT)/tiles.h: tiles.png
+ ../../tools/png2tiles.py -i tiles $< > $@
+
+$(OUTPUT)/player.h: player.png
+ ../../tools/png2sprites.py -i player_sprite $< > $@
+
+$(OUTPUT)/enemy.h: enemy.png
+ ../../tools/png2sprites.py -i enemy_sprite $< > $@
+
+$(OUTPUT)/map.h: map.json map_conf.json
+ ../../tools/map.py --max-ents 11 --room-height 21 map.json map > $@
+
+.PHONY: all clean
+clean:
+ rm -f $(OUTPUT)/*
+
diff --git a/game/data/effects.aks b/game/data/effects.aks
new file mode 100644
index 0000000..9b21571
--- /dev/null
+++ b/game/data/effects.aks
Binary files differ
diff --git a/game/data/enemy.png b/game/data/enemy.png
new file mode 100644
index 0000000..728d9f5
--- /dev/null
+++ b/game/data/enemy.png
Binary files differ
diff --git a/game/data/map.json b/game/data/map.json
new file mode 100644
index 0000000..a5df88c
--- /dev/null
+++ b/game/data/map.json
@@ -0,0 +1,159 @@
+{ "compressionlevel":-1,
+ "editorsettings":
+ {
+ "export":
+ {
+ "target":"."
+ }
+ },
+ "height":21,
+ "infinite":false,
+ "layers":[
+ {
+ "data":[6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 8, 9, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 193, 14, 8, 9, 13, 193, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 225, 14, 8, 9, 13, 225, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 6, 7, 6, 7, 10, 11, 6, 7, 6, 7, 6, 7, 6, 7, 8, 9, 6, 7, 6, 7, 6, 7, 10, 11, 6, 7, 6, 7, 6, 7, 6, 7, 130, 130, 130, 130, 15, 16, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 15, 16, 130, 130, 130, 130, 130, 130, 130, 130, 13, 14, 13, 14, 15, 16, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 15, 16, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 15, 16, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 15, 16, 13, 14, 13, 14, 13, 14, 13, 14, 6, 7, 6, 7, 10, 11, 6, 7, 6, 7, 10, 11, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 10, 11, 6, 7, 6, 7, 6, 7, 6, 7, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 15, 16, 130, 130, 130, 130, 130, 130, 8, 9, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 15, 16, 13, 14, 13, 14, 193, 14, 8, 9, 13, 193, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 15, 16, 13, 14, 13, 14, 225, 14, 8, 9, 13, 225, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 10, 11, 6, 7, 6, 7, 6, 7, 8, 9, 6, 7, 6, 7, 6, 7, 10, 11, 6, 7, 6, 7, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 15, 16, 130, 130, 130, 130, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 15, 16, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 13, 14, 15, 16, 13, 14, 13, 14, 6, 7, 6, 7, 10, 11, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 10, 11, 6, 7, 6, 7, 10, 11, 6, 7, 6, 7, 130, 130, 130, 130, 15, 16, 130, 130, 130, 130, 8, 9, 130, 130, 130, 130, 130, 130, 130, 130, 15, 16, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 13, 14, 13, 14, 15, 16, 13, 14, 193, 14, 8, 9, 13, 193, 13, 14, 13, 14, 13, 14, 15, 16, 13, 14, 13, 14, 13, 14, 13, 14, 193, 14, 13, 14, 13, 14, 15, 16, 13, 14, 225, 14, 8, 9, 13, 225, 13, 14, 13, 14, 13, 14, 15, 16, 13, 14, 13, 14, 13, 14, 13, 14, 225, 14, 6, 7, 6, 7, 10, 11, 6, 7, 6, 7, 8, 9, 6, 7, 6, 7, 6, 7, 6, 7, 10, 11, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7],
+ "height":21,
+ "id":1,
+ "name":"Map",
+ "opacity":1,
+ "type":"tilelayer",
+ "visible":true,
+ "width":32,
+ "x":0,
+ "y":0
+ },
+ {
+ "draworder":"topdown",
+ "id":2,
+ "name":"Entities",
+ "objects":[
+ {
+ "height":16,
+ "id":10,
+ "name":"player",
+ "rotation":0,
+ "type":"",
+ "visible":true,
+ "width":16,
+ "x":8,
+ "y":16
+ },
+ {
+ "height":16,
+ "id":11,
+ "name":"enemy",
+ "rotation":0,
+ "type":"",
+ "visible":true,
+ "width":16,
+ "x":168,
+ "y":16
+ },
+ {
+ "height":16,
+ "id":12,
+ "name":"enemy",
+ "rotation":0,
+ "type":"",
+ "visible":true,
+ "width":16,
+ "x":64,
+ "y":48
+ },
+ {
+ "height":16,
+ "id":13,
+ "name":"enemy",
+ "properties":[
+ {
+ "name":"param",
+ "type":"int",
+ "value":1
+ }],
+ "rotation":0,
+ "type":"",
+ "visible":true,
+ "width":16,
+ "x":232,
+ "y":48
+ },
+ {
+ "height":16,
+ "id":14,
+ "name":"enemy",
+ "rotation":0,
+ "type":"",
+ "visible":true,
+ "width":16,
+ "x":104,
+ "y":80
+ },
+ {
+ "height":16,
+ "id":15,
+ "name":"enemy",
+ "rotation":0,
+ "type":"",
+ "visible":true,
+ "width":16,
+ "x":32,
+ "y":112
+ },
+ {
+ "height":16,
+ "id":16,
+ "name":"enemy",
+ "rotation":0,
+ "type":"",
+ "visible":true,
+ "width":16,
+ "x":128,
+ "y":144
+ },
+ {
+ "height":16,
+ "id":18,
+ "name":"enemy",
+ "properties":[
+ {
+ "name":"param",
+ "type":"int",
+ "value":1
+ }],
+ "rotation":0,
+ "type":"",
+ "visible":true,
+ "width":16,
+ "x":144,
+ "y":48
+ }],
+ "opacity":1,
+ "type":"objectgroup",
+ "visible":true,
+ "x":0,
+ "y":0
+ }],
+ "nextlayerid":3,
+ "nextobjectid":19,
+ "orientation":"orthogonal",
+ "renderorder":"right-down",
+ "tiledversion":"1.3.1",
+ "tileheight":8,
+ "tilesets":[
+ {
+ "columns":32,
+ "firstgid":1,
+ "image":"tiles.png",
+ "imageheight":64,
+ "imagewidth":256,
+ "margin":0,
+ "name":"default",
+ "spacing":0,
+ "tilecount":256,
+ "tileheight":8,
+ "tilewidth":8
+ }],
+ "tilewidth":8,
+ "type":"map",
+ "version":1.2,
+ "width":32
+} \ No newline at end of file
diff --git a/game/data/map_conf.json b/game/data/map_conf.json
new file mode 100644
index 0000000..79a7a29
--- /dev/null
+++ b/game/data/map_conf.json
@@ -0,0 +1,19 @@
+{
+ "entities": [
+ {
+ "bytes": 0,
+ "name": "unused",
+ "w": 1
+ },
+ {
+ "bytes": 0,
+ "name": "player",
+ "w": 1
+ },
+ {
+ "bytes": 0,
+ "name": "enemy",
+ "w": 1
+ }
+ ]
+}
diff --git a/game/data/player.png b/game/data/player.png
new file mode 100644
index 0000000..fe6b254
--- /dev/null
+++ b/game/data/player.png
Binary files differ
diff --git a/game/data/song.aks b/game/data/song.aks
new file mode 100644
index 0000000..59b94e1
--- /dev/null
+++ b/game/data/song.aks
Binary files differ
diff --git a/game/data/tiles.png b/game/data/tiles.png
new file mode 100644
index 0000000..82fbb6c
--- /dev/null
+++ b/game/data/tiles.png
Binary files differ