| @@ -9,6 +9,7 @@ | |||||
| <script src="game.js"></script> | <script src="game.js"></script> | ||||
| <script src="stories/demo.js"></script> | <script src="stories/demo.js"></script> | ||||
| <script src="stories/fen-snack.js"></script> | <script src="stories/fen-snack.js"></script> | ||||
| <script src="stories/mass-vore.js"></script> | |||||
| <script src="world.js"></script> | <script src="world.js"></script> | ||||
| <script src="satiate.js"></script> | <script src="satiate.js"></script> | ||||
| <meta name="theme-color" content="#000000" /> | <meta name="theme-color" content="#000000" /> | ||||
| @@ -0,0 +1,68 @@ | |||||
| (() => { | |||||
| function devour(state, count) { | |||||
| state.player.stats.stomach.value += 100; | |||||
| } | |||||
| stories.push({ | |||||
| id: "mass-vore", | |||||
| name: "Mass Vore", | |||||
| tags: [ | |||||
| "Player Predator", | |||||
| "Macro/Micro", | |||||
| "Digestion" | |||||
| ], | |||||
| sounds: [ | |||||
| ], | |||||
| preload: [ | |||||
| ], | |||||
| intro: { | |||||
| start: "city", | |||||
| setup: state => { | |||||
| state.player.stats.stomach = { | |||||
| name: "Stomach", | |||||
| type: "meter", | |||||
| value: 0, | |||||
| min: 0, | |||||
| max: 10000, | |||||
| color: "rgb(200,20,100)" | |||||
| }; | |||||
| }, | |||||
| intro: state => { | |||||
| print(["Munch time"]); | |||||
| } | |||||
| }, | |||||
| world: { | |||||
| "city": { | |||||
| id: "", | |||||
| name: "", | |||||
| desc: "", | |||||
| move: (room, state) => { | |||||
| }, | |||||
| enter: (room, state) => { | |||||
| }, | |||||
| exit: (room, state) => { | |||||
| }, | |||||
| hooks: [ | |||||
| ], | |||||
| actions: [ | |||||
| { | |||||
| name: "Eat", | |||||
| desc: "Munch!", | |||||
| execute: (room, state) => { | |||||
| print(["Munch!"]); | |||||
| devour(state, 100); | |||||
| } | |||||
| } | |||||
| ], | |||||
| exits: { | |||||
| } | |||||
| } | |||||
| } | |||||
| }); | |||||
| })(); | |||||