Game Programming – Unit 2

Learning outcomes

  • Identify Gamemaker terms
  • Program events to detect collisions
  • Program actions to move objects
  • Use sound actions
  • Compare software used for 3D modeling
  • Discuss software used for 3D modeling
  • Use score actions
  • Design and create a program to bounce balls around a room
  • Design and program a paddle game

To-do List

  1. Complete Unit 2 readings
  2. Watch video – Adding sounds and music
  3. Watch video – Detecting collisions
  4. Watch assignment video – Bouncing balls
  5. Complete assignment – Bouncing balls
  6. Watch video – Keeping score
  7. Watch video – Using variables
  8. Watch video – Using control actions
  9. Watch assignment video – Breaking out
  10. Complete assignment – Breaking out
  11. Complete Unit 2 discussion
  12. Complete Unit 2 quiz

Discussion

Modeling Software

Use the discussion board titled “Modeling Software” in Blackboard and compare two programs that create 3D models for games. List the title (8 points), company(8 points), website url(8 points), price(8 points), intended user (beginner, hobbyist, expert, etc…)(8 points), brief description of the software(8 points) and five user reviews about each program(8 points each). In your own words, compare the two programs in one or two paragraphs(12 points). Do not use programs that other students have already posted.

Readings

Located in the help section of the Gamemaker software

  • Background music
  • Collision event
  • Actions: Score actions
  • Variable name
  • Control actions

Videos

Adding sounds and music

Detecting collisions

Keeping score

Using variables

Using control actions

Testing instance and using the arrow keys

Assignments

Bouncing Balls

Summary: Create a room with 2 bouncing balls and paddle allowing the player to control the paddle.

Total Points: 100

Sprites:

  • Use Gamemakers sprite editor to create a basketball, soccer ball, paddle and brick for the wall. Draw your own sprites. Do not use graphics you did not create. (20 points – 5 points each)
  • Sprite for a “Continue” button. (5 points)

Background:

Background for the title screen room. (5 points)

Sounds:

Add a sound to play when a collision occurs. (2 points)

Objects:

  • Basketball: Begins moving during creation event (5 points). Bounce with collision with basket ball, wall and paddle (5 points). Play sound when a collision occurs. (5 points)
  • Soccer Ball: Begins moving during creation event (5 points). Bounce with collision with basket ball, wall and paddle (5 points). Play sound when a collision occurs. (5 points)
  • Paddle: Moves left when left key pressed (5 points). Moves right when right key pressed (5 points). Stops when collision with wall occurs. (5 points)
  • Wall (5 points)
  • Continue button: Placed in the title screen room. Takes the player to bouncing balls room when pressed. (5 points)

Rooms:

  • Room for the title screen (5 points)
  • Room with a wall border to keep the balls and paddle contained. (5 points)

Game Information:

Add the title of the assignment, your name and date to the game information (located under the resources menu item). (3 points)

Breaking Out

Summary: In this assignment you will create a clone of the game called Breakout. Read background information about Breakout at http://en.wikipedia.org/wiki/Breakout_(arcade_game) Watch the assignment video.

  • Sprites located in the Gamemaker sprites folder under Bouncing Balls and Maze-Platform.
  • Sounds located in the Gamemaker sounds folder.

Total points: 100

Sprites:

  • Ball, paddle, wall and brick (10 points – 2.5 points each)
  • Sprite for a “Continue” button. (5 points)

Sounds: Load a Sound to be used when ball collides with paddle, brick or wall (2 points)

Background:

  • Create a Game Over background for the Game Over room. The can be  640X480 image with the words “Game Over”. (5 points)
  • Background for the title screen room. (5 points)

Objects:

  • Ball, paddle, wall, bottom wall, controller and brick (1 point each)
  • Ball – Begins moving during creation event (5 points). Bounces and plays sound when collision with wall, paddle or brick occurs (5 points). Sets the lives -1 (relative), returns the ball to the starting position when collision with bottom wall occurs (5 points). Destroys brick and sets score to +10 (relative) when collision with brick occurs (5 points).
  • Controller – sets lives to 3 during creation event. (10 points) This object is invisible and has no sprite.
  • Continue button: Placed in the title screen room. Takes the player to bouncing balls room when pressed. (4 points)
  • Other – Test to see if lives are equal to 0 when ball collides with bottom wall (go to game over room if equal to 0) (10 points). Test to see if brick instances are equal to 0 (go to game over room if equal to 0) (10 points).

Room: The objBottomWall objects should be along the bottom (2 points). Border the rest of the room with the objWall objects (2 points). Place the invisible objController in the room (2 points). Position the ball and paddle objects (2 points). Place bricks in room. (2 points)

Game Information:

Add the title of the assignment, your name and date to the game information (located under the resources menu item). (3 points)

Quiz

Login to Blackboard and take the Unit 2 quiz.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: