From 2d182c1f9c80a1e1ffb232bc6e17980cb3a64cf5 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 13 Feb 2023 21:58:24 +0000 Subject: Pickups WIP TODO: collision --- data/map.json | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++- data/sprites.json | 17 +++++++++++++--- data/sprites.png | Bin 8565 -> 9982 bytes 3 files changed, 70 insertions(+), 4 deletions(-) (limited to 'data') diff --git a/data/map.json b/data/map.json index 0791988..d98ca03 100644 --- a/data/map.json +++ b/data/map.json @@ -53,6 +53,61 @@ "width":16, "x":80, "y":40 + }, + { + "height":16, + "id":3, + "name":"Battery", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":192, + "y":48 + }, + { + "height":16, + "id":5, + "name":"Battery", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":240, + "y":48 + }, + { + "height":16, + "id":6, + "name":"Battery", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":256, + "y":48 + }, + { + "height":16, + "id":7, + "name":"Battery", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":272, + "y":48 + }, + { + "height":16, + "id":8, + "name":"Battery", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":288, + "y":48 }], "opacity":1, "type":"objectgroup", @@ -61,7 +116,7 @@ "y":0 }], "nextlayerid":6, - "nextobjectid":3, + "nextobjectid":9, "orientation":"orthogonal", "renderorder":"right-down", "tiledversion":"1.7.2", diff --git a/data/sprites.json b/data/sprites.json index 6fddd4e..6df8b7b 100644 --- a/data/sprites.json +++ b/data/sprites.json @@ -15,12 +15,23 @@ }, "dust": { "frames": [ - { "x": 0, "y": 24, "width": 16, "height": 24 }, - { "x": 16, "y": 24, "width": 16, "height": 24 }, - { "x": 32, "y": 24, "width": 16, "height": 24 } + { "x": 0, "y": 24, "width": 16, "height": 16 }, + { "x": 16, "y": 24, "width": 16, "height": 16 }, + { "x": 32, "y": 24, "width": 16, "height": 16 } ], "sets": [ [0, 1, 2] ] + }, + "battery": { + "frames": [ + { "x": 0, "y": 40, "width": 16, "height": 16 }, + { "x": 16, "y": 40, "width": 16, "height": 16 }, + { "x": 32, "y": 40, "width": 16, "height": 16 }, + { "x": 48, "y": 40, "width": 16, "height": 16 } + ], + "sets": [ + [0, 0, 0, 0, 0, 0, 0, 1, 2, 3] + ] } } diff --git a/data/sprites.png b/data/sprites.png index 21ef84e..fde41d8 100644 Binary files a/data/sprites.png and b/data/sprites.png differ -- cgit v1.2.3