790 likes | 985 Views
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
E N D
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
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
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.
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.
Finalizing Center Line Right click to select object Choose Align in Frame Choose Horz Center Choose Vert. Center
Creating Ball object • Create another active object • Double click to modify object and open animation editor
Finalizing the ball object Right click to select object Choose Align in Frame Choose Horz Center Choose Vert. Center
Creating the paddle 1 object • Create another active object • Double click to modify object and open animation editor
Creating the paddle 2 object • Create another active object • Double click to modify object and open animation editor
Change the color of paddle 2 (This should be different than #1:
Finalizing the paddle objects Right click to select each paddle Move to the edge of each player’s side Choose Vert. Center
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.
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
Give ball movement direction Be sure to click on initial direction Clear all arrows Click on boxes to select the direction for the ball to move
Setting up Player 2 to the Paddle 2 object In the movement properties for paddle two Click on the number 1 and choose player 2
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
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
Setting up Conditions and Events Click on this button to open up the Event Editor
Collision event with ball and paddles: • Right click on the ball object and choose a collision with another object. • Select the paddle 1 object • Find the event space under the ball object and right click under the space • Choose a movement event and select a bounce event • You will see a check mark if set up correctly.
Keeping paddle 1 in game frame. • Right click to create a new condition • Right click on paddle 1 • Choose the option Position • Then choose test position • Select the up and down arrow keys • Find the empty space under paddle 1 and right click • Select the movement and have the paddle bounce
Keeping paddle 2 in game frame. • Right click to create a new condition • Right click on paddle 2 • Choose the option Position • Then choose test position • Select the up and down arrow keys • Find the empty space under paddle 2 and right click • Select the movement and have the paddle bounce