Copy of Evil_Clutches SlideRocket

Views:
 
Category: Entertainment
     
 

Presentation Description

No description available.

Comments

Presentation Transcript

PowerPoint Presentation:

Evil Clutches Gamemaker’s Apprentice

PowerPoint Presentation:

Goal You play a mother dragon who must rescue her hatchlings from an unpleasant band of demons that have kidnapped them. The band’s boss sends a stream of demons to destroy the dragon as the hatchlings make their escape. The mother can fend off the boss’s minions by shooting fireballs, but must be careful not to accidentally shoot her hatchlings!

PowerPoint Presentation:

Controls The arrow keys will move the dragon up and down and the spacebar will shoot fireballs. The player will gain points for shooting demons and rescuing young dragons, but will lose points for any hatchlings that accidentally get shot. The game is over if the dragon is hit by a demon, and a high-score table will be displayed.

PowerPoint Presentation:

Resources – All Given in Your Assignment Folder Objects: a dragon, a boss, demons, hatchlings, and fireballs. Game background image Game sound effects background music.

PowerPoint Presentation:

Game Screen

PowerPoint Presentation:

Create Sprites for your objects What does transparent mean? Dragon (make all transparent) Boss, Demon, Baby, Fireball What do u name sprites? sprDragonJH ■ Note Game Maker works out which color to make transparent based on the color in the bottom leftmost corner of each image. This is worth remembering when you want to create your own sprites.

PowerPoint Presentation:

Animated Sprites – They Move

PowerPoint Presentation:

Put the Dragon & The Boss In your room and run it

PowerPoint Presentation:

Boss Object Make It Bounce Up and Down Events and Actions Add an event and action that will start the boss moving up the screen at the beginning of the game Add an event and an action that makes the boss reverse his vertical (up and down) direction when he hits the top and bottom of the room New Event: Intersect Boundary Other from the Event Selector pop-up form and select Intersect boundary New Action: Reverse Vertical As a result, the boss will continually move up and down between the top and bottom of the screen.

PowerPoint Presentation:

Dragon Object – Arrows Move it up and down on the left side of the room New Events and Actions: Keyboard events Make the dragon move up(speed 16) the screen when the user hits the up arrow on the keyboard. Now make the down arrow move it down Use the Keyboard, <no key> event to test for when the player is no longer pressing any keys. What happens if you don’t include this event? ■ Caution When setting a Move Fixed action with a speed of 0, you must also select the center square of the direction grid. If no direction square is selected at all, then the action is ignored!

PowerPoint Presentation:

Back To Your Room Use Settings to name the room. Add a caption (name the game) Test the movement of the objects Save LastName FirstName evil.gmk in your assignment folder Note: F4 is Full Screen Mode

PowerPoint Presentation:

Let’s Breathe Fire! Step 1: Create the fireball and describe how it works Make a fireball object and give it a sprite New Events and Actions: Outside Room, Destroy Instance When the fireball is created, make it move to the right (speed 32) When the fireball goes outside the room, destroy it ■ Caution It is always a good idea to make sure that instances are deleted when they’re not needed any more (when they go off the edge of the screen, for example). Even though you can’t see them, Game Maker still has to spend time updating them, and too many instances will eventually slow down the program.

PowerPoint Presentation:

Make the dragon object breathe when the player presses the spacebar Open the Dragon Object Event: Press <space> Action: Create Instance (of Fireball) When the user presses the space bar, create an instance of the fireball enter a value of 100 into X and 10 into Y, and select the Relative checkbox

PowerPoint Presentation:

Object Dragon With Fireball

PowerPoint Presentation:

What’s with the X and Y values? Why relative? Why use a Keypress event and not a Keyboard event ? What’s the difference?

PowerPoint Presentation:

We can use this to keeping our dragon in the room too! Room Dimensions: 640 pixels wide 480 pixels high

PowerPoint Presentation:

We can use this to keeping our dragon in the room too! Conditional statements If the dragon’s y position<= 0, we’re at the top. Stop the dragon. Otherwise, move up If the dragon’s y position >= 480, we’re at the bottom. Stop the dragon. Otherwise, move down.

PowerPoint Presentation:

Object Dragon Up Event

PowerPoint Presentation:

How to Make The Demon Object Create your demon object and assign it a sprite Events and Actions for the demon object When its created, make it move towards the left of the screen (3 left arrows, speed 12). Gamemaker will randomly choose 1 of the 3 directions selected When the demon is about to go off the screen( Intersect Boundary Event ), make it reverse vertical direction( Reverse Vertical ) When the demon goes outside the room, destroy the instance Collision Events When the demon collides with the fireball, destroy the demon and add 100 points to the score When the demon collides with the dragon, display GAME OVER, bring up a high score table (show highscore action) , restart the game (restart action from main2)

PowerPoint Presentation:

How to Make the Boss create the demons randomly Step Event – short period of time in which everything on the screen moves Happens 30 steps per second Test Chance action: throwing a die with many sides. One side is marked true, the rest false. If you have 50 sides, 1 in 50 chance of getting a true

PowerPoint Presentation:

Let’s make some demons Open the boss object Add a step event with a test chance action (sides = 50) followed by a create instance of a demon action (don’t forget relative) Test chance is a conditional action. Only if it’s true with the demon be created.

PowerPoint Presentation:

Baby Dragon Object Make a Baby object Add a create event to move it left(speed 8) If it goes outside the room, destroy it If it collides with a fireball, destroy it and subtract 300 from the score If it collides with the dragon, destroy it and add 500 to the score

PowerPoint Presentation:

Who creates the baby dragons? Edit the boss object – Why? In the step event, add another test chance(100 sides) and create an instance of the baby object right underneath the chance action (why right underneath) Don’t forget to set relative when you create an instance of the baby object (why?)

PowerPoint Presentation:

Background image Create a background image using background.bmp. Call it bkgCave Open your room and select the background image Check out settings while you’re there

PowerPoint Presentation:

Background Music Create a sound using Music.mp3 and call is sndBackgroundMusic Open the boss object and in its create event add an action to play the background music. Make it loop.

PowerPoint Presentation:

Sound Effects Create a new sound called sndDemon and load in Demon.wav Open the demon object and make it play the sndDemon when it collides with the fireball. Now make the baby dragon play the Baby.wav sound when it collides with the fireball.

PowerPoint Presentation:

Game Information Add game information to explain how the game works

PowerPoint Presentation:

You’re Done! Create an executable. Test it for bugs Let your friends play it too Test it against the rubric! Now you know the basics of Gamemaker and have a real game to show for it  Remember, it’s all free so play at home too

authorStream Live Help