fix: case sensitive

This commit is contained in:
Renge 2022-04-16 20:09:50 -04:00
parent a321d15199
commit 2e301b462a
7 changed files with 300 additions and 4 deletions

View File

@ -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
}
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -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
}
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -1,6 +1,6 @@
{
"name" : "Snake",
"spriteSheetImage": "Snake.png",
"spriteSheetImage": "snake.png",
"spriteWidth": 160,
"spriteHeight": 128,
"columns": 5,

View File

@ -1,6 +1,6 @@
{
"name" : "Tiger",
"spriteSheetImage": "Tiger.png",
"spriteSheetImage": "tiger.png",
"spriteWidth": 192,
"spriteHeight": 192,
"columns": 3,

View File

@ -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");