1 / 14

Videogame Design

Videogame Design. Washington Irving Middle School Citizen Schools Fall ‘06. Circle of Evaluation Cedrick and Yar. Values and Types Yar and Evan. Numbers Strings Booleans Images. The Design Recipe Kassandra and Artehanna. State the Problem Define the Data Make the Contract

Télécharger la présentation

Videogame Design

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. Videogame Design Washington Irving Middle School Citizen Schools Fall ‘06

  2. Circle of EvaluationCedrick and Yar

  3. Values and TypesYar and Evan • Numbers • Strings • Booleans • Images

  4. The Design Recipe Kassandra and Artehanna • State the Problem • Define the Data • Make the Contract • Give Examples • Take Inventory • Code • Test

  5. State the Problem A rocket takes off at a speed of 7 meters per second. Write a function rocket-height that takes the time as input and calculates the height.

  6. Data Definition Time is a Number

  7. Contract ; rocket-height : Number -> Number

  8. Examples (rocket-height 13) should be 91

  9. Take Inventory ; rocket-height : Number -> Number (define (rocket-height time) …)

  10. Code ; rocket-height : Number -> Number (define (rocket-height time) (* 7 time)

  11. Test the Examples If it worked you did it right! If not….salted!

  12. ConditionalsCelin (define (move x) (cond [(= x 1) “scissors”] [(= x 2) “rock”] [(= x 3) “paper”]))

  13. The GameMarduche • Three “characters” in the game • The Target (flies around) • The Missile (hits the target) • The Gun (moves and fires the missile) • Each character has a function that draws it, and one that updates it • The distance formula tells if the missile has hit the target

  14. The Game target Missile Gun

More Related