-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] instantly preview a scene #129
Comments
Hi! I think we can make this if you include the Phaser Editor DevTools in your game. The Phaser Editor DevTools is just an idea, for now. But it's exciting and I will add it to the TODO list with medium priority. |
Thinking again about this. It could be very complicated to do. Just think if you are using webpack or typescript... I think an option is to launch the game like the "play" button but with a query parameter to indicate to the game to switch to the scene at the startup. Something like this:
Sure, you should add a bit of code in your Preloader scene so as soon it loads all the game assets then it reads the query parameters and goes to the given scene. Sure, we should make it only available in a development setup. I should think more about this. |
I liked this so much that I implemented it! Now, with The command is also available in the Scene menu: It opens the game like this: |
Hi, Arian,
Thanks for your efforts always,
Till now i feel the editor should have a preview scene functionality which will make the work more efficent.
Not like the Launch button it will launch the whole project, the preview only launches the scene you wanna check whether it works or not, without this functionality, i need to switch a lot of times between scenes especially when my game logic is complex.
thanks a lot man!
The text was updated successfully, but these errors were encountered: