Jump to content

Search the Community

Showing results for tags 'external value'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. 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 ? }
×
×
  • Create New...