From 2682bc5d1d864341aaeb42a449db73c3ecd16d70 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 30 Dec 2020 19:07:31 +0000 Subject: Initial import --- game/data/Makefile | 21 +++++++ game/data/effects.aks | Bin 0 -> 1614 bytes game/data/enemy.png | Bin 0 -> 5448 bytes game/data/map.json | 159 ++++++++++++++++++++++++++++++++++++++++++++++++ game/data/map_conf.json | 19 ++++++ game/data/player.png | Bin 0 -> 5447 bytes game/data/song.aks | Bin 0 -> 2019 bytes game/data/tiles.png | Bin 0 -> 6932 bytes 8 files changed, 199 insertions(+) create mode 100644 game/data/Makefile create mode 100644 game/data/effects.aks create mode 100644 game/data/enemy.png create mode 100644 game/data/map.json create mode 100644 game/data/map_conf.json create mode 100644 game/data/player.png create mode 100644 game/data/song.aks create mode 100644 game/data/tiles.png (limited to 'game/data') 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 Binary files /dev/null and b/game/data/effects.aks differ diff --git a/game/data/enemy.png b/game/data/enemy.png new file mode 100644 index 0000000..728d9f5 Binary files /dev/null and b/game/data/enemy.png 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 Binary files /dev/null and b/game/data/player.png differ diff --git a/game/data/song.aks b/game/data/song.aks new file mode 100644 index 0000000..59b94e1 Binary files /dev/null and b/game/data/song.aks differ diff --git a/game/data/tiles.png b/game/data/tiles.png new file mode 100644 index 0000000..82fbb6c Binary files /dev/null and b/game/data/tiles.png differ -- cgit v1.2.3