1 / 11

Pop Quiz

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?

nova
Download Presentation

Pop Quiz

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Pop Quiz Programming Concepts and GML

  2. Events • List four different types of events and describe how you would use them. • > • > • > • >

  3. Graphics • What are sprites and how do they differ from backgrounds? List at least two points.

  4. 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

  5. Variables • Why do we use variables when programming games?

  6. 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

  7. Functions What is the programming term for: Inputs? Outputs? Research what Programming Syntax means. ____________________________________ ____________________________________

  8. 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? ________________________

  9. 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?

  10. 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

  11. Coordinate System • The window size is 500 x 400 • Estimate the coordinate (x,y) of the: Heart ( , ) Player ( , ) Monster ( , ) Gun ( , ) Green Mushroom ( , ) Exit Sign ( , )

More Related