How the completed files work:
(To try out any of the following fly-throughs, make sure click once inside the one you want to try before pressing the keys.)
Wait until after adding inheritance and polymorphism tomorrow to turn in the files.
File #1:
Write code to create an array. Then, randomly draw an item from the array, and trace out the item's index and content. No visuals needed on stage.
File #2:
LEFT, RIGHT, UP, DOWN arrow keys to move around. Spacebar to fly up.
Pressing more than one key smultaneously works, i.e. you can press the UP and Spacebar to fly forward.
Extra Effort #1:
Make the "tree" an animation. In this example, the little stick figure on the top of the mountain is animated.
Extra Effort #2:
Hitting a key (say, SHIFT) to give you a boost forward.
Extra Effort #3:
More than one graphic, randomly selected upon generation.
Note: The example shown below use animated graphic, but this particular extra credit does not require animated graphic.
The key is having more than one graphic and randomly selected.
(Hint: Think the hairstyle lab: how one hair movieclip can have multiple possibilities and how you control which possibility to show.)