mirror of
https://github.com/ysoftdevs/pf2016.git
synced 2026-04-17 06:10:00 +02:00
correct graphic for redirector
This commit is contained in:
34
README.md
34
README.md
@@ -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
|
Kiwi.JS
|
||||||
- HTML5 Game Framework - http://www.kiwijs.org/
|
|
||||||
|
- HTML5 Game Framework - http://www.kiwijs.org/
|
||||||
|
|
||||||
Graphic assets
|
Graphic assets
|
||||||
- Open souce game Enigma - http://www.nongnu.org/enigma/
|
|
||||||
|
- Open souce game Enigma - http://www.nongnu.org/enigma/
|
||||||
|
|
||||||
Image operations
|
Image operations
|
||||||
- GIMP - https://www.gimp.org/
|
|
||||||
|
- GIMP - https://www.gimp.org/
|
||||||
|
|
||||||
Map editor
|
Map editor
|
||||||
- Tiled - http://www.mapeditor.org/
|
|
||||||
|
- Tiled - http://www.mapeditor.org/
|
||||||
|
|
||||||
Coding
|
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
|
||||||
BIN
data/images/gfx64/st_oneway.png
Normal file
BIN
data/images/gfx64/st_oneway.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 55 KiB |
@@ -13,6 +13,7 @@ state.preload = function() {
|
|||||||
this.addJSON('tilemap', 'tilemap.json');
|
this.addJSON('tilemap', 'tilemap.json');
|
||||||
this.addSpriteSheet('base', './data/images/gfx64/tiles.png', 64, 64);
|
this.addSpriteSheet('base', './data/images/gfx64/tiles.png', 64, 64);
|
||||||
this.addSpriteSheet('character', './data/images/gfx64/marble_black.png', 80, 80 );
|
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() {
|
state.create = function() {
|
||||||
@@ -28,10 +29,11 @@ state.create = function() {
|
|||||||
this.character.animation.add('walking', [ 0, 1 ], 0.2, true);
|
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.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.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 );
|
this.redirector2.box.hitbox = new Kiwi.Geom.Rectangle( 20, 20, 50, 50 );
|
||||||
|
|
||||||
// Ground layer
|
// Ground layer
|
||||||
|
|||||||
Reference in New Issue
Block a user