Created
April 27, 2017 20:09
-
-
Save fresh5447/1b1fa3ab278fc1bbfe838b4ee8341aad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // different types of scenes | |
| // choose path | |
| // game over scene | |
| // battle scene | |
| // Game { who the user is} | |
| // World | |
| - title | |
| - scense (this will be a lookup by id to Scene) | |
| // Scene | |
| - number | |
| - type | |
| - choices (this will be a lookup by id to choice) | |
| // Choice | |
| - text: | |
| - nextScene: | |
| // Monster | |
| - title | |
| - img | |
| var game = { | |
| world: { | |
| [ | |
| { title: "Castle", | |
| scenes: [ | |
| { firstScene: true, | |
| type: "choose-path", | |
| description: "You enter the foreast blah blah", | |
| choices: { | |
| choice: { text: "Take the starirs" jumpToScence: 121 }, | |
| choice: { text: "Take the ladder" jumpToScence: 434 }, | |
| choice: { text: "Take the elevator" jumpToScence: 124 }, | |
| } | |
| }, | |
| { number: 1, | |
| type: "battle-scene", | |
| description: "You have to battle this monster", | |
| monster: { title: "Joe Camel" }, | |
| choices: { | |
| choice: { text: "Throw stars" correct: false, nextScene: 232 }, | |
| choice: { text: "run" correct: false, nextScene: 232 }, | |
| choice: { text: "use mercy" jumpToScence: true, nextScene: 232 }, | |
| } | |
| }, | |
| { number: 2, | |
| type: "ending-scene", | |
| description: "Congratulations you won!" | |
| }, | |
| { number: 3, | |
| type: "ending-scene", | |
| description: "Congratulations you won!" | |
| }, | |
| { number: 4, | |
| type: "ending-scene", | |
| description: "You lose... LOSER" | |
| }, | |
| ] | |
| }, | |
| { title: "Forest" }, | |
| ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment