Jump to content

Search the Community

Showing results for tags 'Tile Map 2D array'.

  • 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. Can someone please tell me why this doesn't work in javascript. I come from a c++ background so please excuse my ignorence. ///////////////////////////////////////////////////////////////////// var mapArray = [ [0, 0, 0, 0 ,0], [0, 1, 0, 0 ,0], [0, 0, 0, 0 ,0], [0, 0, 0, 0 ,0], [0, 0, 1, 1 ,0]];/////////////////////////////////////////////////////////// for (var y = 0; y < 5; y++) { for (var x = 0; x < 5; x++) { if (mapArray[y][x] == 1) {// Do Something } } }
×
×
  • Create New...