diff --git a/README.md b/README.md index b21ec8e..da6ab73 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ PF 2016 - Work in progress version ---- This small game is electronic card for New Year 2016. -Idea, graphic and mechanic is derived from open source game Enigma. +Idea, graphic and mechanic has been derrived from open source game Enigma. Created for http://www.ysofters.com blog. diff --git a/data/images/gfx64/tiles.png b/data/images/gfx64/tiles.png index 9ebf65c..8b48260 100644 Binary files a/data/images/gfx64/tiles.png and b/data/images/gfx64/tiles.png differ diff --git a/index.html b/index.html index 2f5ea7c..3c3061a 100644 --- a/index.html +++ b/index.html @@ -31,22 +31,26 @@ state.create = function() { this.redirector = new Kiwi.GameObjects.Sprite(this, this.textures.oneWay, 2*64, 3*64); this.redirector.box.hitbox = new Kiwi.Geom.Rectangle( 20, 20, 50, 50 ); + this.redirector.input.enableDrag(); this.redirector2 = new Kiwi.GameObjects.Sprite(this, this.textures.oneWay, 6*64, 3*64); this.redirector2.cellIndex = 6; this.redirector2.box.hitbox = new Kiwi.Geom.Rectangle( 20, 20, 50, 50 ); + this.redirector2.input.enableDrag(); // Ground layer this.addChild(this.tilemap.layers[0]); this.addChild(this.character); + + // Walls layer + this.addChild(this.tilemap.layers[1]); this.addChild(this.redirector); this.addChild(this.redirector2); - // Walls layer - this.addChild(this.tilemap.layers[1]); - + // Sky layer + this.addChild(this.tilemap.layers[2]); for(var i = 21; i < this.tilemap.tileTypes.length; i++) { diff --git a/tilemap.json b/tilemap.json index 697b39f..217f223 100644 --- a/tilemap.json +++ b/tilemap.json @@ -21,6 +21,17 @@ "width":18, "x":0, "y":0 + }, + { + "data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 43, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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":6, + "name":"sky", + "opacity":1, + "type":"tilelayer", + "visible":true, + "width":18, + "x":0, + "y":0 }], "nextobjectid":4, "orientation":"orthogonal", @@ -34,7 +45,7 @@ { "firstgid":1, "image":"data\/images\/gfx64\/tiles.png", - "imageheight":400, + "imageheight":448, "imagewidth":640, "margin":0, "name":"base", @@ -43,7 +54,7 @@ }, "spacing":0, - "tilecount":60, + "tilecount":70, "tileheight":64, "tilewidth":64 }],