Thursday, November 7, 2013

Homework 14: State

Above is the state transition diagram I foresee for the diary-viewer. The player will press a button which will bring up a special inventory page where they can see the diary pages collected in the game so far. These pages include information on puzzles and plot which is relevant to the game. 

The diary viewer will start in the closed state, showing the first page or the front of some notebook where the diary pages are kept. Each press of the 'x' key will turn the page of the book. Each press of the 'z' key will turn to the most recently viewed page. The diagram will expand to a fixed amount as soon as we know how many diary pages there will be in total. For now you can see the diagram pattern continues until the last page is displayed.


The above state diagram is for the doors in our game. Part of the game includes unlocking doors to get to different parts of the level. This diagram technically includes 2 start states because there may be doors that are unlocked initially. This diagram is for locked doors specifically if we go by the start state. The player will have an inventory of keys collected throughout the game and the player pressing the action button near a locked door will decrement his inventory by 1 and put the door in an animated state of open or closed depending on the proximity of the player. If the player pressed the action button while the door is in the unlocked/open state then the player will enter the door and come a different door somewhere else in the level.


No comments:

Post a Comment