diff --git a/dist/shattered_sword_assets/spritesheets/Snake.json b/dist/shattered_sword_assets/spritesheets/Snake.json new file mode 100644 index 0000000..d43e9d6 --- /dev/null +++ b/dist/shattered_sword_assets/spritesheets/Snake.json @@ -0,0 +1,208 @@ +{ + "name" : "Snake", + "spriteSheetImage": "Snake.png", + "spriteWidth": 32, + "spriteHeight": 32, + "columns": 5, + "rows": 4, + "durationType": "time", + "animations": [ + { + "name": "IDLE", + "repeat": true, + "frames": [ + { + "index": 0, + "duration": 150 + }, + { + "index": 1, + "duration": 150 + }, + { + "index": 2, + "duration": 150 + }, + { + "index": 3, + "duration": 100 + }, + { + "index": 4, + "duration": 100 + }, + { + "index": 3, + "duration": 100 + }, + { + "index": 4, + "duration": 100 + }, + { + "index": 3, + "duration": 100 + }, + { + "index": 2, + "duration": 150 + }, + { + "index": 1, + "duration": 150 + } + ] + }, + { + "name": "walk", + "repeat": true, + "frames": [ + { + "index": 0, + "duration": 150 + }, + { + "index": 1, + "duration": 150 + }, + { + "index": 2, + "duration": 150 + }, + { + "index": 3, + "duration": 100 + }, + { + "index": 4, + "duration": 100 + } + ] + }, + { + "name": "ATTACK", + "repeat": true, + "frames": [ + { + "index": 0, + "duration": 150 + }, + { + "index": 5, + "duration": 100 + }, + { + "index": 6, + "duration": 100 + }, + { + "index": 7, + "duration": 100 + }, + { + "index": 8, + "duration": 100 + }, + { + "index": 9, + "duration": 100 + }, + { + "index": 10, + "duration": 100 + }, + { + "index": 11, + "duration": 150 + } + + ] + }, + { + "name": "DYING", + "repeat": false, + "frames": [ + { + "index": 0, + "duration": 150 + }, + { + "index": 12, + "duration": 100 + }, + { + "index": 13, + "duration": 100 + }, + { + "index": 14, + "duration": 100 + }, + { + "index": 15, + "duration": 150 + }, + { + "index": 16, + "duration": 150 + }, + { + "index": 17, + "duration": 150 + }, + { + "index": 18, + "duration": 150 + } + ] + }, + { + "name": "HURT", + "repeat": false, + "frames": [ + { + "index": 0, + "duration": 150 + }, + { + "index": 12, + "duration": 100 + }, + { + "index": 13, + "duration": 100 + }, + { + "index": 14, + "duration": 100 + }, + { + "index": 15, + "duration": 150 + }, + { + "index": 16, + "duration": 150 + }, + { + "index": 17, + "duration": 150 + }, + { + "index": 18, + "duration": 150 + } + ] + }, + { + "name": "DEAD", + "repeat": true, + "frames": [ + { + "index": 18, + "duration": 150 + } + ] + } + ] +} diff --git a/dist/shattered_sword_assets/spritesheets/Snake.png b/dist/shattered_sword_assets/spritesheets/Snake.png new file mode 100644 index 0000000..cd19808 Binary files /dev/null and b/dist/shattered_sword_assets/spritesheets/Snake.png differ diff --git a/dist/shattered_sword_assets/spritesheets/Tiger.json b/dist/shattered_sword_assets/spritesheets/Tiger.json new file mode 100644 index 0000000..b40a6a1 --- /dev/null +++ b/dist/shattered_sword_assets/spritesheets/Tiger.json @@ -0,0 +1,88 @@ +{ + "name" : "Tiger", + "spriteSheetImage": "Tiger.png", + "spriteWidth": 64, + "spriteHeight": 64, + "columns": 3, + "rows": 3, + "durationType": "time", + "animations": [ + { + "name": "IDLE", + "repeat": true, + "frames": [ + { + "index": 0, + "duration": 150 + } + + ] + }, + { + "name": "WALK", + "repeat": true, + "frames": [ + { + "index": 1, + "duration": 150 + }, + { + "index": 2, + "duration": 150 + }, + { + "index": 3, + "duration": 150 + }, + { + "index": 4, + "duration": 150 + } + ] + }, + { + "name": "WALK_RIGHT", + "repeat": true, + "frames": [ + { + "index": 1, + "duration": 150 + }, + { + "index": 2, + "duration": 150 + }, + { + "index": 3, + "duration": 150 + }, + { + "index": 4, + "duration": 150 + } + ] + }, + { + "name": "WALK_LEFT", + "repeat": true, + "frames": [ + { + "index": 5, + "duration": 150 + }, + { + "index": 6, + "duration": 150 + }, + { + "index": 7, + "duration": 150 + }, + { + "index": 8, + "duration": 150 + } + ] + } + ] +} diff --git a/dist/shattered_sword_assets/spritesheets/Tiger.png b/dist/shattered_sword_assets/spritesheets/Tiger.png new file mode 100644 index 0000000..4567024 Binary files /dev/null and b/dist/shattered_sword_assets/spritesheets/Tiger.png differ diff --git a/public/shattered_sword_assets/spritesheets/Snake.json b/public/shattered_sword_assets/spritesheets/Snake.json index 267a5d6..ebedb68 100644 --- a/public/shattered_sword_assets/spritesheets/Snake.json +++ b/public/shattered_sword_assets/spritesheets/Snake.json @@ -1,6 +1,6 @@ { "name" : "Snake", - "spriteSheetImage": "Snake.png", + "spriteSheetImage": "snake.png", "spriteWidth": 160, "spriteHeight": 128, "columns": 5, diff --git a/public/shattered_sword_assets/spritesheets/Tiger.json b/public/shattered_sword_assets/spritesheets/Tiger.json index dc6d3fc..8077233 100644 --- a/public/shattered_sword_assets/spritesheets/Tiger.json +++ b/public/shattered_sword_assets/spritesheets/Tiger.json @@ -1,6 +1,6 @@ { "name" : "Tiger", - "spriteSheetImage": "Tiger.png", + "spriteSheetImage": "tiger.png", "spriteWidth": 192, "spriteHeight": 192, "columns": 3, diff --git a/src/shattered_sword/Scenes/Tutorial.ts b/src/shattered_sword/Scenes/Tutorial.ts index ffe2ebc..6afcbba 100644 --- a/src/shattered_sword/Scenes/Tutorial.ts +++ b/src/shattered_sword/Scenes/Tutorial.ts @@ -33,8 +33,8 @@ export default class Tutorial extends GameLevel { this.load.spritesheet("slice", "shattered_sword_assets/spritesheets/slice.json"); //load enemies - this.load.spritesheet("snake","shattered_sword_assets/spritesheets/snake.json"); - this.load.spritesheet("tiger","shattered_sword_assets/spritesheets/tiger.json"); + this.load.spritesheet("snake","shattered_sword_assets/spritesheets/Snake.json"); + this.load.spritesheet("tiger","shattered_sword_assets/spritesheets/Tiger.json");