Tank Game Int 10 Unit 3 – Game Maker.

Slides:



Advertisements
Similar presentations
Getting Started with PowerPoint
Advertisements

Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
In this tutorial, we are going to create: A race car that the user can control with the arrow keys for direction and speed. A simulated road with a striped.
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.
LO: Learn how to develop your game further to include interactions with the device.
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.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
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.
Creative Commons Attribution 3.0 creativecommons.org/licenses/by/3.0 Key Abstractions in Game Maker Foundations of Interactive Game Design Prof. Jim Whitehead.
Introduction to TouchDevelop
Backgrounds, Inheritance in GameMaker (BrickMania 1 of 2) Foundations of Interactive Game Design Professor Jim Whitehead January 28, 2008 Creative Commons.
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.
Making a Playable DVD movie using your digital photos And adding music to the movie.
© 2011 Delmar, Cengage Learning Chapter 3 Working with Symbols and Interactivity.
Review of last session Add text to your website Add text to your website Title Title Paragraph Paragraph Title and paragraph Title and paragraph Add photographs.
GAME:IT Helicopter Objectives: Review skills in making directional sprites Create objects that shoot and destroy for points Create random enemies on the.
GAME:IT Pinball Objectives: Review skills from Introduction Introduce gravity and friction Introduce GML coding into programming.
Catch the Clown Tutorial Tech Camp Fall 2008 Colorado School of Mines.
Game Maker Terminology
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
Game Maker Galactic Mail Advanced Group: Complete Galactic Mail, then start developing an independent project.
Image #1 Getting Started
Game Maker Tutorial.
Lesson Nine: Miscellaneous Items. Shooting in Both Directions Used when you want your character to shoot things in multiple directions. You need to have.
First Project: Dance Dance Sprite  Write a dance with your sprite (You pick or create the sprite)  Incorporate as many of the Motion Commands as you.
Game Maker Evil Clutches.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
1 CSC 221: Computer Programming I Fall 2009 Introduction to programming in Scratch  animation sprites  motion, control & sensing  costume changes 
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.
ICT/COMPUTING RULES Only use software allowed by the teacher
Tank Game Part 2 of 6. Firing Shells Coming up… Players Scores Large Explosions Small Explosions Damage Health Bars Parent Shell Destructible Walls Reappear.
Animating your Sprites to Make Greeting Cards. This lesson will lead you through: Selecting a background Adding letter sprites Using the random function.
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.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
School of Computer Science Space School 2015 Programming a Lunar Lander Game.
Index Background Costumes Making object walk smoothly Controlling an object with the keyboard Control an object with the mouse Changing costume when hit.
Computer Fundamentals 1
Create a Halloween Computer Game in Scratch
Scratch for Interactivity
An Introduction to Alice (Short Version)
Game Maker Intro to Programming Game Maker Pop Quiz (Both Groups)
Game Engines By James Tedder.
User Interface & Bouncing Ball Game
MS PowerPoint 2010 Week 2.
Introduction to Object-Oriented Programming
Competitive Multiplayer Game
Adding and Manipulating Objects
Intro to GML.
Creating games with game editors
Introduction to TouchDevelop
Intermediate game making
Tank Game Part 2 of 6.
Explain what touch develop is to your students:
Working with Symbols and Interactivity
ICT Gaming Lesson 3.
Game Maker Intro to Programming Game Maker Pop Quiz (Both Groups)
Image #1 Getting Started
Transparency & magic pixel
Creating a Simple Game in Scratch
CSC 221: Introduction to Programming Fall 2018
So you want to be a Game Designer
Presentation transcript:

Tank Game Int 10 Unit 3 – Game Maker

Unit Overview Install GameMaker on H: GameMaker Terminology Introduction to GM(Tank Game tutorial) Evaluating Video Games Planning Video Games Make Your Own

GameMaker Terminology rooms: provide the 2d space used to make game levels and worlds. backgrounds: An image, tile, colour or combination of the three that represents a room objects: Interactive elements of the game/ room sprites: Images that are usually used to represent objects.

GameMaker Terminology – Cont’d Instances An instance is a copy of a Game Maker object that is created during runtime. sounds: In various formats can be loaded and played in Game Maker. scripts: A script itself is a bit of GML code that can be called either directly from GML in the Execute Script action of an object.

Tank Game Tutorial Steps to create game: Create rooms, backgrounds, sprites and objects Make the tank move Make the tank shoot in the right direction Destroy enemies and bullets Make enemies MORE POWERFUL!

Naming Sprites, Sounds & Objects Name every: sprite  spr_XXX sound  snd_XXX Object  obj_XXX Imagine for example that you have a sprite called "Bullet", an object called "Bullet" and a sound called "Bullet". Do use letters, numbers and underscores when making a name. Do Not use spaces or weird characters like slashes, asterisks, dollar signs, ampersands, and similar. Also, don't start with a number, use it only later in the name.

Step 1- Set up the Game area Start Game Maker and create 4 rooms where the action will happen: Title, lvl1, lvl2, lvl3, end rooms Click the 'Add Room' icon Choose a background colour In settings, make the room caption the name of the room

Step 2 - Add In the Sprites Click the 'Add Sprite' icon Name it spr_tank Click Load Sprite, and find the tank image. Repeat steps for enemy tank, bullet, and wall sprites Find sprites in resources packs or on line

Step 2 - Add In the Sprites For tank, enemy tank, and bullet Use the sprite editor in GM Make sure the sprite canvas has the same height and width Transform  resize canvas (unlock aspect ratio) Modify Mask Full image ellipse Center Origin For wall sprite Leave origin x=0, y=0 Modify mask Automatic precise

Step 2 - Add In the Sprites For spr_tank We need to also create right, down, and left tank sprites Right click spr_tank Duplicate Rename spr_tank_r(ight) Sprite editor Transform  rotate (90o to the right) Repeat for spr_tank_d(own) and spr_tank_l(eft)

Step 3 - Create the objects Click the Add Object icon Name it obj_tank Choose the tank sprite to represent the object Only add spr_tank (there should only be one tank object!) don't make it solid. Repeat for enemy tank and bullet Add in a wall object.  Name it obj_wall choose the Wall sprite make it solid.

Step 3 - and add them to the room In the lvl1 room window click on the “objects” tab Click on the add objects icon Add 1 spr_tank and spr_enemy_tank Add walls around the outside Select objects and left click to add to room

Tank Game Tutorial Make the Tank Move To make the tank move: Make the tank jump to a new location when you press the key in that direction Change the sprite to make the tank face the right direction Event Press Left Button Actions Jump to new position Change sprites

Tank Game Tutorial Make the tank shoot in the right direction This is a little more complex, here are the general steps: Create a variable named “direction” Assign a value to that variable for each direction button you press Test for variable value when firing bullet.

Tank Game Tutorial Make the tank shoot in the right direction In obj_player property pane Event = create Action = set variable (controls tab) to 90

Tank Game Tutorial Make the tank shoot in the right direction Assign a value to that variable for each direction button you press (<left>, <up>, <right>, and<down>)

Tank Game Tutorial Make the tank shoot in the right direction Test for variable value when firing bullet. Event = press<Space> Action = create moving instance (main 1) Fill values in to dialogue box

Tank Game Tutorial Destroy enemies and bullets If we don’t destroy bullets the continued creation of them will crash the computer How can we destroy bullets? Hint: put the code in the obj_bullet property pane and destroy “self” How can we make enemies move? What are some different ways to get the enemy to move? To shoot? (you will have to create a separate obj_e_bullet) How can we destroy enemies?

Finish Up The Game… Create a functioning game with: Setup A starting screen with buttons Themed images for backgrounds Walls the player and enemies have to maneuver around (can’t go through) A main player that: Moves in all directions Faces all directions it moves Doesn’t move when the keys aren’t being pressed Main player shoots: In the direction it is facing Destroyed when off screen/ or hits another objeccct Only 4 projectiles at a time Enemy object disappears when projectile hits it

Game Maker Challenge The game ends: “Die” after 3 hits Go to losing screen “Win” when all enemy objects from a level are gone When all levels are completed (Minimum three) In a wining room Extensions (examples): Make the enemy characters move around and shoots at main player Have power up objects Make player have multiple lives as well as multiple hits to die Have it take multiple shots to destroy enemies Other…