Assignment 18 - Bridges Games Controls Tutorial Two

Example Output

Learning Outcomes

  1. Loops
  2. Grids

Goals

To teach students the functions that allow them to interact with their games. In tutorial two, students will move a sprite around the grid.

  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 how to use the gameLoop() method to move a sprite around on the grid.
  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.

variables that will keep track of a sprites location

Functions

initialize()

gameLoop()

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

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