Backgrounds, Inheritance in GameMaker (BrickMania 1 of 2) Foundations of Interactive Game Design Professor Jim Whitehead January 28, 2008 Creative Commons.

Slides:



Advertisements
Similar presentations
GAME:IT Junior Paddle Ball Objectives: Review skills from Introduction Create a background Add simple object control (up and down) Add how to create a.
Advertisements

Getting Started with PowerPoint
GAME:IT Junior Ping Pong Objectives: Review skills from previous lessons Create a 2-player game Create a scoring display system Using old and new skills,
Congratulations! You have just installed the Presentation Game Add-In.
Video Game Design Lesson 1. Game Designer Person involved in the development of a video game Person involved in the development of a video game Usually.
Creating a Mouse Maze This tutorial will cover step-by-step how to create a mouse maze like the one above. The goal of these mazes is to reach the end.
 First you have to think up a what kind of game are you going to have it can be any thing from a brick breaker to an role playing game.
Justus Nyagwencha Game Maker. Getting started -> Resources The icons across the top are very important All the things you add to the game are called “Resources”.
Procedural vs Object Oriented Design Bad code smells Game Design Experience Professor Jim Whitehead January 23, 2009 Creative Commons Attribution 3.0 creativecommons.org/licenses/by/3.0.
Creative Commons Attribution 3.0 creativecommons.org/licenses/by/3.0 Key Abstractions in Game Maker Foundations of Interactive Game Design Prof. Jim Whitehead.
Creative Commons Attribution 3.0 creativecommons.org/licenses/by/3.0/ Creating a Platformer in Game Maker Foundations of Interactive Game Design Prof.
Backgrounds, Inheritance in GameMaker (BrickMania 1 of 2) Foundations of Interactive Game Design Professor Jim Whitehead January 28, 2008 Creative Commons.
Chapter 6 Navigating Presentations Using Hyperlinks and Action Buttons
GAME:IT Junior Bouncing Ball Objectives: Create Sprites Create Sounds Create Objects Create Room Program simple game.
GameMaker.  A lot of Different Definitions  Easier to Say What is NOT a Game  Movie is Not a Game  No Active Participation  Final Outcome is Fixed.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Animating and Using Multimedia Effects Lesson 10.
GameMaker Workshop Geoff Cameron Sarah Scialli. What this workshop will teach you GameMaker GameMaker No Programming Required No Programming Required.
Chapter 3 Working with Symbols and Interactivity.
Game Design Creating a game called PING Phase 3: Steps for building basic game.
Power Point EDU 271 Microsoft PowerPoint is a powerful tool to create professional looking presentations and slide shows. PowerPoint allows you to construct.
Creative Commons Attribution 3.0 creativecommons.org/licenses/by/3.0 Key Abstractions in Game Maker Foundations of Interactive Game Design Prof. Jim Whitehead.
GAME:IT Bouncing Ball Objectives: Create Sprites Create Sounds Create Objects Create Room Program simple game.
Game Maker Day 2 Making a Maze Game.
VIDEO GAME PROGRAMMING Video Game Programming Junior – DigiPutt INSTRUCTOR TEACHER’S ASSISTANT.
VIDEO GAME PROGRAMMING Video Game Programming Level One – Breakout INSTRUCTOR Big Dan Teague TEACHER’S ASSISTANT Delmar O'Donnell.
GAME:IT Junior Learning Game Maker: The Move Tab.
Learning Game Maker Studio:
Creating a Document with a Title Page, Lists, Tables, and a Watermark
© 2011 Delmar, Cengage Learning Chapter 3 Working with Symbols and Interactivity.
Art 315 Lecture 5 Dr. J. Parker AB 606. Last time … We wrote our first program. We used a tool called GameMaker. The program we wrote causes a ball to.
Creating a Logo – Lesson 3 1 Creating a Logo Lesson 3.
© 2010 Delmar, Cengage Learning Chapter 3: Working with Symbols and Interactivity.
Test Environment Algorithm Program Requirements/ Enhancements Analyze the Problem and Design a Solution Programming Software Translates the Source Code.
GAME:IT Helicopter Objectives: Review skills in making directional sprites Create objects that shoot and destroy for points Create random enemies on the.
Catch the Clown Tutorial Tech Camp Fall 2008 Colorado School of Mines.
Game Maker Terminology
Adobe InDesign CS2--Revealed WORKING WITH TEXT. Chapter 2 Working with Text Chapter Objectives Format text Format paragraphs Create and apply styles Edit.
Chapter 4 Working with Frames. Align and distribute objects on a page Stack and layer objects Work with graphics frames Work with text frames Chapter.
Game Maker – Getting Started What is Game Maker?.
Shooters in GameMaker J Parker.
Overview of Game Maker. Game Maker Version 7.0 Lite (free version) For MS-Windows platforms
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
© 2010 Delmar, Cengage Learning Chapter 4 Working with Frames.
Game Maker Galactic Mail Advanced Group: Complete Galactic Mail, then start developing an independent project.
Game Maker Tutorial.
2D Platform Game Game Maker Terminology. Object  Item in a game that has behavior, such as a main character who can move.
© 2011 Delmar, Cengage Learning Chapter 4 Working with Frames.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Adding Text and Navigation to the Home Page – Lesson 51 Adding Text and Navigation to the Home Page Lesson 5.
Galactic Mail Part 2. Winning and Losing Exploding Asteroids Including Scoring Adding Levels And more.
Game Maker Evil Clutches.
GAME:IT Junior Paddle Ball Objectives: Review skills from Introduction Create a background Add simple object control (up and down) Add how to create a.
GAME:IT Paddle Ball Objectives: Review skills from Introduction Create a background Add simple object control (up and down) Add how to create a simple.
Tank Game Part 2 of 6. Firing Shells Coming up… Players Scores Large Explosions Small Explosions Damage Health Bars Parent Shell Destructible Walls Reappear.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
Clemson OLLI Presentation Template Instructions Important: Before starting to use this template, print out the following nine instruction pages.
GAME:IT Mario Creating Platform Games Level 4 with GML Game Maker Language (GML) allows users more flexibility in game design. GML is similar to how real.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
Create a Halloween Computer Game in Scratch
Scratch for Interactivity
First text statement positioned here at guide intersection
Competitive Multiplayer Game
Tank Game Part 2 of 6.
Game Maker Intro to Programming Game Maker Pop Quiz (Both Groups)
Tank Game Int 10 Unit 3 – Game Maker.
Creating a Simple Game in Scratch
So you want to be a Game Designer
Presentation transcript:

Backgrounds, Inheritance in GameMaker (BrickMania 1 of 2) Foundations of Interactive Game Design Professor Jim Whitehead January 28, 2008 Creative Commons Attribution 3.0 creativecommons.org/licenses/by/3.0

Upcoming Assignments Wednesday: Game Concept Document ► A compelling document that sells your game concept ► Title page Title of game, name of group, name of team members, sample artwork ► Overview page Table at top: game genre, platform (PC/GameMaker, PC/RPG Maker, etc.), team size Key points section –Bulleted list of important elements of gameplay –Goal of game, what makes game unique, main characters, main fictional elements –Sample artwork image to give feel of the game ► Biographies True, pocket biographies of each team member (1-2 paragraphs each) stressing experience that makes you a strong game designer ► 1-3 pages giving a textual description of the game Fictional background, brief description of characters, goal of player in game, how does player interact with the game, brief description of levels, game audience, other important elements as needed. ► 1-2 pages of sample conceptual artwork Hand-drawn sketches are fine Start early!

Let’s create a simple Breakout game Game elements ► Background ► Ball ► Paddle ► Score ► Lives ► 3 brick types ► Playfield is smaller than screen

Backgrounds Background ► Represents a static background image ► Defined separately, then combined with a room ► Can move, or be motionless Many uses ► Moving starfield Create starfield bitmap image Define as background Have it move backwards: creates sensation of motion ► Image surrounding playfield of game BreakMania uses a background this way

Detecting edges of background Reduce boundary objects ► In tile-based games, need many tiles to create an interesting level ► With objects, would need separate object for each tile type Can slow a game down ► Instead, create background image ► Then, use single, invisible boundary object for collision detection Can be easier to create background in drawing program ► Then, just use simple shapes for collision detection ► May be easier than converting to tiles at times

Creating a Background Resources -> Create Background ► Enter name ► Can have a transparent color Useful for multi- depth scrolling background ► Load background image Select file

Break Mania Background Created using The GIMP ► Free software ► PC & Mac ► Used fills & text effects that come with GIMP playfield score box

Create Room Resources -> Create Room ► Click on “Settings Tab” … enter name of Room

Add Background to Room Unselect “Draw background color” Select “Visible when room starts” Use pull-down menu to select background image Select grid size to match size of sprites – for us, 10x10 works well Note grid alignment with background image boundaries – need to plan ahead for this!

Create Sprites For BreakMania need sprites for: ► Paddle ► Ball ► Three brick types ► Small paddle (for lives display) ► Three different wall types Two different vertical (10x50,10x30), & one horizontal (10x50) Used to create invisible barrier for edge of playfield ► Game over text

Create Objects For most of the sprites, need to create an associated object ► Resources -> Create Object ► Solid: Paddle, three brick objects, three wall objects ► Not solid: Ball, game over ► No need to create small paddle object ► Only need to use the sprite for lives display For now, no behavior ► Will add soon

Create Invisible Objects Three wall types all must be invisible ► Will place them over the background ► Ball will collide with invisible wall objects ► To player, will seem like collision with background Wall objects placed at edge of black playfield. Show with dotted lines to represent being invisible during gameplay

Making Objects Invisible Click on “visible” toggle ► If no check, is invisible Make solid for bounce behavior

Place Objects in Room Click on game room, then objects tab Use pulldown menu to select object to place Invisible walls Bricks Paddle Ball

Ball Behavior When ball is created, want it to start moving upwards at an angle Use create event on ball ► Start moving in direction ► Click two up diagonal arrows ► Speed of 10

Paddle Behavior - Movement Left arrow moves left, right arrow moves right Up/down arrows stop Use keypress events for these

Paddle Behavior – Ball Collision Ball should bounce after hitting paddle Pick collision event, then select ball from pull-down menu that appears Drag-n-drop bounce to actions

Wall Behavior If paddle collides with wall, paddle stops If ball collides with wall, want it to bounce Could define this separately on all three wall types ► Tedious ► Error-prone, since every change needs to be copied over to the other two walls ► Would be nice if this could be stated once, for all walls Use object inheritance

Inheritance Objects can have a parent ► All of the behaviors of the parent are copied to its children ► Imagine a “wall-mother” object A collision event with the ball causes the ball to bounce ► Now, make all three invisible walls have wall-mother as a parent All invisible walls now collide with the ball like the mother! By defining one wall-mother object, avoids cut-and-paste of collision behavior to three invisible walls. ► Note that it is possible to change inherited behavior on children Just define the specific event a different way. Child’s definition always trumps that of the parent.

Creating Wall-Mother No sprite, since we’re using this just for behavior. Leave it to children to specify exact visual shape. Don’t set visible, do set solid, since that’s what children should be. Visible doesn’t matter for wall-mother, since it has no sprite Make ball bounce off walls

Now, set parent of invisible walls Note no events or actions. It gets these all from its parent, wall-mother! Set parent to wall- mother using pull- down menu here

Brick behavior If a ball hits a brick: ► It should disappear ► Small ring effect ► Play sound ► Ball should bounce ► Score should go up Three brick types Use inheritance from new brick-mother ► Put collision behavior on mother ► Reuse on all bricks Set each colored brick’s parent to “brick-mother”

Ball Bouncing Off Brick The collision of brick with ball is on brick-mother ► But, we want the ball to bounce, not the brick ► How to do this? ► Each collision is between two objects: The object hosting the collision event The “other” object In this case, the brick is hosting the collision, the ball is the “other” ► To indicate ball should bounce, select “other” in bounce dialog box

Making Brick Disappear Each brick on screen is an instance of a brick object Can think of the object as a kind of “mold” that can stamp out many different instances of the object Brick object: mold :: individual bricks: instances To make brick disappear: ► Destroy the instance ► On tab main1

Creating Brick Ring Effect On draw tab, select “Create Effect” button Add offset so ring emerges from center of the brick Click relative so ring emerges from brick, not upper left corner of screen!