correct graphic for redirector

This commit is contained in:
Juraj Michalek
2015-12-25 21:31:24 +01:00
parent 0d5cfc9368
commit db1f155968
3 changed files with 28 additions and 12 deletions

View File

@@ -1,19 +1,33 @@
PF 2016 - Initial version
PF 2016 - Work in progress version
----
This is initial version of PF 2016.
This small game is electronic card for New Year 2016.
Idea, graphic and mechanic is derived from open source game Enigma.
Author: Juraj Michalek
Created for http://www.ysofters.com blog.
Credits:
Credits and tech
----
Author: Juraj Michalek - http://georgik.sinusgear.com
Kiwi.JS
- HTML5 Game Framework - http://www.kiwijs.org/
- HTML5 Game Framework - http://www.kiwijs.org/
Graphic assets
- Open souce game Enigma - http://www.nongnu.org/enigma/
- Open souce game Enigma - http://www.nongnu.org/enigma/
Image operations
- GIMP - https://www.gimp.org/
- GIMP - https://www.gimp.org/
Map editor
- Tiled - http://www.mapeditor.org/
- Tiled - http://www.mapeditor.org/
Coding
- Visual Studio Code - https://code.visualstudio.com/
- Cloud9 IDE - https://c9.io
- Visual Studio Code - https://code.visualstudio.com/
- Cloud9 IDE - https://c9.io

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@@ -13,6 +13,7 @@ state.preload = function() {
this.addJSON('tilemap', 'tilemap.json');
this.addSpriteSheet('base', './data/images/gfx64/tiles.png', 64, 64);
this.addSpriteSheet('character', './data/images/gfx64/marble_black.png', 80, 80 );
this.addSpriteSheet('oneWay', './data/images/gfx64/st_oneway.png', 64, 64 );
}
state.create = function() {
@@ -28,10 +29,11 @@ state.create = function() {
this.character.animation.add('walking', [ 0, 1 ], 0.2, true);
this.character.animation.add('idle', [ 2, 3, 4, 5, 4, 3 ], 0.2, true);
this.redirector = new Kiwi.GameObjects.Sprite(this, this.textures.character, 2*64 - 8, 3*64 - 8);
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.redirector2 = new Kiwi.GameObjects.Sprite(this, this.textures.character, 6*64 - 8, 3*64 - 8);
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 );
// Ground layer