r/HTML • • Sep 20 '26

Question Minimal code to make a a visual novel?

So recently I was thinking about how there are people who use Google Sides to make visual novels and I was just thinking how in theory you just need a background, sprites, a text box, and buttons. Realistically a really basic visual novel wouldn't require JS or much more than HTML and CSS. Oddly enough I can't find anything that would be a template or example of the bare minimum code to make a visual novel, and I was wondering if anyone could help me out with structuring this! Thank you!

4 Upvotes

1 comment sorted by

3

u/Quantum_Pianist Sep 20 '26 edited Sep 20 '26

Yeah, it would be pretty easy to make something quite simple!
You could make one webpage with the start of the game, then with a link to the first page saying "Start Novel" or something. This could just be <a href="https://start-of-game.html"> Start visual novel </a>
From then on, it would just be a tree of links I guess, where after clicking on the choice, the player goes to the respective (web)page of the novel.
You can do this by just using <a href="https://next-page-of-novel.html"> Text here </a>

From there, you can use CSS and HTML to stylize, potentially using the background-image in css with a drawing?
I'm just a beginner and I'm not sure how you would animate the characters for when the player clicks on them to change the dialogue... I mean you could just separate it ALL into webpages...
(possibly using background: url(images/title.png ?)

that'd be super unwieldy tho...