๐Ÿ“ Camera Configuration (Game Window)

What is it?

In the editor, you can define the width and height of the camera (cameraWidth and cameraHeight). These values determine the size of the game window, meaning the visible area on screen.

Think of the camera as a frame that cuts out which part of the world is visible at any moment. Anything outside this frame wonโ€™t be visible, even if it exists in the scene.

๐Ÿ“– Parameters

โœ… Scene Example

{
  "cameraWidth": 640,
  "cameraHeight": 480,
  "cameraFollow": true,
  "backgroundColor": "#000000"
}

๐Ÿ‘‰ This sets a 640ร—480 game window, a classic 4:3 arcade-style format.

๐ŸŒ Platform-Specific Configuration

๐ŸŽฎ PC

๐Ÿ“ฑ Mobile

๐Ÿ’ป Web / Tablets

๐Ÿ”ง Best Practices

๐Ÿ“Œ Notes

โ€“ cameraWidth and cameraHeight do NOT change the actual world size, only what is visible on-screen.
โ€“ A game with cameraWidth=640 and cameraHeight=480 can still have a huge map; the camera moves to follow the player.
โ€“ This allows for very large worlds while limiting what the player sees at any moment.
โ€“ Changing the game window size directly affects gameplay (for example, seeing more or less terrain).