Phaser 2.4.8 and 2.4.7 rube-loader not working
Posted: Fri May 20, 2016 3:18 pm
				
				I believe the "rube-loader-for-phaser-box2d-plugin" is in need of a small update.
I think it's just a namespace issue, but I don't know how to fix the issue.
I receive the following error (see attached screenshot) I am using Intel XDK.
This is the order that I am loading the libraries.
This is the example 'create'' function that I am using.
			I think it's just a namespace issue, but I don't know how to fix the issue.
I receive the following error (see attached screenshot) I am using Intel XDK.
This is the order that I am loading the libraries.
Code: Select all
    
<script src="lib/phaser.min.js"></script>
<script src="lib/box2d-plugin-full.js"></script>
<script src="lib/phaser-rube.js"></script>
<script src="src/Game.js"></script>
<script src="src/app.js"></script>
Code: Select all
    create: function () {
        this.physics.startSystem(Phaser.Physics.BOX2D);
        this.physics.box2d.setPTMRatio(20);
        levelScene = new Phaser.Physics.Box2D.RubeScene('level');
        levelScene.load();
        this.camera.bounds.setTo(-10000, -10000, 20000, 20000);
        this.camera.x = -400;
        this.camera.y = -300;
        this.input.onDown.add(mouseDragStart, this);
        this.input.addMoveCallback(mouseDragMove, this);
        this.input.onUp.add(mouseDragEnd, this);
    },