pop quiz n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Pop Quiz PowerPoint Presentation
Download Presentation
Pop Quiz

Loading in 2 Seconds...

play fullscreen
1 / 11

Pop Quiz - PowerPoint PPT Presentation


  • 106 Views
  • Uploaded on

Pop Quiz. Programming Concepts and GML. Events. List four different types of events and describe how you would use them. > > > >. Graphics. What are sprites and how do they differ from backgrounds? List at least two points. Variables. Global.keys = 6 SET or INCREMENT?

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Pop Quiz' - nova


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
pop quiz

Pop Quiz

Programming Concepts and GML

events
Events
  • List four different types of events and describe how you would use them.
    • >
    • >
    • >
    • >
graphics
Graphics
  • What are sprites and how do they differ from backgrounds? List at least two points.
variables
Variables

Global.keys = 6

SET or INCREMENT?

Global or Local?

Describe what this piece of code is doing

keys = keys + 6

SET of INCREMENT?

Global or Local?

Describe what this piece of code is doing

variables1
Variables
  • Why do we use variables when programming games?
match the data to datatype using arrows there will be more than one data to a datatype
Match the data to datatype using arrows. There will be more than one data to a datatype

DATA

0.6

simon

(03) 97985456

TRUE

FALSE

120

120.098787390

DATATYPE

Integer

String

Floating Point

Boolean

functions
Functions

What is the programming term for:

Inputs?

Outputs?

Research what Programming Syntax means.

____________________________________

____________________________________

functions1
Functions

Consider the motion function in gamemaker

Motion Free(direction, speed)

This a legitimate Function Name (True/False)

Why or Why not?

___________________________

How many inputs does this function take? _______

If the direction = 270which way would the object move?

Does the object have any outputs?

________________________

using functions
Using Functions

Let us assume you would like an object to move right at speed 6 when you press down the right arrow.

How would you code this action in GML?

if else in gml
IF ELSE in GML
  • Write an if else statement in GML that handles the following:
    • Checks if you have less than 10 diamonds. If you have less then 10, add one to how much you already have. If you have 10 or more reset back to zero.
    • Variable to operate on can be global.diamonds
coordinate system
Coordinate System
  • The window size is 500 x 400
  • Estimate the coordinate (x,y) of the:

Heart ( , )

Player ( , )

Monster ( , )

Gun ( , )

Green Mushroom ( , )

Exit Sign ( , )