diff --git a/README.md b/README.md index 1b6794f..b21ec8e 100644 --- a/README.md +++ b/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 \ No newline at end of file + +- Visual Studio Code - https://code.visualstudio.com/ +- Cloud9 IDE - https://c9.io \ No newline at end of file diff --git a/data/images/gfx64/st_oneway.png b/data/images/gfx64/st_oneway.png new file mode 100644 index 0000000..6dfa904 Binary files /dev/null and b/data/images/gfx64/st_oneway.png differ diff --git a/index.html b/index.html index 32d047e..2f5ea7c 100644 --- a/index.html +++ b/index.html @@ -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