DOC PREVIEW
Using Game Maker

This preview shows page 1-2-3-4-5-6-7-8-9-10-11-77-78-79-80-81-82-83-84-85-86-87-154-155-156-157-158-159-160-161-162-163-164 out of 164 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 164 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Using Game MakerMike BaileyMike [email protected]://cs.oregonstate.edu/~mjb/gamemakerhttp://cs.oregonstate.edu/mjb/gamemakerOregon State Universitymjb – July 13, 2009Oregon State UniversityComputer GraphicsWhat is Game Maker?• YoYo Games produced Game Maker so that many people could experience the thrill of making a computer do what you ask it to do, under the guise of producing a game.producing a game.• Game Maker creates an event-driven, object-oriented simulation with a visual drag-and-drop interface.Game Maker program e ec tables can be r n standalone or can be r n from•Game Maker program executables can be run standalone or can be run from within a web page (after loading a plug-in)• The “Lite” Edition can be downloaded for free! There is also a “Pro Edition” that costs money($20)that costs money. ($20)mjb – July 13, 2009Oregon State UniversityComputer GraphicsLearning Objectives1. Learn the basics of simulation software2. Learn the step-by-step thinking that characterizes writing computer programs3. Learn the ideas behind incremental program enhancement4. Learn the ideas behind event-based computer programmingppg g5. Learn the ideas behind object-oriented programming6. If you want a head start on learning Java or C++, you can learn to use the Game Maker scripting languagethe Game Maker scripting languagemjb – July 13, 2009Oregon State UniversityComputer GraphicsGetting Game Maker for FreeGo to:http://www.yoyogames.com/gamemakerFollow the links to the free download (see the next page). GameMaker comes in Windows 2000/XP/Vista versions.mmW .mjb – July 13, 2009Oregon State UniversityComputer GraphicsGetting Game Maker for FreeClick herehttp://www.yoyogames.com/gamemakermjb – July 13, 2009Oregon State UniversityComputer GraphicsGood Game Maker Web LinksGeneral Game Maker Site:http://www yoyogames comThese (and other) notes:http://www.yoyogames.comhttp://cs.oregonstate.edu/~mjb/gamemakerAl h b i d li f A i d h b fi d h dAlphabetized list of Actions and what tab to find them underhttp://cs.oregonstate.edu/~mjb/gamemaker/actions.pdf276-page PDF Game Maker documentation:http://cs oregonstate edu/~mjb/gamemaker/gmaker pdfmjb – July 13, 2009Oregon State UniversityComputer Graphicshttp://cs.oregonstate.edu/~mjb/gamemaker/gmaker.pdfReference BookJacob Habgood and Mark Overmars, The Game Maker’s Apprentice, Apress, 2006.($27 on Amazon)mjb – July 13, 2009Oregon State UniversityComputer GraphicsObject-oriented ProgrammingEach object has properties and behaviors encapsulated inside of it. This entire collection can be referenced by just the object name (“Paddle”) or by one property (“Paddle.hspeed”) or behavior (“Paddle’s Left Mouse Button Event”) at a time“paddle object”1. Propertieshspeed, vspeeddirectionx, y2. BehaviorsdirectionspeedWhat to do if a mouse button ismjb – July 13, 2009Oregon State UniversityComputer Graphicsmouse button is pressedEvent-based ProgrammingPerform some Action(s) Wait for some specific Event to happenin response to itUkthKbdRttth tRSome examples:User presses a key on the KeyboardUser holds down a button on the MouseRestart the current RoomMove Object A to wherever the Mouse isMouse isA new Object B is Created Get it positioned and movingObject E collides with Object F Destroy this instance of Object FObject C collides with Object D Bounce Object C and play a soundmjb – July 13, 2009Oregon State UniversityComputer Graphics“Events” “Actions”A Demonstration of Events: A Chase SimulationTwo Objects: the Chaser and the Chasee:Two Objects: the Chaser and the Chasee:1. Upon Creation, the Chasee starts at a random x and y location and heads in a random direction from 0º to 360º with a speed of 82. Upon Creation, the Chaser starts at a random x and y location3At each step the Chasee changes its direction to a random direction from 0º to 3.At each step, the Chasee changes its direction to a random direction from 0 to 360º4. At each step, the Chaser takes a step towards the Chasee with a speed of 25. If the Chaser collides with the Chasee, a sound is played, the Chasee is obliterated, and the simulation restarts6. If the Chaser goes outside the room, it plays a sound and bounces7If the Chasee goes outside the room it wraps around to the other side of the roommjb – July 13, 2009Oregon State UniversityComputer Graphics7.If the Chasee goes outside the room, it wraps around to the other side of the room8. If the ‘R’ key is hit on the keyboard, restart the simulationWhat Game Maker Means by the Y-axisWarning: Game Maker defines +Y as down ! “Paddle y50” is abovethe paddle-yPaddle.y-50 is abovethe paddle.-y+ymjb – July 13, 2009Oregon State UniversityComputer GraphicsWhat Game Maker Means by Angle Direction90º0º180º0mjb – July 13, 2009Oregon State UniversityComputer Graphics270ºGetting StartedDouble-click on the GameMaker iconOr click on Start → All Programs → Game Maker 7 → Game MakerYou will get a screen that looks like this:gmjb – July 13, 2009Oregon State UniversityComputer GraphicsClick here !Getting StartedYou will then get a start screen that looks something like this:mjb – July 13, 2009Oregon State UniversityComputer GraphicsGetting StartedNow, click on File→Advanced ModeThis isn’t really an advanced mode – it just brings up a few more icons, like this:mjb – July 13, 2009Oregon State UniversityComputer GraphicsRight now, click File→Save As –and hit Save often while you are editingGetting StartedTh i th tllittThe icons across the top are reallyimportant:OpenRun thegameUpgrade tothe ProEditionCreateCreateroomCreateexecutableCreatespriteChangeglobalsettingsCreatebackgroundscriptCreatetimelinemCreateSave Run withCreate SelectCreatePublish to the webdebuggingpathCreatesoundextensionpackagesChange game CreatefontobjectShow helpmjb – July 13, 2009Oregon State UniversityComputer GraphicsginfohelpAll the things you can add to the game are called “Resources”You can get at them here or heremjb – July 13, 2009Oregon State UniversityComputer GraphicsGame Maker Steps1. Describe the game you are trying to create What is it supposed to do? What is it supposed to look like?2. Define the sprites3. Define the sounds4Dfi th bj t th lb t t ( t) th i t d ti4.Define the objects themselves, but not (yet) their events and actions5. Go back and define each object’s events and actions6. Define the room7. Put the object instances in the roomIt is best to


Using Game Maker

Download Using Game Maker
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Using Game Maker and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Using Game Maker 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?