diff --git a/assets/gulch.json b/assets/gulch.json index 12805c7..21c91c9 100644 --- a/assets/gulch.json +++ b/assets/gulch.json @@ -459,6 +459,28 @@ }, { "chunks":[ + { + "data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + "height":16, + "width":16, + "x":0, + "y":-16 + }, { "data":[12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -789,12 +811,12 @@ "x":48, "y":48 }], - "height":64, + "height":80, "id":2, "name":"objects", "opacity":1, "startx":0, - "starty":0, + "starty":-16, "type":"tilelayer", "visible":true, "width":64, diff --git a/assets/player-tiles.png b/assets/player-tiles.png index 73eb7a6..8181d4c 100644 Binary files a/assets/player-tiles.png and b/assets/player-tiles.png differ diff --git a/raw/Tile-Project-Legends.tiled-session b/raw/Tile-Project-Legends.tiled-session index 2c0fc3c..1d85305 100644 --- a/raw/Tile-Project-Legends.tiled-session +++ b/raw/Tile-Project-Legends.tiled-session @@ -20,8 +20,8 @@ "scale": 0.33, "selectedLayer": 2, "viewCenter": { - "x": 4722.727272727273, - "y": 1472.7272727272727 + "x": 3200, + "y": 2401.5151515151515 } }, "NNDungeon.tmx#99boy-tiles": { @@ -48,8 +48,8 @@ "scale": 0.25, "selectedLayer": 1, "viewCenter": { - "x": 786, - "y": 672 + "x": 1434, + "y": 772 } }, "gulch.tmx#99boy-tiles": { @@ -72,14 +72,15 @@ "map.width": 16, "openFiles": [ "gulch.tmx", - "NNDungeon.tmx" + "NNDungeon.tmx", + "gluch.tmx" ], "project": "Tile-Project-Legends.tiled-project", "property.type": "bool", "recentFiles": [ + "gluch.tmx", "NNDungeon.tmx", - "gulch.tmx", - "gluch.tmx" + "gulch.tmx" ], "tileset.embedInMap": true, "tileset.tileSize": { diff --git a/raw/gulch.tmx b/raw/gulch.tmx index 2776ca5..67a518f 100644 --- a/raw/gulch.tmx +++ b/raw/gulch.tmx @@ -655,6 +655,24 @@ + +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 + 12,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, diff --git a/raw/player-tiles.psd b/raw/player-tiles.psd index 43a0021..a94385c 100644 Binary files a/raw/player-tiles.psd and b/raw/player-tiles.psd differ diff --git a/src/characters/player.js b/src/characters/player.js index 20a3de8..89b49c1 100644 --- a/src/characters/player.js +++ b/src/characters/player.js @@ -21,25 +21,26 @@ export class Player extends Phaser.GameObjects.Sprite { this.isFiring = false; this.axe; this.bullet; + this.texturePlus = 24; // Create animations this.anims.create({ key: 'north', - frames: this.anims.generateFrameNumbers('player-tiles', { start: 0, end: 1 }), + frames: this.anims.generateFrameNumbers('player-tiles', { start: 0+this.texturePlus, end: 1+this.texturePlus }), frameRate: 5, repeat: -1 }); this.anims.create({ key: 'side', - frames: this.anims.generateFrameNumbers('player-tiles', { start: 8, end: 9 }), + frames: this.anims.generateFrameNumbers('player-tiles', { start: 8+this.texturePlus, end: 9+this.texturePlus }), frameRate: 5, repeat: -1 }); this.anims.create({ key: 'south', - frames: this.anims.generateFrameNumbers('player-tiles', { start: 16, end: 17 }), + frames: this.anims.generateFrameNumbers('player-tiles', { start: 16+this.texturePlus, end: 17+this.texturePlus }), frameRate: 5, repeat: -1 }); @@ -47,7 +48,7 @@ export class Player extends Phaser.GameObjects.Sprite { this.anims.create({ key: 'death', frames: [ - { key: 'player-tiles', frame: 3 } + { key: 'player-tiles', frame: 3+this.texturePlus } ], frameRate: 5, duration: 1500, @@ -57,7 +58,7 @@ export class Player extends Phaser.GameObjects.Sprite { this.anims.create({ key: 'death2', frames: [ - { key: 'player-tiles', frame: 4 } + { key: 'player-tiles', frame: 4+this.texturePlus } ], frameRate: 5, duration: 1500,