Input/Output: GameEnv Configuration

Objective

Students must configure the game environment with proper canvas dimensions and game settings.

Evidence

GameEnv configuration in game components:

  • GameLevelOutside.js - Canvas width, height, path configuration
  • GameLevelMaze.js - Level-specific environment setup

Implementation Details

  • Setting canvas dimensions
  • Configuring game paths and backgrounds
  • Difficulty level parameters
  • Game-specific settings (gravity, speed, etc.)
  • Environment properties passed to GameControl

Key Concepts

  • Canvas sizing for responsive design
  • Configuration objects for game setup
  • GameEnv.create() method pattern
  • Path management for game resources
  • Game difficulty and balance parameters