1 of 14

Slide Notes

DownloadGo Live

Save The Presents Alice Game

Published on Nov 19, 2015

No Description

PRESENTATION OUTLINE

Untitled Slide

SAVE THE TREES

ALICE WINTER GAME PROJECT JAI SHARMA, BRIAN LUNGREN, RAY MIZAN, AND CHRISTIAN LAWLER
Photo by tanakawho

OBJECTIVE

  • It's nearly Christmas morning and the trees are everywhere
  • You need to control the wizard and collect all the trees within the time limit
  • Use the arrow keys to control him
Photo by pcgn7

PROGRAMMING CONCEPTS

  • Methods w/ Parameters
  • Variables
  • Objects
  • Loops
  • Ifs
Photo by blmiers2

THE CODE

Untitled Slide

The events are used to call methods. The events section in our program is used to call "my first method" which is the main method, and it also allows movements to be controlled with the arrow keys and for trees to be collected.

Untitled Slide

My first method starts the game (instructions), sets up the camera, and starts the timer.

Untitled Slide

The instructions method uses the parameter "instructions" and gives the instructions to the user along with setting up the title screen.

Untitled Slide

The forward, backward, left, and right methods move the wizard in a specific direction using parameters.

Untitled Slide

Untitled Slide

The initialize method sets the variable for the timer and uses the parameter "amountoftime"

Untitled Slide

The countdown method uses the variable in "initialize" and displays it as 3d text. It then waits one second and decreases the variable by 1 in result, creates a timer in the game.

Untitled Slide

TreeCollect uses the same code for each tree. It allows the wizard to "pick up" a tree and collect it. When a tree is collected it no longer shows. TreeCollect is called by an event rather than "myfirstmethod" because it must be active at all times when the wizard is moving.

ENJOY

Photo by Justin in SD