GAME:IT Junior Bouncing Ball

Similar documents
GAME:IT Junior Bouncing Ball

GAME:IT Bouncing Ball

Objectives: Create Sprites Create Sounds Create Objects Create Room Program simple game

Overview. The Game Idea

Before you start, you must go into Advanced Mode. Go to: File > Advanced Mode. You know you are in Advanced Mode when the checkmark appears.

2D Platform. Table of Contents

VACUUM MARAUDERS V1.0

04. Two Player Pong. 04.Two Player Pong

Game Maker Tutorial Creating Maze Games Written by Mark Overmars

PING. Table of Contents. PING GameMaker Studio Assignment CIS 125G 1. Lane Community College 2015

Star Defender. Section 1

Tutorial: Creating maze games

More Actions: A Galaxy of Possibilities

CONCEPTS EXPLAINED CONCEPTS (IN ORDER)

Lesson 2 Game Basics

Meteor Game for Multimedia Fusion 1.5

Competitive Games: Playing Fair with Tanks

Create a Simple Game in Scratch

THE TECHNOLOGY AND CRAFT OF COMPUTER GAME DESIGN An introductory course in computer game design

Tutorial: A scrolling shooter

Scratch for Beginners Workbook

G54GAM Lab Session 1

GameMaker. Adrienne Decker School of Interactive Games and Media. RIT Center for Media, Arts, Games, Interaction & Creativity (MAGIC)

5.0 Events and Actions

1 Shooting Gallery Guide 2 SETUP. Unzip the ShootingGalleryFiles.zip file to a convenient location.

Using Game Maker. Getting Game Maker for Free. What is Game Maker? Non-event-based Programming: Polling. Getting Game Maker for Free

Davis Art Images: Create and Share Slideshows

Using Game Maker. Oregon State University. Oregon State University Computer Graphics

COMPUTING CURRICULUM TOOLKIT

Create a game in which you have to guide a parrot through scrolling pipes to score points.

Game Maker: Platform Game

BE SURE TO COMPLETE HYPOTHESIS STATEMENTS FOR EACH STAGE. ( ) DO NOT USE THE TEST BUTTON IN THIS ACTIVITY UNTIL THE END!

Maze Puzzler Beta. 7. Somewhere else in the room place locks to impede the player s movement.

Your First Game: Devilishly Easy

Space Invadersesque 2D shooter

1. Creating geometry based on sketches 2. Using sketch lines as reference 3. Using sketches to drive changes in geometry

Introduction to Turtle Art

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Kinect2Scratch Workbook

Create Your Own World

Quilt Pro 6 Lesson Quilt in a Quilt

Beginner s Guide to Game Maker 4.3 Programming. Beginner s Guide to Game Maker 4.3 Programming

Kodu Game Programming

Register and validate Step 1

Name: Date Completed: Basic Inventor Skills I

No Evidence. What am I Testing? Expected Outcomes Testing Method Actual Outcome Action Required

Annex IV - Stencyl Tutorial

C# Tutorial Fighter Jet Shooting Game

Game Design Curriculum Multimedia Fusion 2. Created by Rahul Khurana. Copyright, VisionTech Camps & Classes

Creating Computer Games

Chief Architect X3 Training Series. Layers and Layer Sets

AIM OF THE GAME GLACIER RACE. Glacier Race. Ben Gems: 20. Laura Gems: 13

AP Art History Flashcards Program

Getting Started. with Easy Blue Print

Photoshop Elements Hints by Steve Miller

Editing the standing Lazarus object to detect for being freed

Programming with Scratch

LESSON ACTIVITY TOOLKIT 2.0

Cannon Ball User Manual

Photoshop CS6 automatically places a crop box and handles around the image. Click and drag the handles to resize the crop box.

Key Abstractions in Game Maker

SimSE Player s Manual

SolidWorks Tutorial 1. Axis

Alibre Design Tutorial: Loft, Extrude, & Revolve Cut Loft-Tube-1

For more information on how you can download and purchase Clickteam Fusion 2.5, check out the website

Step 1 - Setting Up the Scene

GAME PROGRAMMING & DESIGN LAB 1 Egg Catcher - a simple SCRATCH game

House Design Tutorial

The Games Factory 2 Step-by-step Tutorial

NWN ScriptEase Tutorial

Drawing a Plan of a Paper Airplane. Open a Plan of a Paper Airplane

Introducing Scratch Game development does not have to be difficult or expensive. The Lifelong Kindergarten Lab at Massachusetts Institute

House Design Tutorial

Scratch Coding And Geometry

The Beauty and Joy of Computing Lab Exercise 10: Shall we play a game? Objectives. Background (Pre-Lab Reading)

An Introduction to Programming using the NXT Robot:

ARCHICAD Introduction Tutorial

House Design Tutorial

Gaia is a system that enables rapid and precise creation of gorgeous looking Unity terrains. Version March 2016 GAIA. By Procedural Worlds

Audacity 5EBI Manual

Excel 2003: Discos. 1. Open Excel. 2. Create Choose a new worksheet and save the file to your area calling it: Disco.xls

In this project you ll learn how to create a times table quiz, in which you have to get as many answers correct as you can in 30 seconds.

Your EdVenture into Robotics 10 Lesson plans

Alright! I can feel my limbs again! Magic star web! The Dark Wizard? Who are you again? Nice work! You ve broken the Dark Wizard s spell!

KEEPING SCORE: HOW TO USE SCORES, LIVES AND HEALTH

Google Photos Online Basics

Blend Photos Like a Hollywood Movie Poster

Image Editor. Opening Image Editor. Click here to expand Table of Contents...

EG1003 Help and How To s: Revit Tutorial

REVIT - RENDERING & DRAWINGS

How to Make Smog Cloud Madness in GameSalad

Starting from LEARNER NOTES edited version. An Introduction to Computing Science by Jeremy Scott

Arcade Game Maker Product Line Requirements Model

After you have completed the tutorial, you will be given an initial knowledge check by ALEKS to determine what topics you already know so ALEKS can

1 Sketching. Introduction

Introduction to Parametric Modeling AEROPLANE. Design & Communication Graphics 1

The editor was built upon.net, which means you need the.net Framework for it to work. You can download that here:

In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

Instruction manual Chess Tutor

GlassSpection User Guide

House Design Tutorial

Transcription:

GAME:IT Junior Bouncing Ball Objectives: Create Sprites Create Sounds Create Objects Create Room Program simple game

All games need sprites (which are just pictures) that, in of themselves, do nothing. They are the elements that make up the game parts. The sprites are later turned into objects (which can be programmed). Backgrounds are just that they are what you see in the background. Backgrounds are colors, or textures, or even pictures. The backgrounds are later used as part of the rooms. Sounds are files (usually.wav files) that add another dimension to the games. They are used directly in the programming. Rooms are the playing fields for the games. If you want to change the playing field, you change the room. Rooms can be changed to different sizes and detail.

Creating a New Game Where do I start? When starting a new game, typically you create the sprites & backgrounds first. The objects are then created from the sprites. Objects are important because they can be programmed to do things (sprites cannot). Rooms are created next because objects and backgrounds are needed to create the rooms. When the room is set up, programming the events and actions of the objects can take place and be tested for errors. If you know what sounds you are using, they can be created before programming starts or added later to enhance the game.

Your first game will demonstrate a few of the elements of Game Maker. The game will involve a ball bouncing around the room and making a sound when it hits the wall.

Your finished game will have (1) a smiley faced ball, (2) a red border, and (3) a lime green background.

The first step is to create your wall and ball sprites 1. Click the Create a Sprite icon 2. Enter the name of the sprite in this case spr_ball. IT IS IMPORTANT TO NAME THINGS AS INSTRUCTED 3. You can either create your own sprite or load a sprite from a file. In this game, you are going to load a pre-existing sprite, so click the Load Sprite button.

4. Find the folder that contains your Game 1 Resources and select the ball image and click Open. ***GET THIS FILE PATH FROM YOUR TEACHER*** 5. Once the ball is loaded, click the OK button to save this sprite. 6. Now follow the same steps to create the wall sprite, naming it spr_wall

Next you are going to create a sound 7. Click on the Create a Sound icon 8. Name the sound snd_beep 9. Click the Browse Folder icon to load the beep.wav file from the Game 1 Resources folder 10. Click OK to save

By the way.... Why is it important to carefully label sprites, sound, backgrounds, rooms, and objects? It s just GOOD programming it saves time later in searching for mistakes or making changes to your game. It only takes a few seconds to type in something that could cause minutes/hours of frustration. NAME EVERYTHING EXACTLY AS INSTRUCTED IN OUR LESSONS What are good examples? Spr_ball, spr_wall, snd_beep, bckgd_desert, obj_plane What are BAD examples? Spr01, sound1, background, plane (is it a sprite or object?)

Next, you will create objects. But I don t understand we created sprites -- they look the same? The difference is sprites are just pictures, but objects can be programmed in Game Maker. How to create objects: 11. Select the Create an Object icon 12. Name the Object obj_ball 13. You need to assign a sprite to the object. Do this by clicking the list icon, and select spr_ball from the list of available sprites

The objects have additional attributes that need to be discussed visible & solid? What is visible? Most items in your games will be visible but occasionally you will need special objects to be invisible (like walls and floors). Even though an object is invisible, they can still be programmed for other objects to collide with for points or to bounce off of. You will learn more about this as we go through the lessons? What is solid? Solid means you can collide with or bounce off of an object. If an object is not solid, other objects can pass right through. 14. Make sure both Visible and Solid are checked. Click OK to finish creating the ball object. 15. Follow the same steps to create the wall object name it obj_wall and assign it the spr_wall.

Next we create our first room 16. Click the Create a Room icon 17. Select the Backgrounds tab 18. Select a color by clicking in the color area to select the background color from the pop-up menu. 19. Click OK to save that color

To add objects to the room: 20. First, we need to make sure the Snap is set to X = 16 and Y =16. 21. Next, select the objects tab 22. Click the list icon and choose obj_ball from the submenu that appears and place the ball somewhere in the middle of the room by clicking your left mouse where you wish to place the ball.

23. Next, click the List Icon again and select the obj_wall. Click into each square around the perimeter of the room to add the wall. Left mouse adds (or moves) the object. HINT: Click the Left Mouse and drag while hold down the Shift + Ctrl keys can add multiple objects quickly. *Just be very careful where you drag.* NOTE: There is a visual that shows which object will be placed when clicking into the room

If you place something in the wrong spot, right click on that object and select delete from the menu that appears.

Time to Program! The actual programming occurs in the OBJECTS we have created: obj_ball and obj_wall. With the room set up and the objects in the room, what do we want the ball to do? A) Bounce off the walls B) Make a beep when it hits the wall. In this case, all the programming takes place in the obj_ball.

24. Open the Object Properties window for obj_ball by double clicking it in the side menu. 25. Click on the Add Event button

What are EVENTS? Events are discreet moments in the game loop where things are made to happen based on what you have programmed for them. Here is a description of the different events: Create Event This event happens when an instance of the object is first created, and is the very first thing that happens within an instance placed in the room. This event is the ideal place to initialize variables, start Timelines, set paths etc... and do anything else that generally only needs to be done once or only when an instance first appears in the room. Destroy Event: This event is the very last event to be executed when an instance is destroyed. It is often overlooked when adding behaviors to objects, but it can be very useful, for example by creating explosion or particle effects when an enemy is killed, or for re-spawning a new instance of the object in another part of the room, or even for adding points onto a score.

Alarm(s): The alarm event is split into 12 sub events, one for each of the possible alarms that can be set in an instance. But what is an alarm? It s a special event that does nothing unless the alarm has been previously set, and then it will wait until that alarm has counted down to 0 before running the actions or code that you have added into it. Example: Object changes direction every 30 steps. FYI: An Action must reset the alarm.

Step Event: GameMaker:Studio splits time into steps with the room speed defining how many of these steps happen per second. A step is basically the loop that runs constantly with all the events being checked and triggered as necessary while the game runs, so the Step Event is an event that is checked every single step of the game while the instance exists. For most things the standard step event will be fine to use, but sometimes you want a bit more control over what code runs and at what time, so for that you are provided with the begin and end step events.

Collision Event: When 2 objects collide, you want these actions to occur. Example: When bomb collides with plane create an explosion sprite. Keyboard Event: When a player presses a certain key on the keyboard, the actions will occur. You get the action in every step as long as the key is depressed. There is a <no key> event and an <any key> event.

Mouse Event: This would occur when the mouse cursor touches the object. You can select left, right or middle buttons. Other Events: Miscellaneous collection of special purpose events. Check the Help Documents for an description of each of them.

Draw Event: This event is the one that governs what you see on the screen when you run your game, and is split into three separate "sub-events" - the Draw Event, the Draw GUI and Resize Event. Key Press: Only happens once at key press (not continuously). Key Release: Only happens once at key release (not continuously). For more info on all Events, check out the Help Documentation included with Game Maker: Studio.

26. Select the Create event from the Add Events menu. 27. Select Move Fixed from the actions menu (Move tab) and drag it into the Actions panel. This will open the Move Fixed window and allow you to set the following variables: Select the 4 corners of the directions Enter 5 as the speed. Leave the relative button unchecked. 28. Click OK to save.

29. Next, click Add Event to select another event. 30. Choose Collision. Assign the collision to obj_wall by selecting it from the pop-up menu.

31. When the ball collides with obj_wall you want it to bounce off the wall, so select the Bounce action and drag it into the action section. 32. Enter the following variables Applies to: Self Precise: precisely (select from submenu) Against: solid objects (select from submenu) 33. Click OK to save

34. Still in the Collision with obj_wall Event, find Play Sound in the Main 1 folder and drag it to the Actions panel. 35. Enter the following variables: Sound: snd_beep (select from submenu) Loop: false (select from submenu) false means it will only play once. 36. Click OK to save

Now it s time to test your game! 37. Click the Run Game icon to test and play your game. If your game was programmed correctly, the game will run successfully. If not, you will see error messages that will help you make corrections.

Save the Game as Game1_yourname Assignments: A. Modify the game so that the when you click your left mouse on the ball, the ball disappears. Save it as Game1A_yourname B. Modify the game so that the when you click your left mouse on the ball, the ball changes direction and increases speed (hint: relative button). Save it as Game1B_yourname C. Modify the game so that the when you click your left mouse on the ball, the ball changes direction and increases speed and if you right click on the ball, it will change direction and slow down. Save it as Game1C_yourname