Code: Video Game
  • Code Introduction
  • TUTORIALS
    • A. Hello Phaser
      • 1 Create New Files
      • 2 Add HTML for Game
      • 3 Add CSS for Game
      • 4 Add JS for Game
      • 5 Add Image to Game
      • 6 Add Input to Game
    • B. Matching Game
    • C. Top-Down Game
    • D. Side-Scrolling Game
  • REFERENCES
    • TEMP - Links to Old References
    • Phaser CE Game Template
    • Creating Game Assets
      • Images
      • Animated Sprites
      • Sound Effects
    • Phaser CE Code References
      • Game Stage (Canvas)
      • Game World
      • Game Camera
      • Images
      • Sprites
      • Sprite Animations
      • Sprite Health
      • Sprite Groups
      • Physics - Properties
      • Physics - Collisions
      • Physics - Other Methods
      • Weapon and Bullets
      • Enemy AI Behaviors
      • Audio
      • Text
      • Input - Keys
      • Input - Mouse/Pointer
      • Particle Effects
      • Tween Animations
      • Tilesprite Background
      • Timers
      • Random Numbers
      • Game Controls
  • LINKS
    • Project Guidebook
    • Phaser CE API Code Reference
    • Phaser CE Code Examples
    • W3Schools JavaScript Tutorial
    • Piskel Animated Sprite Editor
    • Leshy Sound FX Maker
Powered by GitBook
On this page
  1. REFERENCES
  2. Phaser CE Code References

Game World

game world

Your game world and your game canvas can be the same size — or they can be different sizes. By default, they are set to the same size. The size of the game canvas represents what is displayed to the player at any given time. However, you can make your game world larger than your game canvas (and then make the game canvas scroll automatically as the player's character moves through the game world).

PreviousGame Stage (Canvas)NextGame Camera