Game Programming - Unit 2

Learning outcomes

  • 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. Watch video - Adding sounds and music
  2. Watch video - Detecting collisions
  3. Watch assignment video - Bouncing balls
  4. Complete assignment - Bouncing balls
  5. Watch video - Keeping score
  6. Watch video - Using variables
  7. Watch video - Using control actions
  8. Watch assignment video - Breaking out
  9. Complete assignment - Breaking out
  10. Complete Unit 2 discussion

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.

Videos

Adding sounds and music

http://www.youtube.com/watch?v=m395CS5vStY

Detecting collisions

http://www.youtube.com/watch?v=hLZOp9Jp_Dc

Keeping score

http://www.youtube.com/watch?v=n7EHZ74Z4nc

Using variables

http://www.youtube.com/watch?v=RbCcGo88OK4

Using control actions

http://www.youtube.com/watch?v=1UY_TdTzRbQ

Testing instance and using the arrow keys

http://www.youtube.com/watch?v=6JqNIQ5Wnjg

Assignments

Bouncing Balls


http://www.youtube.com/watch?v=QI4cKyQvZUI  
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

Click here for this assignment if you are using a Mac and Stencyl 

http://www.youtube.com/watch?v=WiBfgl8nPAM 
 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)

No comments:

Post a Comment