import { Main, render_and_copy } from "./common.tsx"; import { reify_dialogue } from "./dialogue.tsx"; import { ComponentChildren, toChildArray, JSX } from "preact"; const Option = ({ n, children, }: { n: number; children: ComponentChildren; }) => ( <> {`[${n}]`}{" "} {...toChildArray(children)} ); const WaterRitual = () => ( [begin water ritual; 1 dram of{" "} water] ); const End = () => [End]; const Name = ({ color, children, }: { color: string; children: ComponentChildren; }) => (
{...toChildArray(children)}
); const Speech = ({ name, name_color, children, portrait = <>, }: { name: string; name_color: string; children: ComponentChildren; portrait: JSX.Element; }) => (
{portrait}
{name} a snazzy horizontal rule with three central spikes, taken from caves of qud
{...toChildArray(children)}
); const Website = () => website; const Eggbug = ({ emotion, children, }: { emotion?: "angry"; children: ComponentChildren; }) => ( } > {...toChildArray(children)} ); const dialogue = reify_dialogue([ hi hey hi what whati
what is up
, [ , [ oh cool that's neat what stuff like what stuff are you talking about , [ , [ i really don't know how would i know what ur talking about lol , [ , [ okay like, okay yeah idon't know still , [ , [ what, [ , [ oh mehbark is like making the player like click through a bunch for comedic effect ok , [ , [ it's taking them a ton of effort to make this deep tree though lol like they're typing it in and thinking hm maybe i could abstract this a bit but they know that will be more trouble than it's worth , [ , aslo it's 5 in the morning for the— oh it's done
i still have no stuff ok
game over i guess (all of these paths lead to game over (except one (this was definitely planned and not decided as this was being written)))
, ], ], ], ], ], ], ], ], ], ], ], ], ], [ , [ That my friend, is a long, sad story. There was a time when people cared to hear it, but I fear that time has passed. , [ , you are such a butt you suck your so annoying LEAVE{" "} GAME OVER GAME OVER GAME OVER , ], [ , [ okay, get comfortable, something to eat, something to drink, heck, maybe even rent a{" "} portable bathroom {" "} to keep nearby. this is a LONG story , [ , it was to hard to get the pixelts to work , ], ], ], ], ], [ , [ heck yes i love power words have at it ( idoubt it will work no offense) , [ , you win, ], ], ], [ , [
You don't have any water because this is a .
also eggbug probably uses like eggbug juice or something
, [ , how wouldi know lol ask like a cohost maker lol , ], ], ], [ , uh what
ok
i guess
every dialogue tree eventually ends anyways so this is just like to look more coqqy iguess
, ], ]); render_and_copy(
{dialogue}
);