Top Banner
Game Design Creating a game called PING Phase 3: Steps for building basic game
79

Game Design Creating a game called PING Phase 3: Steps for building basic game.

Jan 11, 2016

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Game DesignCreating a game called PING

Phase 3:Steps for building basic game

Page 2: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating the Ping Game: At the end of this Unit students will have

created a: Two player game called Ping Inserted active objects and modified those

active objects Added movement to objects and conditions

for those movements Added scoring objects Provided a winner for the game

Page 3: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Step One: At the end of this section students will

have learned: How to create a new game in MMF How to rename applications and frames How to change background colors

Page 4: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Step One: Creating the New Game

Page 5: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Setting up the new game file:

Page 6: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Formatting the game frame

Page 7: Game Design Creating a game called PING Phase 3: Steps for building basic game.

CHECK POINTS You will see these check points at

varying times in lesson. These will confirm what the frames

should look like and what should be completed at this point in the lesson.

If your game looks different go back in the lesson to complete.

Page 8: Game Design Creating a game called PING Phase 3: Steps for building basic game.

CHECK POINT #1

Page 9: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Step Two: At the end of this section students will

have learned: How to create active objects for games How to open the animation editor to

modify objects Changed dimensions, colors and

placements of objects on game frame.

Page 10: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Step Two: Creating active objects

Page 11: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating Active Objects:

Page 12: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Modifying active objects

Page 13: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating the Center Line:

Page 14: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Change objects color:

Page 15: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Finalizing Center Line

1. Right click to select object

2. Choose Align in Frame

3. Choose Horz Center

4. Choose Vert. Center

Page 16: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating Ball object

1. Create another active object

2. Double click to modify object and open animation editor

Page 17: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Change dimensions of ball

Page 18: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Change the color:

Page 19: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Finalizing the ball object

1. Right click to select object

2. Choose Align in Frame

3. Choose Horz Center

4. Choose Vert. Center

Page 20: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating the paddle 1 object

1. Create another active object

2. Double click to modify object and open animation editor

Page 21: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Change dimensions for paddle 1

Page 22: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Change the color of paddle 1:

Page 23: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating the paddle 2 object

1. Create another active object

2. Double click to modify object and open animation editor

Page 24: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Change dimensions for paddle 2

Page 25: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Change the color of paddle 2 (This should be different than #1:

Page 26: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Finalizing the paddle objects

1. Right click to select each paddle 2. Move to the edge of each player’s side3. Choose Vert. Center

Page 27: Game Design Creating a game called PING Phase 3: Steps for building basic game.

CHECK POINT #2 Check the next frame and be sure that

your game looks the same. If your game looks different go back to

the steps of this lesson and make the needed changes.

Page 28: Game Design Creating a game called PING Phase 3: Steps for building basic game.

CHECK POINT #2:

Page 29: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Step Three: Giving Movement to Objects

This lesson will show how to add movement to the objects you have created

Follow the steps as directed to give movement to the: Ball object Two paddles

Page 30: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Giving Movement To Objects

Page 31: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Give movement to the ball

Page 32: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Give ball movement direction

1. Be sure to click on initial direction

2. Clear all arrows3. Click on boxes to select

the direction for the ball to move

Page 33: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Giving Movement To Paddle objects

Page 34: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Giving Movement To Paddles

Page 35: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Setting up Player 2 to the Paddle 2 object

1. In the movement properties for paddle two

2. Click on the number 1 and choose player 2

Page 36: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Setting up keyboard controls

Page 37: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Choose the keys you want to use to control each paddle

Page 38: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Keys to control paddles

Page 39: Game Design Creating a game called PING Phase 3: Steps for building basic game.

CHECK POINT 3 Movement has been given to the ball

and both paddles Paddle 1 is set to move with W and S

keys Paddle 2 is set to move with up and

down arrow keys Paddle 1 is set up for Player 1 Paddle 2 is set up for Player 2

Page 40: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Step Four: At the end of this section students will

have learned: What the event editor is used for How to set up conditions and events for

objects How to test their game

Page 41: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Setting up Conditions and Events

Click on this button to open up the Event Editor

Page 42: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Setting up Conditions and Events

Page 43: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Setting up Conditions and Events

Page 44: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Collision event with ball and paddles:

1. Right click on the ball object and choose a collision with another object.

2. Select the paddle 1 object3. Find the event space under the ball object and

right click under the space4. Choose a movement event and select a bounce

event 5. You will see a check mark if set up correctly.

Page 45: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Using the Event List Editor

Page 46: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Using Event List editor to confirm collision events

Page 47: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Keeping objects in game frame

Page 48: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Keeping paddle 1 in game frame.

1. Right click to create a new condition2. Right click on paddle 13. Choose the option Position4. Then choose test position5. Select the up and down arrow keys 6. Find the empty space under paddle 1

and right click7. Select the movement and have the

paddle bounce

Page 49: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Keeping paddle 2 in game frame.

1. Right click to create a new condition2. Right click on paddle 23. Choose the option Position4. Then choose test position5. Select the up and down arrow keys 6. Find the empty space under paddle 2

and right click7. Select the movement and have the

paddle bounce

Page 50: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Using the Event List Editor

Page 51: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Use the Event List Editor to confirm paddle conditions

Page 52: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Keeping the ball in the game frame Create a new condition by right clicking Right click on the ball object Choose test position Select the top and bottom arrow keys Right click under ball object and select

a bounce movement

Page 53: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Confirm event and condition

Page 54: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Testing position of ball when it leaves frame to right or left

You need to set up conditions for testing the ball when a player misses the ball to the right or left.

It should leave the playing field and reappear

Page 55: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Testing position of ball when it leaves frame to right or left

1. Right click to create a new condition2. Right click on ball3. Choose position and then test position4. Choose the right arrow to test when it

leaves to the right5. Create a second condition to test when

the ball leaves to the left

Page 56: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Testing position of ball when it leaves frame to right or left

1. Under the ball object right click and choose position from this menu

2. Then choose select position3. Choose at actual X, Y coordinates4. Click OK5. You will see the position of the ball with

a dotted flashing X at the center line6. This will make the ball reappear at this

coordinate

Page 57: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Repositioning ball on frame

Page 58: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Moving ball when it is repositioned on game frame.

1. Under the ball object right click to add a second event to this condition

2. Choose the option Direction3. Then choose select direction4. For balls that exit to the right. Move

the ball to the left (see next slides)5. For balls that exit to the left. Move ball

to the right (see next slides)

Page 59: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Selecting Direction for ball to move

Page 60: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Setting direction for ball to move

Page 61: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Check Point #4Several conditions and actions were created to provide the steps for a functioning game they include:

• Bouncing ball condition (off paddles, and game frame)• Test position conditions (to test of the paddles and ball are

on the frame)• Reset ball condition (to re-position the ball onto the game

frame when it leaves from either side)• Be sure to review the Event List Editor to confirm your

events and conditions were set up correctly (see next slide).

• Go back to the Event and Conditions steps to make any corrections.

Page 62: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Check Point #4- Event List Editor

Page 63: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Step Five:

At the end of this section students will have learned: Create score objects for player 1 and

player 2 Add to the score for players Create a winning player text and display

that text.

Page 64: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating a Score Object

Page 65: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating a Score Object

Page 66: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating a Score Object

Page 67: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating a Score Object

Page 68: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating a Score Objects

Page 69: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Adding to the Score Objects

Page 70: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Ending the game

Page 71: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating string text

Page 72: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating string text

Page 73: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Setting up Conditions for displaying string text

Click on this button to open up the Event Editor

Page 74: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Step 6: Creating Conditions for ending the game

Page 75: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Step 6: Creating Conditions for comparing a player’s score

Page 76: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating events to end the game

Page 77: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Creating events to end the game

1. Follow same steps to set up another compare to PLAYER 2’s score.

2. Set up same events but display PLAYER 2 wins!

Page 78: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Check Point #5Several conditions and actions were created to provide the steps for a functioning game they include:

• Creating score objects for player 1 and player 2• Adding points to either player 1 or player 2’s score• Having the ball reappear on opposite player’s side that it

left the playing field• Comparing a player’s score to the value of 13• Displaying hidden text to declare a winner for the first

player to reach 13

Page 79: Game Design Creating a game called PING Phase 3: Steps for building basic game.

Check Point #5