import { reify_dialogue } from "./dialogue.tsx"; import { debug_render } from "./html.ts"; import { Component } from "./jsx/jsx-runtime.ts"; const Option: Component = ({ n }, children) => ( <> {`[${n}]`}{" "} {...children} ); const WaterRitual: Component = () => ( [begin water ritual; 1 dram of{" "} water] ); const End: Component = () => [End]; const Name: Component = ({ color }, children) => (
{...children}
); const Speech: Component = ( { name, name_color, portrait = <> }, children ) => (
{portrait}
{name} a snazzy horizontal rule with three central spikes, taken from caves of qud
{...children}
); const Website: Component = () => website; const Eggbug: Component = ({ emotion }, children) => ( } > {...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
, ], ]); debug_render(
{dialogue}
);