In-Class Lab Work: Alice Programming
Practice with key elements: changing the state of the world
- Functions (176)
- Parameters, Input and Output (179)
- Conditionals (If/Else) (180)
- Booleans (185)
- Do in order and Do together (182)
- Random Numbers (196)
In-Class Lab Work: Alice Mini-Game One: Escape the Forest!
In fairy tales, lots of characters–Hansel and Gretel, Snow White, and Little Red Riding Hood to name a few–find themselves lost in the forest, and it’s always a challenge to get safely home. Build a game where the player navigates a fairy tale character back to safety. You’ll need a character for the player to control, obstacles or hazards in the environment, and a safe space for the player to strive for. When the player reaches the home, they should receive some notification of their success.
To accomplish this, you will need:
- to build an environment for the game to take place in
- to set up a character to respond to the player’s keyboard navigation
- to check for collisions–if the character runs into a tree or a villain, something should happen
- to check for the character’s distance from the house to confirm victory
- to set up a text object that shows a victory message only if the player succeeds
Optional extensions (try at least one for full credit)
- have a way for the villain to win
- display a message when the player loses
- open or close the game with a cut scene explaining the story
- add a companion or adviser character
You will have time to start the game in class on November 8th, and time on November 15th to finish. Your game should be turned in (handed in on a cd or flash drive) at the end of class on November 15th.
Remember, your individual essay and team Game Design Document are due on November 10th!
posted by Anastasia Salter
Filed under: Class Updates