Search the Community
Showing results for tags 'Phaser 2.0'.
-
I put this together today just to test out some of the new features as well as get a handle on exactly what raytracing is, how it works, and why it might be important. Phaser: Light and Magic: http://static.codevinsky.com Source: http://github.com/codevinsky/phaser-light-and-magic Please note, the code isn't cleaned up. There's some left over stuff from other demo projects in there, all you need to worry about is what's in play.js
- 6 replies
-
- tilemap
- raytracing
-
(and 2 more)
Tagged with:
-
Hi Guys, Excellent work on releasing Phaser 2.0 - I thought it would be time to move over from Construct 2 and try my hand at coding (i'm a newb so please be gentle) I have loaded up the golf demo that comes with 2.0 and have not been able to get it to load correctly. Here is the error that I am seeing in Chrome's JavaScript console:- Uncaught TypeError: Cannot read property 'bounce' of null golf.js:45 creategolf.js:45 Phaser.StateManager.loadCompletephaser.js:13673 Phaser.SignalBinding.executephaser.js:14353 Phaser.Signal.dispatchphaser.js:14226 dispatchphaser.js:13993 Phaser.Loader.nextFilephaser.js:41327 Phaser.Loader.jsonLoadCompletephaser.js:41185 _xhr.onloadphaser.js:40888 Here is how I included the golf.js in my html doc:- <!doctype html><html> <head> <meta charset="UTF-8" /> <title>hello phaser!</title> <script src="phaser.js"></script> <script src="golf.js"></script> </head> <body> <div id="phaser-example"> </div> </body></html>Here is my file structure:- Here is the result in Chrome (its also the same in FireFox):- Maybe I have made a "Newb" mistake but any pointers in the right direction would be gratefully received ! Many thanks in advance.
-
When scrollFactor is set to != 0 the collision are affected by the offset. this.layer.scrollFactor = 1.2;this.game.physics.arcade.collide(this.player, this.front);Is there a correction that can be set on the layer? Thanks
-
- Phaser 2.0
- Tilemap
-
(and 3 more)
Tagged with: