| Problem Set 2h | |||||||||||||||||||||||||||
Due date: 9/20 @ 11:59pm
Honors-section homework
HtDP Problems6.3.2, 6.4.2, 6.5.2Cowabunga!In many parts of the world, UFOs have been abducting cows. This should not surprise you, as you are a UFO pilot who has been sent on just such a mission. As you have probably been warned, however, the base of your UFO is made of a special alloy that cannot be allowed to come in contact with the ground. Your task, therefore, is to land your UFO atop a cow without crashing on Earth... which, as you may have heard, can turn you into a participant in certain "experiments". The goal of this problem set is to practice designing data representations using structures and functions for processing such forms of data. How the game works: A cow is placed at an initial position on the bottom of the screen. The cow moves left at a fixed speed until hitting the left side of the screen at which point it changes direction and moves to the right until hitting the right side, and so on. A UFO is placed at an initial position at the top of the screen. The UFO moves downward at a fixed rate. The UFO can be moved left/right by pressing the left/right arrow keys. The game is over when the UFO hits the ground or the cow. The game should indicate in some way whether the game was won (UFO hits cow) or lost (UFO hits ground). Cows and UFOs
Animation system
| ||||||||||||||||||||||||||||
| last updated on Mon Sep 5 23:22:07 EDT 2011 | generated with Racket |