start direction marker

This commit is contained in:
Juraj Michalek committed 2015-12-26 09:12:35 +01:00
1 parent db1f155968
commit 28f821e90b
4 files changed
+21 -6

No files matched your search

+1 -1
View File
@@ -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.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 151 KiB

+7 -3
View File
@@ -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++) {
+13 -2
View File
@@ -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
}],