From 7a8af18d0e1003c26eb595b5faa71e51da6286a6 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 17 Apr 2023 23:41:35 +0100 Subject: Added new shooter enemy --- data/map1.json | 23 +++++++++++---- data/sprites.json | 83 ++++++++++++++++++++++++++++++++++++++---------------- data/sprites.png | Bin 18258 -> 21424 bytes 3 files changed, 75 insertions(+), 31 deletions(-) (limited to 'data') diff --git a/data/map1.json b/data/map1.json index c1f6030..0d532df 100644 --- a/data/map1.json +++ b/data/map1.json @@ -52,8 +52,8 @@ "type":"", "visible":true, "width":16, - "x":16, - "y":16 + "x":32, + "y":112 }, { "height":16, @@ -179,13 +179,13 @@ { "height":24, "id":25, - "name":"Robot", + "name":"Shooter", "rotation":0, "type":"", "visible":true, "width":16, - "x":32, - "y":40 + "x":64, + "y":136 }, { "height":16, @@ -219,6 +219,17 @@ "width":16, "x":16, "y":96 + }, + { + "height":24, + "id":33, + "name":"Shooter-l", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":112, + "y":136 }], "opacity":1, "type":"objectgroup", @@ -227,7 +238,7 @@ "y":0 }], "nextlayerid":6, - "nextobjectid":33, + "nextobjectid":34, "orientation":"orthogonal", "renderorder":"right-down", "tiledversion":"1.7.2", diff --git a/data/sprites.json b/data/sprites.json index 3c0b7b7..c4fcfb3 100644 --- a/data/sprites.json +++ b/data/sprites.json @@ -35,8 +35,8 @@ "dust": { "frames": [ { "x": 0, "y": 24, "width": 16, "height": 16 }, - { "x": 16, "y": 24, "width": 16, "height": 16 }, - { "x": 32, "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] @@ -45,9 +45,9 @@ "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 } + { "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] @@ -55,10 +55,10 @@ }, "hud": { "frames": [ - { "x": 48, "y": 24, "width": 8, "height": 8 }, - { "x": 56, "y": 24, "width": 8, "height": 8 }, - { "x": 48, "y": 32, "width": 8, "height": 8 }, - { "x": 56, "y": 32, "width": 8, "height": 8 } + { "x": 48, "y": 24, "width": 8, "height": 8 }, + { "x": 56, "y": 24, "width": 8, "height": 8 }, + { "x": 48, "y": 32, "width": 8, "height": 8 }, + { "x": 56, "y": 32, "width": 8, "height": 8 } ], "sets": [ [0, 1, 2, 3] @@ -67,7 +67,7 @@ "slime": { "frames": [ { "x": 0, "y": 56, "width": 16, "height": 16 }, - { "x": 16, "y": 56, "width": 16, "height": 16 } + { "x": 16, "y": 56, "width": 16, "height": 16 } ], "sets": [ [0, 1] @@ -76,31 +76,64 @@ "robot": { "frames": [ { "x": 0, "y": 72, "width": 16, "height": 24 }, - { "x": 16, "y": 72, "width": 16, "height": 24 }, - { "x": 32, "y": 72, "width": 16, "height": 24 }, - { "x": 48, "y": 72, "width": 16, "height": 24 }, - { "x": 64, "y": 72, "width": 16, "height": 24 }, - { "x": 80, "y": 72, "width": 16, "height": 24 } + { "x": 16, "y": 72, "width": 16, "height": 24 }, + { "x": 32, "y": 72, "width": 16, "height": 24 }, + { "x": 48, "y": 72, "width": 16, "height": 24 }, + { "x": 64, "y": 72, "width": 16, "height": 24 }, + { "x": 80, "y": 72, "width": 16, "height": 24 } ], "sets": [ [0, 1, 0, 2], [5, 4, 5, 3] ] }, + "shooter": { + "frames": [ + { "x": 0, "y": 96, "width": 16, "height": 24 }, + { "x": 16, "y": 96, "width": 16, "height": 24 }, + { "x": 32, "y": 96, "width": 16, "height": 24 }, + { "x": 48, "y": 96, "width": 16, "height": 24 }, + { "x": 64, "y": 96, "width": 16, "height": 24 }, + { "x": 80, "y": 96, "width": 16, "height": 24 } + ], + "sets": [ + [0, 1, 0, 2], + [5, 4, 5, 3] + ] + }, + "blast": { + "frames": [ + { "x": 32, "y": 56, "width": 16, "height": 8 }, + { "x": 48, "y": 56, "width": 16, "height": 8 } + ], + "sets": [ + [0, 1] + ] + }, + "impact": { + "frames": [ + { "x": 64, "y": 56, "width": 8, "height": 8 }, + { "x": 72, "y": 56, "width": 8, "height": 8 }, + { "x": 80, "y": 56, "width": 8, "height": 8 } + ], + "sets": [ + [0, 1, 2] + ] + }, "exit": { "frames": [ { "x": 0, "y": 160, "width": 16, "height": 24 }, - { "x": 16, "y": 160, "width": 16, "height": 24 }, - { "x": 32, "y": 160, "width": 16, "height": 24 }, - { "x": 48, "y": 160, "width": 16, "height": 24 }, - { "x": 64, "y": 160, "width": 16, "height": 24 }, - { "x": 80, "y": 160, "width": 16, "height": 24 }, + { "x": 16, "y": 160, "width": 16, "height": 24 }, + { "x": 32, "y": 160, "width": 16, "height": 24 }, + { "x": 48, "y": 160, "width": 16, "height": 24 }, + { "x": 64, "y": 160, "width": 16, "height": 24 }, + { "x": 80, "y": 160, "width": 16, "height": 24 }, { "x": 0, "y": 184, "width": 16, "height": 24 }, - { "x": 16, "y": 184, "width": 16, "height": 24 }, - { "x": 32, "y": 184, "width": 16, "height": 24 }, - { "x": 48, "y": 184, "width": 16, "height": 24 }, - { "x": 64, "y": 184, "width": 16, "height": 24 }, - { "x": 80, "y": 184, "width": 16, "height": 24 } + { "x": 16, "y": 184, "width": 16, "height": 24 }, + { "x": 32, "y": 184, "width": 16, "height": 24 }, + { "x": 48, "y": 184, "width": 16, "height": 24 }, + { "x": 64, "y": 184, "width": 16, "height": 24 }, + { "x": 80, "y": 184, "width": 16, "height": 24 } ], "sets": [ [0, 1, 2, 3, 4, 5, 5, diff --git a/data/sprites.png b/data/sprites.png index 1ad43de..0247640 100644 Binary files a/data/sprites.png and b/data/sprites.png differ -- cgit v1.2.3