Learning Library

Game Development Library

Build a game: sprites, the game loop, collisions, and keeping score.

  • Keyboard Input

    React to key presses to move and act.

  • Sprites & Entities

    The things in your game — ship, enemies — that own their look and moves.

  • The Game Loop

    The heartbeat of every game: update, draw, repeat — each frame.

  • Collision Detection

    Tell when two things touch — and do something about it.

  • Frames & Motion

    Movement is many small position changes, one per frame.

  • Enemy Waves

    Spawning groups of enemies with loops and lists.

  • Score & Lives

    The numbers that make it a game: points up, lives down.

  • Game State

    Tracking what's happening: playing, paused, or game over.