From 2e301b462a6d431d5d03598c0590af4eff80a56a Mon Sep 17 00:00:00 2001 From: Renge Date: Sat, 16 Apr 2022 20:09:50 -0400 Subject: [PATCH] fix: case sensitive --- .../spritesheets/Snake.json | 208 ++++++++++++++++++ .../spritesheets/Snake.png | Bin 0 -> 1542 bytes .../spritesheets/Tiger.json | 88 ++++++++ .../spritesheets/Tiger.png | Bin 0 -> 5937 bytes .../spritesheets/Snake.json | 2 +- .../spritesheets/Tiger.json | 2 +- src/shattered_sword/Scenes/Tutorial.ts | 4 +- 7 files changed, 300 insertions(+), 4 deletions(-) create mode 100644 dist/shattered_sword_assets/spritesheets/Snake.json create mode 100644 dist/shattered_sword_assets/spritesheets/Snake.png create mode 100644 dist/shattered_sword_assets/spritesheets/Tiger.json create mode 100644 dist/shattered_sword_assets/spritesheets/Tiger.png 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 0000000000000000000000000000000000000000..cd198086b516f90c9a6296441673f0e23b5b606c GIT binary patch literal 1542 zcmZXUdo&Xc6vyZ1=b3(m9vZf6Vu{pmGlgv|3yJwHkN7F?R-_4;Fm{kfdXQ>fS$WU1 zNK5l9Eh(nLe#q8~GOujrG0lGK-@51A`#tyEbMC$8bMCpBZmtd+)q&~&0AQn&qdh^c zcjZo1RhGvqL4mq*QHUZqU;*|0dQ$*^Qm2!>oqKH2?D&H)U82s5g|9wlql9dSu+4*) z{xS=8b2^m8GMx37co}8|Z$b)_23}SvHT#S*{#|yx=Y08m3QA|xU>6c*e{$ojyO}yk zMU>%HnQJ;ezSd3_E-NMGE(-=IZ>(-TY=;|^ToNStc##1l$nSW|m>jz`@b;zXjgeDQpk)oM1F8~+X zOnWtI7@@bO6Bu40HhLEsTlp`WJzuO;Q)DAqg`-kT${;4`N9X&bB}i{mqCk0Ya>K#3 zks#Fof?s{>9e}|!-j%91T^ZUr&`0F7S}6-?P3zWYvdlx#H0P!hd|qt4p20M$-PD^o z>(`>t{P+p;U9m}(<*vO`YuD4EnY<#-%#Um_ZX3VqalPN8Sx&UJd=a9$#8=BiTNZO0~XHN%P!d1q>hma^qTvthHao zFd8vx)%)->7MxwCqe?TjeXA|2Z#thqDkbG34WkL6bwm5FvMVxHFbXr_cXo)E15%MzBy(3qP<4M&*}ZBa=Cjn7^`Wj1cTR*yWOyn9CX5d@m+^o>FL1)H6J@ zbOoeJx62VcN!l`Hs#DUQaiFf{4Z6tt3?i2}Vp#2=UGs_NS+M*!=vvvZK!;K%EEWZ? z7bwRoZ$2OIX>_&AHCdSNaoRyUYh`TC<5U9baLq}$pt0dqn@dd$>;Y^33!Sq-ErB(} z?D`Xi$_`G3sBHmP0}j;q4fxJn`B8dOmY6Ux9Fv#mHKn*JQAdGthQPMwSPF2TO63~M z8MQmz8{vP1s1pCiKVnx(mq%bSl_W2e*ZRG@sMo)B_x0~Tku^Pt@x`g?&OYmoPA%b@ z4{79WDbS9a66wFv{0hx{8X_$xc0yj;!~n6Hw^2DG*(GkhK1mGaqerlH%~ou(V_++< z?am{$mc>i$)4nRs7CYhiNJ>tGnzvONZpXops*XX64;N&xMn9&0G#7p-r_j8+R!8t> zPw9HEr9t00&e?F1Qpcp52>Jd3)X>7OZfF4s9Wf5*8LWe$uhz<;xBXV*JJ&Y{|6bf-~s>u literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..45670249f770cfe0232bfca9b30cedf4f24d18bf GIT binary patch literal 5937 zcmbuDc{o(>-^b4&Bim4xiLphg2-#z@lby(#wd~oM>`c}#g}w@veH}XyA-BjYSf&pc4hS|16+$XKvqh z*Y;~3yw5|WtN!ts$DP`wYhWD%e8?IRa-90JnJ5S|#s5deH;K?Wgm7#n2E#;8-w^5G zV3aQ)76wgLwh{4C^@!JXg@#QC=7$MxKZA;yK{o}Y8RsLAO(_Gp|_H{iv<~rxPais_;6ZS%CLmx22Dp|G~y9%#-a|32RN_+u}m!~3abnU8+?Y3Mi{T}8<@8djE8P9d#fB@g`=`>+iy#`q`Bb&#BlQS+nc?%8 zHw{Q(CZ152A$AY3Uvtf4x_kSJ2ksPorLqI$KZ!T6w%=pv80k+E-x}MEfoDE`ok#jfPrpUj-jfu<9Hl(h7XSH?1enXSeS2kW6} zrl^ELw|KoWkjrJ~R{NwyO&j zbo7QO6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*3k`sbCEX@fXZDF|n5EE24mR)n)y$vmAx1 zA_nIeG?BFDzV8o*_s`7OKW@S>-(y|8 zQOmSWFAhViPV-#*-e9rVBe@G|&g$~Lneue_LHIqs7f*2rM{1LbjNI%YIgQPJy_;_D zVYmaf!bwv|m3-83+|f{5&dFr9Y{01F$`Pe#d#WIm%HV-dcYWKzU9pe3u>ON39o>~H z58$ie-d7ne2$N6TifQ`mN%_|%3)yrbMcyh<+X_`_5l1(VP?o(}G`3X_-F@&-b4`vq kxro;7Ae!mi7qWZ$;k7nlC_QqS=79qSx~4h}S}yVb1u1E1wEzGB literal 0 HcmV?d00001 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");