BRIDGES Game API Tutorial

Goals

To teach students the functions that allow them to interact with their games.

  1. Understand the main variables used to run a bridges game.
  2. Learn about the initialize() method.
  3. Understand ways students can implement their own methods and how to traverse the grid using for loops.
  4. Learn about the gameLoop() method and the 10 different controls available in non-Blocking games.
  5. Prepare the main method and run a game.

ToDo

  1. Paint the screen a single color and display a set message
  2. Upon a key press, display a different message

Check comments in the scaffold for details.

Sample Output

Variables

Sets the size of the students grid. Grids are limited to 1024 cells. The largest square grid available is 32 x 32.

Variables that will change the color and symbols despalayed in the game:

Functions

initialize():

gameLoop():

Boolean values that are true when a specific key is being pressed:

Documentation

You can check the generic Game Tutorial

Java

NonBlockingGame

NamedColor

NamedSymbol

C++

NonBlockingGame

NamedColor

NamedSymbol

Python

NonBlockingGame

NamedColor

NamedSymbol