Street Racing Game.

Slides:



Advertisements
Similar presentations
Sprite-visual object (actor on the stage) Scripts- Tells actors (sprites) what to do.
Advertisements

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,
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.
Flappy bird guide for Scratch
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.
CATCH SCRATCH! Programming from Scratch. Remember Scratch?
KeyListener and Keyboard Events Another type of listener listens for keyboard entry – the KeyListener which generates KeyEvents –to implement KeyListener,
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
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
Shooters in GameMaker J Parker.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
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.
Game Maker Tutorial.
Marble Racer. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
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.
LO: We’re learning to outline a program using Pseudo Code.
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.
Choose Sprite. Add collision event for object and add score action. Set your score to plus 100 and check relative.
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.
Basic Animation What you need to try is in the yellow boxes! Save this presentation in your BTA30A.
Objective of the lesson Use Blockly to make a dice for Snakes and Ladders All of you will: – Make an image which displays when you press a button Most.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
Index Background Costumes Making object walk smoothly Controlling an object with the keyboard Control an object with the mouse Changing costume when hit.
MOM! Phineas and Ferb are … Aims:
Broadcasting (Adding a new level)
Games Programming in Scratch
Game Engines By James Tedder.
International Computer Driving Licence Syllabus version 5.0
Lines, Arrows, & WordArt Experiment with the line, arrow, and WordArt buttons on the Drawing toolbar.
The winner is the first player to reach 20 points
Tables A table is an excellent way to organize information.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Competitive Multiplayer Game
The How To Do’s in the PowerPoint Program
Intro to GML.
Lesson 1 Introduction to Scratch Basic blocks
16. Invaders.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Tank Game Part 2 of 6.
Game Loop Update & Draw.
The winner is the first player to reach 20 points
Introduction to PowerPoint
May 14, 2015 Ferris Wheel 3-D transition effect and pictures (Basic)
ICT Gaming Lesson 3.
Transparency & magic pixel
Tank Game Int 10 Unit 3 – Game Maker.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Using Animation and Multimedia
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Basic Animation What you need to try is in the yellow boxes!
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Creating a Simple Game in Scratch
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Scratch Racing.
CSC 221: Introduction to Programming Fall 2018
A drag and drop exercise can be created using Word quite easily using tables, text boxes and ensuring the document is saved properly.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Catch Game Cards Catch Game Cards Make a Card Go to the Top Fall Down
Presentation transcript:

Street Racing Game

Create the opening screen

相信大家在之前的練習中已學會了如何加入圖片、聲音及背景等素材。 由於時間關係,我們直接開啟我們範本。 \\schoolpublic\…..

Create the room and set the background image.

Set the vertical speed to 3, therefore the background will move down slowly at a speed 3.

Create the controller_start to control the object in the room0.

Set the probability to generate a car_down is 1/50

Similarly, set the probability to generate a car_up is 1/100

Left click the mouse to add the controller_start in room0. You can preview the game now!!!

Add an event to start the game by pressing any key

Set the transition style as you want.

Set the background music at the “Game Start” Event Add event  other  Game Start Play sound!!!

Under the “Game Start” Set the “New score” = 0

New lives = 3

Add some instruction for the user Add Event  Draw

Select the Font and alignment

Select the Colour

Add the Text and the position as you want

Similarly, add the second row of text.

SET the Object: car_down

Reset the variable “dead” to “false”

As there are four kind of car, we set the game to generate the car randomly among the four.

Use the “Jump to start” the set a car created in lane 3 Set the vertical speed is 6

Set the car created at lane 3 with a chance 1/2

Preview

Start a block

Similarly, Set the Use the “Jump to start” the set a car created in lane 2 Set the vertical speed is 5

Set the car created at lane 3 with a chance 1/3 Similarly, Set the Use the “Jump to start” the set a car created in lane 2 Set the vertical speed is 5

When the car go outside the room

If the car y position of the car > room_height

Destroy the instance

Overlap

Check object Overlap

car_up x = 44+300 speed = 2 x = 44+240 speed = 1 x = 44+180 Similarly, Set the car_up

Complete the opening room End of Lesson 1

Lesson 2 Create the Room 1

Create the required “Object”

Create Object: controller It is used to control the generation of car_up, car_down, police car, petrol, score and lives.

Set the variable name and value as global.petrol and 1000.

Set the Alarm0 as 300.

Alarm0 is used to generate the petrol in the game. Add Event  Alarm  Alarm0

Main1  Create  Object  Gas X  40+random(320) Y  -40

Main2  Create  Set Alarm  Number of Steps : 300+score/100

Add Event  Step  Score  new score  1 (relative)

Then Set the step as below: car_down car_up Police car

When there is no more lives : Show the Highscore table 2. Restart the Game

Draw the score caption : Lives (Cars left) 3. Petrol

Draw the petrol left box

480+max(0,min(100,global.petrol/10))

Create car_racing

Set the variable “dead “ as “false”

Set the vertical speed as 0

What happen after “Crash” Racing car

Similarly for the car_up

Create the Room 1

What happen after “Crash” car_down, car_up and police car

Control the racing car to move Left

global.petrol > 0 && x >32 && not dead

Left: global.petrol > 0 && x >32 && not dead Right: global.petrol > 0 && x < 360 && not dead Up: global.petrol > 0 && not dead Down: global.petrol > 0 && not dead Left: x = -2, y=0 Right: x = 2, y=0 Up: x = 0, y=-3 Down: x = 0, y=3

End of Lesson 2

When the racing car get the petrol

Create petrol

Set the speed of petrol as the background = 3

If the y position of the petrol as the height, destroy the instance.

Go back to the setting of the racing_car.

Create the police car

1. Sound = sirens, loop =true 2. Variable “dead” = false 3. Vertical speed = -1.5 4. X  car_racing.x Y  room_height 5. Check object ”racing car” 6. Destroy the instance 7. Check object ”racing car” 8. Destroy the instance 9. Check object ”racing car” 10. Destroy the instance

If dead = true 2. Exit 3. If “car_racing.x<x && place_empty(x-8,y)” 4. Jump to left (-2) relatively If “car_racing.x>x && place_empty(x+8,y)” 6. Jump to right (2) relatively

Similar to car_down and racing_car. Vertical speed =3 Similar to car_down and racing_car.

y<0 || y > room_height+20

Completed!!

End of the Game

Additional tasks Add hearts to increase the lives Add coins to increase the score Add gun to shoot the other cars