Scene clarification

I am new to game development. I have some experience programming but have never taken on a real project before. I’ve only done stuff in a classroom environment.

I would like to get some clarification on what exactly a scene is. Reading some of these threads it seems scenes are basically individual levels. But then other times it seems you only really need one scene. From what I gather scenes are for when you change logic. When exactly would you create a new scene? If you only use one scene how do you update the scene to display a new level?

All the tutorials I have found have been basic one level tutorials so there is no need to update the screen to display a new level. One tutorial I went through had a scene to load the game and the one to actually play it. Is this standard practice?

I’ve started playing around with Phaser. I learn best by actually doing stuff. I just need some clarification on proper procedure for how to handle scenes and what actually they are. Thank you for your assistance!

5n4r35

There are three ways:

  1. Reset the scene yourself (remove and replace game objects, etc.)
  2. Restart the scene
  3. Remove the scene and add/create another

I think that (2) is the most common. It’s convenient because Phaser clears all the scene objects and then calls create() again.

That’s a good way to do it.

Look at

Also

is terrible but shows one way to restart into the next level (press N ad infinitum).

An approach like (1) is in

Thank you! I’ll play around with this and get back to you if I have any further questions.