a munch adventure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

651 lines
20 KiB

  1. stories.push({
  2. id: "fen-snack",
  3. info: {
  4. name: "Fen's Food",
  5. desc: "Struggle inside of a predatory crux until you're digested.",
  6. tags: [
  7. "prey",
  8. "fatal",
  9. "hard-digestion"
  10. ],
  11. },
  12. sounds: [
  13. "sfx/digested-test.ogg",
  14. "sfx/stomach-to-intestines.ogg",
  15. "sfx/intestines-to-stomach.ogg",
  16. "sfx/intestines-to-bowels.ogg",
  17. "sfx/bowels-to-intestines.ogg",
  18. "sfx/stomach-to-intestines-fail.ogg",
  19. "sfx/intestines-to-stomach-forced.ogg",
  20. "sfx/stomach-churn.ogg",
  21. "sfx/intestines-churn-stay.ogg",
  22. "sfx/bowels-churn-safe.ogg",
  23. "sfx/bowels-churn-danger.ogg",
  24. "loop/fen-stomach.ogg",
  25. "loop/fen-intestines.ogg",
  26. "loop/fen-bowels.ogg"
  27. ],
  28. preload: [
  29. "sfx/stomach-churn.ogg",
  30. "loop/fen-stomach.ogg"
  31. ],
  32. intro: {
  33. start: "stomach",
  34. setup: () => {
  35. state.info.time.value = 86400 - 60 * 25 - 25;
  36. state.player.stats.health = {name: "Health", type: "meter", value: 100, min: 0, max: 100, get color() {return "rgb(" + (155+this.value) + ",0,0)"}};
  37. state.player.stats.stamina = {name: "Stamina", type: "meter", value: 100, min: 0, max: 100, get color() {return "rgb(100," + (155+this.value) + ",0)"}};
  38. startTimer({
  39. id: "taunting",
  40. func: () => {
  41. printRandom([
  42. ["The crux strokes over his snarling gut, enjoying your dwindling squirms."],
  43. ["\"Enjoying yourself, meal?\"", "Your captor's oh-so-smug voice booms in your ears."]
  44. ])
  45. return 25000 + Math.random() * 10000;
  46. },
  47. delay: 5000,
  48. loop: true,
  49. classes: [
  50. "alive"
  51. ]
  52. });
  53. startTimer({
  54. id: "movement",
  55. func: () => {
  56. const pinned = state.player.flags.pinned;
  57. if (pinned) {
  58. print(["Fen rolls back over, releasing you from under his huge, heated bulk."]);
  59. state.player.flags.pinned = false;
  60. playSfx("sfx/intestines-churn-stay.ogg");
  61. return 30000 + Math.random() * 15000;
  62. } else {
  63. print(["Fen rolls onto his belly, crushing you under his heavy body. You can barely move!"]);
  64. state.player.flags.pinned = true;
  65. playSfx("sfx/stomach-to-intestines-fail.ogg");
  66. return 10000 + Math.random() * 10000;
  67. }
  68. },
  69. delay: 15000,
  70. loop: true,
  71. classes: [
  72. "alive"
  73. ]
  74. });
  75. startTimer({
  76. id: "digestion",
  77. func: () => {
  78. const location = state.player.location;
  79. let bonus = state.player.flags.submission ? 10 : 1;
  80. if (location.startsWith("stomach")) {
  81. changeStat("health", -1);
  82. }
  83. if (location.startsWith("intestines")) {
  84. changeStat("health", -0.75);
  85. }
  86. if (location.startsWith("bowels")) {
  87. changeStat("health", -0.5);
  88. }
  89. if (state.player.stats.health.value <= 0) {
  90. state.player.stats.health.value = 0;
  91. const start = 86400 - 60 * 25 - 25;
  92. const end = state.info.time.value;
  93. const time_survived = end - start;
  94. const minutes = Math.floor(time_survived / 60);
  95. const seconds = time_survived % 60;
  96. const minute_text = minutes + (minutes == 1 ? " minute" : " minutes");
  97. const second_text = seconds + (seconds == 1 ? " second" : " seconds");
  98. let time_text;
  99. if (minutes == 0)
  100. time_text = "You survived for " + second_text + ".";
  101. else
  102. time_text = "You survived for " + minute_text + " and " + second_text + ".";
  103. startTimer({
  104. id: "time-text",
  105. func: () => {
  106. print([time_text]);
  107. return true;
  108. },
  109. delay: 2000,
  110. loop: false,
  111. classes: [
  112. ]
  113. });
  114. if (location.startsWith("stomach")) {
  115. goToRoom("digested-stomach");
  116. }
  117. if (location.startsWith("intestines")) {
  118. goToRoom("digested-intestines");
  119. }
  120. if (location.startsWith("bowels")) {
  121. goToRoom("digested-bowels");
  122. }
  123. return false;
  124. }
  125. return 1000 / bonus;
  126. },
  127. delay: 1000,
  128. loop: true,
  129. classes: [
  130. "alive"
  131. ]
  132. });
  133. startTimer({
  134. id: "stamina-regen",
  135. func: () => {
  136. const location = state.player.location;
  137. let bonus = state.player.flags.submission ? -3 : 0;
  138. bonus += state.player.flags.pinned ? -0.5 : 0;
  139. if (location.startsWith("stomach")) {
  140. changeStat("stamina", 0.75 + bonus);
  141. }
  142. if (location.startsWith("intestines")) {
  143. changeStat("stamina", 1.25 + bonus);
  144. }
  145. if (location.startsWith("bowels")) {
  146. changeStat("stamina", -0.5 + bonus);
  147. }
  148. return true;
  149. },
  150. delay: 500,
  151. loop: true,
  152. classes: [
  153. "alive"
  154. ]
  155. });
  156. startTimer({
  157. id: "clock",
  158. func: () => {
  159. state.info.time.value += 1;
  160. state.info.time.value %= 86400;
  161. return true;
  162. },
  163. delay: 1000,
  164. loop: true,
  165. classes: [
  166. ]
  167. });
  168. },
  169. intro: () => {
  170. print(["Hot, slimy walls ripple and squeeze, the stomach of your captor stewing you in a churning bath of chyme and acid. The purple crux made a late-night meal out of you with ease. You've only been trapped under the Fen's pelt for a few minutes...but it doesn't seem like you'll make it until midnight."]);
  171. playSfx("sfx/stomach-churn.ogg");
  172. }
  173. },
  174. refresh: () => {
  175. setBackgroundColor(50 - state.player.stats.health.value/2, 0, 0)
  176. },
  177. world: {
  178. stomach: {
  179. id: "stomach",
  180. name: "Stomach",
  181. desc: "A hot, wet, steamy prison.",
  182. move: (room) => {
  183. print(["You slide into Fen's humid stomach."]);
  184. },
  185. enter: (room) => {
  186. playLoop("loop/fen-stomach.ogg");
  187. startTimer({
  188. id: "stomach-churns",
  189. func: () => {
  190. if (Math.random() > 0.6) {
  191. changeStat("stamina", -25);
  192. print(["The crux's stomach clenches around you, smothering you in the beast's slimy embrace."]);
  193. playSfx("sfx/stomach-churn.ogg");
  194. }
  195. return true;
  196. },
  197. delay: 10000,
  198. loop: true,
  199. classes: [
  200. "alive",
  201. "stomach"
  202. ]
  203. });
  204. },
  205. exit: (room) => {
  206. stopLoop("loop/fen-stomach.ogg");
  207. stopClassTimers("stomach");
  208. },
  209. hooks: [
  210. ],
  211. actions: [
  212. {
  213. name: "Rub",
  214. desc: "Knead on the muscular folds that surround your tasty little body",
  215. execute: (room) => {
  216. changeStat("stamina", -15);
  217. print(["You rub all over your prison's walls. Fen's stomach gurgles in response."]);
  218. }
  219. },
  220. {
  221. name: "Thrash",
  222. desc: "Kick and struggle",
  223. execute: (room) => {
  224. changeStat("health", -10);
  225. changeStat("stamina", -35);
  226. print(["Your thrash and kick and punch - and, for your insolence, you are rewarded with a crushing CLENCH. Fen's grinding guts smother and squeeze your softening body, nearly popping you like a grape."]);
  227. playSfx("sfx/stomach-churn.ogg");
  228. },
  229. show: [
  230. ],
  231. conditions: [
  232. ]
  233. },
  234. {
  235. name: "Submit",
  236. desc: "Let Fen digest you",
  237. execute: (room) => {
  238. state.player.flags.submission = true;
  239. print(["You slump back in the crux's stomach, allowing its powerful fluids to break you down..."]);
  240. },
  241. show: [
  242. (room) => {
  243. return !state.player.flags.submission;
  244. }
  245. ]
  246. }
  247. ],
  248. exits: {
  249. "down": {
  250. "target": "intestines",
  251. "desc": "Push yourself deeper into the crux",
  252. move: (room) => {
  253. print(["You manage to push yourself down through the valve at the base of the crux's fetid stomach."]);
  254. playSfx("sfx/stomach-to-intestines.ogg");
  255. },
  256. hooks: [
  257. (room, exit) => {
  258. let stamina = state.player.stats.stamina.value;
  259. let escape;
  260. if (Math.random() > stamina/100) {
  261. changeStat("stamina", -50);
  262. print(["Fen's stomach clenches and ripples, smothering your face in wet flesh and keeping you nice and trapped."]);
  263. playSfx("sfx/stomach-to-intestines-fail.ogg");
  264. escape = false;
  265. } else {
  266. changeStat("stamina", -25);
  267. escape = true;
  268. }
  269. return escape;
  270. }
  271. ],
  272. conditions: [
  273. (room) => {
  274. return !state.player.flags.submission;
  275. },
  276. (room) => {
  277. return !state.player.flags.pinned;
  278. }
  279. ]
  280. }
  281. },
  282. "data": {
  283. "stats": {
  284. }
  285. }
  286. },
  287. intestines: {
  288. id: "intestines",
  289. name: "Intestines",
  290. desc: "Labyrinthine guts, winding on and on...",
  291. move: (room) => {
  292. print(["Your squirming body glides into the crux's tight, snaking guts."]);
  293. },
  294. enter: (room) => {
  295. playLoop("loop/fen-intestines.ogg");
  296. startTimer({
  297. id: "intestines-churns",
  298. func: () => {
  299. if (Math.random() > 0.5) {
  300. if (state.player.stats.stamina.value > 50) {
  301. changeStat("stamina", -25);
  302. print(["Your prison's walls ripple and grind, shoving you against the valve leading to the crux's boiling stomach - but you manage to resist the powerful pull."]);
  303. playSfx("sfx/intestines-churn-stay.ogg");
  304. } else {
  305. print(["Too exhausted to resist, your slimy body is crammed into the crux's churning stomach by a powerful wave of peristalsis."]);
  306. playSfx("sfx/intestines-to-stomach-forced.ogg");
  307. goToRoom("stomach");
  308. }
  309. } else {
  310. changeStat("stamina", -25);
  311. print(["Overwhelming peristalsis grips your body and crams it into the beast's hot, life-sapping bowels."]);
  312. playSfx("sfx/intestines-to-stomach-forced.ogg");
  313. goToRoom("bowels");
  314. }
  315. return 10000 + Math.random() * 5000;
  316. },
  317. delay: 10000,
  318. loop: true,
  319. classes: [
  320. "alive",
  321. "intestines"
  322. ]
  323. });
  324. },
  325. exit: (room) => {
  326. stopLoop("loop/fen-intestines.ogg");
  327. stopClassTimers("intestines");
  328. },
  329. exits: {
  330. "up": {
  331. target: "stomach",
  332. desc: "Writhe back into Fen's roiling stomach",
  333. move: (room) => {
  334. print(["You push yourself back into the crux's fatal stomach."]);
  335. playSfx("sfx/intestines-to-stomach.ogg");
  336. },
  337. conditions: [
  338. (room) => {
  339. return !state.player.flags.submission;
  340. },
  341. (room) => {
  342. return !state.player.flags.pinned;
  343. }
  344. ]
  345. },
  346. "down": {
  347. target: "bowels",
  348. desc: "Push yourself even deeper into your predator's body",
  349. move: (room) => {
  350. print(["You wriggle into the beast's bowels."]);
  351. playSfx("sfx/intestines-to-bowels.ogg");
  352. },
  353. conditions: [
  354. (room) => {
  355. return !state.player.flags.submission;
  356. },
  357. (room) => {
  358. return !state.player.flags.pinned;
  359. }
  360. ]
  361. }
  362. },
  363. hooks: [
  364. ],
  365. actions: [
  366. {
  367. name: "Rub",
  368. desc: "Knead on the muscular folds that surround your tasty little body",
  369. execute: (room) => {
  370. changeStat("stamina", -20);
  371. print(["You rub all over your prison's walls. Fen's intestines quiver and clench in response."]);
  372. }
  373. },
  374. {
  375. name: "Submit",
  376. desc: "Let Fen digest you",
  377. execute: (room) => {
  378. state.player.flags.submission = true;
  379. print(["You go limp in the crux's intestines, letting the winding guts take you in..."]);
  380. },
  381. show: [
  382. (room) => {
  383. return !state.player.flags.submission;
  384. }
  385. ]
  386. }
  387. ],
  388. "data": {
  389. "stats": {
  390. }
  391. }
  392. },
  393. bowels: {
  394. id: "bowels",
  395. name: "Bowels",
  396. desc: "Cavernous bowels, rippling and squeezing over your bare skin",
  397. move: (room) => {
  398. print(["You enter the beast's humid bowels, taking shallow, stifled breaths of the musky air. The sauna-like atmosphere sucks the strength from your tired limbs."]);
  399. },
  400. enter: (room) => {
  401. playLoop("loop/fen-bowels.ogg");
  402. startTimer({
  403. id: "bowels-churns",
  404. func: () => {
  405. if (state.player.stats.stamina.value > 50) {
  406. changeStat("stamina", -25);
  407. print(["Fen's bowels clench and churn, grinding you into their musky walls."]);
  408. playSfx("sfx/bowels-churn-safe.ogg");
  409. } else {
  410. changeStat("stamina", -100);
  411. startTimer({
  412. id: "digestion",
  413. func: () => {
  414. let bonus = state.player.flags.submission ? 10 : 1;
  415. changeStat("health", -1);
  416. return 500 / bonus;
  417. },
  418. delay: 1000,
  419. loop: true,
  420. classes: [
  421. "alive",
  422. "bowels"
  423. ]
  424. });
  425. print(["Drained of stamina, you can do little to resist as Fen's bowels grind you away."]);
  426. playSfx("sfx/bowels-churn-danger.ogg");
  427. return false;
  428. }
  429. return true;
  430. },
  431. delay: 10000,
  432. loop: true,
  433. classes: [
  434. "alive",
  435. "bowels"
  436. ]
  437. });
  438. },
  439. exit: (room) => {
  440. stopLoop("loop/fen-bowels.ogg");
  441. stopClassTimers("bowels");
  442. },
  443. exits: {
  444. "up": {
  445. target: "intestines",
  446. desc: "Squirm up higher",
  447. move: (room) => {
  448. print(["You squirm out from Fen's bowels, working your way back into his cramped guts."]);
  449. playSfx("sfx/bowels-to-intestines.ogg");
  450. },
  451. conditions: [
  452. (room) => {
  453. return !state.player.flags.submission;
  454. },
  455. (room) => {
  456. return !state.player.flags.pinned;
  457. }
  458. ],
  459. hooks: [
  460. (room, exit) => {
  461. if (state.player.stats.stamina.value < 25) {
  462. print(["You're too tired to move..."]);
  463. playSfx("sfx/bowels-churn-safe.ogg");
  464. return false;
  465. }
  466. return true;
  467. }
  468. ]
  469. },
  470. "down": {
  471. "target": "freedom",
  472. "desc": "Try to squirm out of the beast",
  473. "show": [
  474. ],
  475. "conditions": [
  476. (room) => {
  477. return !state.player.flags.submission;
  478. },
  479. (room) => {
  480. return !state.player.flags.pinned;
  481. },
  482. (room) => {
  483. return state.player.stats.stamina.value > 25;
  484. }
  485. ],
  486. "hooks": [
  487. (room, exit) => {
  488. print(["You make a desperate bid for freedom, grasping at the walls of Fen's sweltering bowels and dragging yourself forward. The predator growls in pleasure...and, after humoring your squirms for a long minute, crushes you within an inch of your life with a swift, staggeringly-strong clench. Every inch of escape is erased in a heartbeat...as is any hope of ending the evening as anything other than a permanent contribution to the crux's body."]);
  489. changeStat("stamina", -100);
  490. return false;
  491. }
  492. ]
  493. },
  494. },
  495. hooks: [
  496. ],
  497. actions: [
  498. {
  499. name: "Rub",
  500. desc: "Knead on the muscular folds that surround your tasty little body",
  501. execute: (room) => {
  502. changeStat("stamina", -25);
  503. print(["You rub all over your prison's walls. Fen's bowels clench in on you as he rurrs with pleasure."]);
  504. }
  505. },
  506. {
  507. name: "Submit",
  508. desc: "Let Fen digest you",
  509. execute: (room) => {
  510. state.player.flags.submission = true;
  511. print(["You slump back in the crux's bowels, yielding to their immense pressure..."]);
  512. },
  513. show: [
  514. (room) => {
  515. return !state.player.flags.submission;
  516. }
  517. ]
  518. }
  519. ],
  520. "data": {
  521. "stats": {
  522. }
  523. }
  524. },
  525. "freedom": {
  526. "id": "freedom",
  527. "name": "Freedom",
  528. "desc": "A place you'll never reach!",
  529. "move": (room) => {
  530. },
  531. "enter": (room) => {
  532. },
  533. "exit": (room) => {
  534. },
  535. "actions": [
  536. ],
  537. "exits": {
  538. },
  539. "hooks": [
  540. ],
  541. "data": {
  542. "stats": {
  543. }
  544. }
  545. },
  546. "digested-stomach": {
  547. id: "digested-stomach",
  548. name: "Fen's Belly",
  549. desc: "You look good on him, at least~",
  550. enter: (room) => {
  551. playLoop("loop/fen-intestines.ogg");
  552. playSfx("sfx/digested-test.ogg");
  553. playSfx("sfx/bowels-churn-safe.ogg");
  554. stopClassTimers("alive");
  555. print(["You slump down in the acidic pit, curling up as it begins to churn you down to chyme. Fen's stomach snarls and bubbles for the next few minutes...and then you're gone~",newline,"Nothing's left but a bit of padding on your predator's gut..."]);
  556. },
  557. "data": {
  558. "stats": {
  559. }
  560. }
  561. },
  562. "digested-intestines": {
  563. id: "digested-intestines",
  564. name: "Fen's Belly",
  565. desc: "Just a little addition to the crux's belly - one that won't last for long.",
  566. enter: (room) => {
  567. playLoop("loop/fen-intestines.ogg");
  568. playSfx("sfx/digested-test.ogg");
  569. playSfx("sfx/bowels-churn-safe.ogg");
  570. stopClassTimers("alive");
  571. print(["Fen's intestines clench and squeeze, melting you down into slop and soaking you up like a sponge.",newline,"Nothing's left but a bit of padding on your predator's hips..."]);
  572. },
  573. "data": {
  574. "stats": {
  575. }
  576. }
  577. },
  578. "digested-bowels": {
  579. id: "digested-bowels",
  580. name: "Fen's Ass",
  581. desc: "A little extra heft on the predator's posterior.",
  582. enter: (room) => {
  583. playLoop("loop/fen-bowels.ogg");
  584. playSfx("sfx/digested-test.ogg");
  585. playSfx("sfx/bowels-churn-danger.ogg");
  586. stopClassTimers("alive");
  587. print(["A powerful ripple of muscle pins you in a vice-grip of flesh. Your exhausted form is molded like putty..and then, over the course of no more than seconds, Fen's bowels assimilate you. Numbness races through your body as you're absorbed like water into a sponge.",newline,"Nothing's left of you beyond some heft on his ass..."]);
  588. },
  589. "data": {
  590. "stats": {
  591. }
  592. }
  593. }
  594. }
  595. });