hi,
I want to have an external file with some parameters and after use it to draw my elements.
The problem is that my value number.radius don't work in my circle...what i'm going wrong ?
My index.html is good and inform the correct order ...parameters.js ...main.js
//PARAMETERS.js
var number=[]
number.radius=100
alert(number.radius)
// i got effectively the result 100
//MAIN.js
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { create: create });
function create() {
var graphics = game.add.graphics(0, 0);
graphics.beginFill(0xFF0000, 1);
graphics.drawCircle(300, 300, number.radius);
// but here my circle don't appear why ?
}