-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
zoom in or out map #122
Comments
hello 你修改下尺寸不可以么 |
You can check my commit here: |
To reduce the zoom of the map in your simulation and display the full map, you’ll need to adjust the camera’s zoom level in your Phaser game. This can be achieved by modifying the camera settings in your create function or by adjusting the game’s scale configuration. Below, I’ll guide you through both methods and provide code snippets to help you implement the changes. Method 1: Adjust the Camera’s Zoom Level in the create Function The most straightforward way to change the zoom level is by setting the camera’s zoom in the create function of your Phaser scene. Steps:
In your code, find the section where you set up the camera:
• A value of 1 is the default zoom level. |
How to zoom in or zoom out on a map like Google Earth?
The text was updated successfully, but these errors were encountered: