Carlotta Eaton New River Community College 1 Game Maker Demonstration Carlotta Eaton Professor of...

24
Carlotta Eaton Carlotta Eaton New River Community Col New River Community Col lege lege 1 Game Maker Demonstration Game Maker Demonstration Carlotta Eaton Carlotta Eaton Professor of Information Professor of Information Technology Technology New River Community College New River Community College IT Peer Conference - October IT Peer Conference - October 2006 2006

Transcript of Carlotta Eaton New River Community College 1 Game Maker Demonstration Carlotta Eaton Professor of...

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 11

Game Maker DemonstrationGame Maker Demonstration

Carlotta EatonCarlotta EatonProfessor of Information TechnologyProfessor of Information TechnologyNew River Community CollegeNew River Community CollegeIT Peer Conference - October 2006IT Peer Conference - October 2006

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 22

DemoDemo

Evil Clutches gameEvil Clutches game Game Maker InterfaceGame Maker Interface SpritesSprites ObjectsObjects Events & ActionsEvents & Actions Instances & RoomsInstances & Rooms Background GraphicsBackground Graphics Sound EffectsSound Effects

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 33

Evil Clutches GameEvil Clutches Game

You play a mother dragon who must rescue You play a mother dragon who must rescue her hatchlings from an unpleasant band of her hatchlings from an unpleasant band of demons that have kidnapped them. demons that have kidnapped them.

The band's boss sends a stream of demons to The band's boss sends a stream of demons to destroy the dragon as the hatchlings make destroy the dragon as the hatchlings make their escape. their escape.

The mother can fend off the boss's minions by The mother can fend off the boss's minions by shooting fireballs, but must be careful not to shooting fireballs, but must be careful not to accidentally shoot the hatchlings!accidentally shoot the hatchlings!

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 44

Game Maker InterfaceGame Maker Interface

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 55

SpritesSprites

A A spritesprite is a two-dimensional image or is a two-dimensional image or animation that is integrated into a larger scene. animation that is integrated into a larger scene.

Sprites needed for game objectsSprites needed for game objects DragonDragon BossBoss DemonsDemons FireballFireball Baby HatchlingsBaby Hatchlings

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 66

Sprites for Evil Clutches GameSprites for Evil Clutches Game

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 77

ObjectsObjects

An An objectobject is an individual unit of run-time is an individual unit of run-time data storage that is used as the basic data storage that is used as the basic building block of Object Oriented building block of Object Oriented Programming Programming

An An objectobject is the part of the game that is the part of the game that controls how the elements move around controls how the elements move around and react to each otherand react to each other

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 88

Events & ActionsEvents & Actions

Events & actions specify the Events & actions specify the behaviorbehavior of of objects. objects.

EventsEvents are important things that happen such are important things that happen such as when objects collide or when a player as when objects collide or when a player presses a key.presses a key.

ActionsActions are things that happen in response to are things that happen in response to an event, such as changing the score, an event, such as changing the score, changing direction, or playing a sound.changing direction, or playing a sound.

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 99

Create Object #1 - BossCreate Object #1 - Boss

The boss object randomly moves up and down the screen.

When the boss hits the edge of the screen it moves in the opposite direction.

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 1010

Create Object #2 - DragonCreate Object #2 - Dragon

Use the up and down keys to move the dragon vertically on the screen.

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 1111

Rooms - Objects and Rooms - Objects and InstancesInstances

We have created objectsWe have created objects Now we need to create instances of the Now we need to create instances of the

objects to utilize themobjects to utilize them Create a room and place instances Create a room and place instances Create another room for each level in a Create another room for each level in a

gamegame

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 1212

Rooms & InstancesRooms & Instances

Create an instance of the dragon object

Create an instance of the boss object

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 1313

Test Evil Clutches Version 1Test Evil Clutches Version 1

Game Maker GameEvil Clutches #1.exe

• Move the dragon using the up & down keys.

• The boss changes direction when it hits a room boundary.

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 1414

Add Object #3 FireballAdd Object #3 Fireball

Dragon object Dragon object creates an creates an instanceinstance when when player presses player presses spacebarspacebar

Fireball Fireball instance instance destroyeddestroyed when it moves when it moves off screenoff screen

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 1515

Add Object #4 DemonAdd Object #4 DemonInstances Instances

randomly randomly created by the created by the bossboss

Demons fly from Demons fly from right to left right to left

Reverse direction Reverse direction when hit room when hit room boundaryboundary

Restart game if Restart game if hits the dragonhits the dragon

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 1616

Add Object #5 Baby HatchlingAdd Object #5 Baby Hatchling

Rescue a baby Rescue a baby and earn and earn 500 points500 points

Shoot a baby Shoot a baby and lose 300 and lose 300

pointspoints

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 1717

Test the Evil Clutches Version 2Test the Evil Clutches Version 2

Game Maker GameEvil Clutches #2.exe

• Move the dragon using the up & down keys.

• Earn 500 points if you rescue a baby hatchling.

• Lose 300 points if you shoot a baby hatchling.

• Game ends if you hit a demon.

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 1818

Add Background GraphicAdd Background Graphic

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 1919

Add Sound EffectsAdd Sound Effects

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 2020

Add Game Information ScreenAdd Game Information Screen

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 2121

Add CreditsAdd Credits

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 2222

Test the Evil Clutches Version 3Test the Evil Clutches Version 3

Game Maker GameEvil Clutches #3.exe

• Background cave image displays.

• Background music plays.

• Sound effect when you shoot a demon.

• Crying sound effect when you accidentally shoot a baby.

• Hit F1 to view the credits screen.

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 2323

Student Project – Slider GameStudent Project – Slider Game

Educational Slider Game by Lauren and Dusty.exe

• First original project by 2 person team

• Created 3rd week of class after a single Game Maker lesson.

• Create a slider game with an educational purpose.

• Could use any artwork since creating for learning (not to sell or distribute).

Carlotta EatonCarlotta Eaton New River Community CollegeNew River Community College 2424

Game MakerGame Maker

Easy to useEasy to use Students visually Students visually

understandunderstand ObjectsObjects EventsEvents ActionsActions Instantiate objectsInstantiate objects Destroy instancesDestroy instances Design, code, test cycleDesign, code, test cycle