Jump to content

Search the Community

Showing results for tags 'gamestate'.

  • 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 2 results

  1. I am planning a game which will have game modes normal, medium and hard. I plan to change speed and time and maybe some more variables. What is the best way to do this in Phaser? any code examples avaliable with games with multiple modes/difficulty? I thought of some ways have multiple gamestates easyGame, mediumGame, hardGame and copy the main gamestate files in each one and change the speed and time variables individually. or Have 1 gamestate and have if statements var gameMode; if (gameMode=== easy) { var speed =1, time =15; } else if(gameMode===medium){ var speed =2, time =10; }else{ var speed =3, time =5; } I don't know how I would set the game mode to easy/medium/hard tho here is my setup http://pastebin.com/PKbs6NTi
  2. How can I handle it in Babylon? As I understood, all the matrices are calculated within Scene.render call, right? So how can I only update the game state (i.e. meshes positions, rotations etc.), without rendering it? Currently I need to go over each mesh in scene and apply computeWolrdMatrix(true). Is there any way to do that in one time?
×
×
  • Create New...