Competitive Multiplayer Game

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

GAME:IT Junior Learning Game Maker: The Score Tab.
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,
Create a Simple Game in Scratch
Intro to Computers!.
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.
Create a Simple Game in Scratch
How to… Keep your character from leaving the game (never to return)
How to make a game on game maker 7. Start With an Idea Before you actually start making your game, you are going to need an idea as to what it is you.
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.
Line up By Melissa Dalis Professor Susan Rodger Duke University June 2011.
GameMaker Workshop Geoff Cameron Sarah Scialli. What this workshop will teach you GameMaker GameMaker No Programming Required No Programming Required.
Game Design Creating a game called PING Phase 3: Steps for building basic game.
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.
We will be creating a spaceship that simulates real movements in space. The spaceship will fire a laser beam that can destroy targets. The spaceship will.
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?.
PowerPoint Basics Tutorial 3: Graphics In this tutorial we’ll be looking at graphics, and the various types of illustrations that can be included in a.
Shooters in GameMaker J Parker.
Guide to Programming with Python Chapter Twelve Sound, Animation, and Program Development: The Astrocrash Game.
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.
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.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Today we are learning to: Understand how actions and events control our game. Completing the catch the clown game – making a room – adding music Gather.
Galactic Mail Part 2. Winning and Losing Exploding Asteroids Including Scoring Adding Levels And more.
Game Maker Evil Clutches.
Tank Game Part 3 of 6. Secondary Weapons and Pick ups Pick ups will appear randomly in the battle area and can be collected by driving into them. Each.
Evil Clown – Quiz 1 Gamemaker Quiz 1. Set up your file Save all finished work to your desktop Final file should be called: “yourlastname_evilclown” Open.
If you don’t have Google Earth downloaded already, you can go to to get it.
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.
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
Microsoft Access 2007 – Level 2
Game Maker Intro to Programming Game Maker Pop Quiz (Both Groups)
Creating a Tank Game in Scratch
User Interface & Bouncing Ball Game
Let's Race! Typing on the Home Row
Finish the Scratch Presentations Game Maker
Intermediate game making
Solid Edge ST4 Training Exploding assemblies
Tank Game Part 4 of 6.
Tank Game Part 6 of 6.
Tank Game Part 2 of 6.
An Introduction to Alice
Introduction to PowerPoint
ICT Gaming Lesson 3.
Tank Game Part 4 of 6.
Game Maker Intro to Programming Game Maker Pop Quiz (Both Groups)
Transparency & magic pixel
Tank Game Int 10 Unit 3 – Game Maker.
Creating a Simple Game in Scratch
CSC 221: Introduction to Programming Fall 2018
So you want to be a Game Designer
Then while all still selected: Arrange > Align > Align Middle
Presentation transcript:

Competitive Multiplayer Game Intro To Programming Competitive Multiplayer Game Tanks This project is taken from “The Game Maker’s Apprentice” by Jacob Habgood and Mark Overmars, Chapter 10

Learning Objectives Be able to create a two player game with tanks, shells, power-ups, score, lives, maps and much more.

Tank War Tank war is a futuristic tank combat game for two players. Each player drives his or her own tank through a walled battle arena with the aim of obliterating the other’s tank. Once a tank is destroyed, both tanks are respawned at their start position, and a point is awarded to the surviving player. Most walls provide permanent cover, but some are temporarily demolished to create a way through. Players play until someone gives up.

Properties Each tank has a primary weapon that it can fire indefinitely. Pickups provide a limited amount of ammunition for a secondary weapon, or repair some of the tank’s damage.

Weapons Homing Rockets: Always move in the direction of your opponent Bouncing Balls: Bounce against walls and can be used to fire around corners. Shields: Are activated to provide a temporary protective shield Toolbox: Repairs part of the tank’s damage

More Game Details Split screen view with a mini-map. The two spit screens will be centered on each of the tanks. The mini map at the bottom of the screen is for locating pick ups and the other player

Controls Player 1 Player 2 ADWS for driving Space Bar for shooting (primary) Ctrl key for secondary Player 2 Arrow keys for shooting Enter key for shooing (primary) Delete key for secondary.

Resources The files for this project are located in the Chapter 10 folder of the resources for this class.

The Arena 1) Create a background 2) Label it ‘background’ 3) Load ‘Background’ from the Resources/Chapter10 folder

5) Disable the Transparent property Wall1 Sprite 1) Create Sprite 2) Name it spr_wall1 3) Load Sprite 5) Disable the Transparent property 4) Wall1

Same as Wall1 but use the Wall2 image and name Wall 2 Sprite Same as Wall1 but use the Wall2 image and name

Create an obj_wall1 object using the spr_wall1 sprite. Wall Objects Create an obj_wall1 object using the spr_wall1 sprite. Make it solid

Set the Parent to obj_wall1 Create an obj_wall2 using eh spr_wall2 sprite, enable the solid property Set the Parent to obj_wall1 Parent Property: Now wall1 will inherit all of wall1s events and actions. Also as a child of wall1, wall2 ‘is a wall1’ so the controller object automatically includes it in its count to see how many wall1s are left in a room.

Controller Object This game will include a controller object. For now it will control playing the music but later it will also be responsible for displaying the score

Music, Controller Object and Room 1) Create a Sound 2) Name is snd_music ‘Music.mp3’ file. 3) Load sound

Obj_Controller 1) obj_controller Set depth to -100 Add Event Other Game Start

Play Sound Action Snd_music Loop = true

2) Go to the ‘settings’ tab Room 2) Go to the ‘settings’ tab 1) Create a Room 3) Name it room_main 4) Give it a caption

1) Switch to the ‘backgrounds’ tab 2) Select ‘background’

2) Select the ‘objects’ tab Wall in the Field 1) Set Snap X and Snap Y to 32. 2) Select the ‘objects’ tab 4) Create a wall around the entire field. Note: You can hold the ‘shift’ key to create multiple instances of an object. 3)Select the obj_wall1

Create Wall Obstacles of Both Types

The Tanks We need to make two different tank objects, but they will behave the same. So we will make a parent tank object with the common events and actions. We will control the tanks with direction (0 – 360) and speed (+ forward, - backward)

Parent Tank 2) Name it obj_tank_parent 1) Create new Object 3) No sprite 5) Set Friction to 0.5 This will have the tank slow down when not accelerating. 4) Add Event -> Create

Parent Bounces Off Wall 2) On the ‘Control’ tab select the Set Variable method 1) Create a collision event with obj_wall1 3) Set variable to ‘speed’ And value to ‘-speed’

Parent Bounces Off Parent 1) Create a collision event with an obj_tank_parent 2) Set Variable method Variable: speed Value: -speed

Now for the Children You will create two tanks (tank1 and tank2) Give them methods needed to drive and change images accordingly Then you can finally test it.

Tank1 Sprite 1) Create a sprite 4) Resources, Chapter 10 Tank1.gif 2) Name it spr_tank1 3) Load a Sprite 6: Note: This GIF has 60 images 5: Set the Origin to Center

Tank1 Object 1) Make an object 2) Label it obj_tank1 3) Use the spr_tank1 sprite 4) Make it solid. 5) Set the depth to -5 so it can go in front of shells, … 6) Set the parent to obj_tank_parent

Add Movement to the Tank: Turn Left 2) Set Variable Direction 6 Check the Relative box This will rotate the tank counter clockwise 1) Add Event Keyboard Letters A

Turn Right 2) Set Variable Direction 6 relative 1) Add Event Keyboard Letters ‘D’

‘W’ forward If not already at the top speed of 8… 1) Add Event Keyboard Letters W 3) Variable: speed Value: 8 Operation: smaller than 2) Drag Test Variable

Speed up 1) Set Variable 2) Variable: speed Value: 1 Click the relative box.

S to Backup If not already at a top speed of -8… 1) Add Event Keyboard Letters S 2) Test Variable Variable: speed Value: -8 Operation: larger than

Back up!!! 2) Variable: speed Value: -1 Check the relative box 1) Set Variable

Rotate the Tank with the Direction 1) Add Event Step End Step 2) Change Sprite Spr_tank1 subimage: direction/6 Speed: 0 3) Sub image calculation: 360 directions (degrees) per 60 sub images -> direction / 6 to calculate the sub image.

2) In the Draw Tab select Draw Sprite Draw Event 2) In the Draw Tab select Draw Sprite 3) sprite: spr_tank1 x: 0 y: 0 subimage: -1 Check the relative box 1) Add Event Draw

Repeat Repeat slides 26 through 35 for tank2 This time use the arrow keys for the different directions Then test it It should go forward/backward/turn/ bounce off walls and tanks.

Firing Shells Coming up… Players Scores Large Explosions Small Explosions Damage Health Bars Parent Shell Destructible Walls Reappear Creating shell objects Firing Events