Marcela Adiao IT201-018 Project 3
Feature 1: House is built in front of player on key press (B)
Input: B key press
Process: If house is built already, moves house to in front of player. If the house is not yet built, creates house in front of player and sets it to active.
Output: Displays house in front of player
Feature 2: Displays pig walking animation on key press (I, J, K, L)
Input: I, J, K, L key press
Process: Sets walking variable to true until buttons are no longer pressed
Output: Displays pig walking animation. Then idle pig animation is displayed.
Feature 3: Displays and stops pig sleeping napping on key press (N,W)
Input: N, W Key Press
Process: Sets sleeping variable to true on N key press. Sets sleeping variable to false on W key press.
Output: Pig napping animation and sleeping pig is displayed. Then idle pig animation is displayed.
Feature 4: Grow vegetables on key press(G)
Input: G key press
Process: Transforms the scale of all planted vegetables by 1.5x
Output: Displays larger planted vegetables.
Feature 5:Change walking speed of pig
Input: Left drag on slider
Process: Changes walking speed of pig
Output: Pig moves at new walking speed