mirror of
https://github.com/ysoftdevs/pf2016.git
synced 2026-01-18 09:38:18 +01: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
|
||||
- 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
|
||||
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.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
|
||||
|
||||
Reference in New Issue
Block a user