Programming for Multimedia Classes
Academic Year 2008-2009
A3/A4 Programming Classes Instructions for 1/22/2009
- Warm Up: Work through the Space Invaders If Statement Warm Up handout. I have not been able to put the solution on the web site yet.
- Objective: Students will learn how to move the Space Invaders using decision statements (if statements)
- Activity: Everyone in the A3 and A4 classes needs to create a new Space Invaders game just focusing on the code for the Space Invaders object.
The code is on the two page handout labeled B1 1/21/2009.
Students need to focus on just writing the code for the Space Invaders object following the code I have written.
This code is in three sections showing the code for the Create event for the Space Invaders object, the Collision with Bullet event code and the Step code. The most detailed is the Step event code.
I will email students a series of questions concering the code.
- Some of these questions follow:
- Which if statement moves a Space Invaders object instance left? Why does that code work?
- Which if statement moves a Space Invaders object instance right? Why does that code work?
- Which if statement keeps a Space Invaders object instance from moving out of the room to the right? What happens when that if statement is run (executed or played)? Why does that code work?
- Which if statement keeps a Space Invaders object instance from moving out of the room to the left? What happens when that if statement is run (executed or played)? Why does that code work?
- Which if statement handles a Space Invaders object instance dropping down one level? What happens when that if statement is run (executed or played)? Why does that code work?
- What happens if you move the if statement blocks around? What happens if you move the if statement that handles the dropping around?
-
- Email the essay to me using the class email address: a3_2008@earthlink.net or a4_2008@earthlink.net
|
Exam description: Our mid-term exam will cover all the major topics from September until just before the winter break.
- Room properties
- Variables
- If statements (general questions and questions taken from quizes using Game Maker icon code)
- Students will have to write three programs following a task list:
- Basic Clown game
- Basic Pacman game
- Basic 1945 game
Exam Study Guides: