Assignment 17 - Bridges Games Controls Tutorial

Example Output

Learning Outcomes

  1. Loops
  2. Grids

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.

Description

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. -keyUp() -keyDown() -keyLeft() -keyRight() -keyW() -keyS() -keyA() -keyD() -keyQ() -keySpace()

Main Method and Student Class Object

Students must structure their class object to call "super" and pass the variables of their bridges account in order for the bridges server to visualize their game. Within the Class object students can also set their games title and a short description of the game. They must ensure the start() function is called here.

Extensions

Help

For C++

NonBlockingGame documentation

For Java

NonBlockingGame documentation

For Python

NonBlockingGame documentation