main.js 338 B

1234567
  1. // This script is the main entry point of the game
  2. var scene = Atomic.player.loadScene("Scenes/TheScene.scene");
  3. var camera = scene.getChild("Camera").getComponent("Camera");
  4. camera.setOrthoSize(Atomic.graphics.height * Atomic.PIXEL_SIZE);
  5. camera.setZoom(.75 * Math.min(Atomic.graphics.width / 1280.0, Atomic.graphics.height / 800.0));