Jump to content

c.Physics.Ninja is not a function after trying activate NINJA


Fajkowsky
 Share

Recommended Posts

Hey I have problem with start NINJA physics mode in phaser. My JS code so far:

(function () {    'use strict';    var config = {        HEIGHT: 860,        WIDTH: 455    };    window.onload = function () {        var game = new Phaser.Game(config.HEIGHT, config.WIDTH, Phaser.AUTO, 'haxball', {            preload: function () {                this.load.image('circe', 'assets/images/circle.png');            },            create: function () {                this.stage.backgroundColor = '#3b302a';                this.physics.startSystem(Phaser.Physics.NINJA);            },            update: function () {            }        });    };}());

And in chrome I have got:

Uncaught TypeError: c.Physics.Ninja is not a function

Regarding this line in phaser.js:80280 :

this.ninja = new Phaser.Physics.Ninja(this.game);
Link to comment
Share on other sites

  • 4 months later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...