Skip to content

Lightweight scrolling dialogue box, for use in web ui or a browser-based game.

License

Notifications You must be signed in to change notification settings

noahsamoa/dialogueBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Dialogue Component with Dark/Light Mode Toggle

This project is a modular dialogue box, featuring a poem by George Eliot. It contains a dynamic text generation effect, a toggle switch for dark and light modes for a personalized reading experience, a few fonts to choose the aesthetic, and a CSS animation for the duration of the text generation.

Features

  • Text generation effect
  • Dark/Light mode toggle for improved readability
  • Font selection dropdown

Usage

  1. Clone or download the repository.
  2. Open the index.html file in a web browser.
  3. Interact with the dialogue box, and enjoy.
  4. Toggle between dark and light modes using the "Toggle Mode" button.
  5. Customize the font by selecting options from the dropdown.

Customization

  • Poem Content: Modify the excerptPoem and restPoem variables in the script.js to showcase different poems or texts.

  • COMING SOON: Pass a textblock and have it automatically excerpt it out, based on a variable set for how many lines/words/sentences/etc in length you want the excerpt to be.

  • Styles: Adjust the styles in the styles.css to match your preferences.

  • Extend Functionality: Explore and extend the JavaScript functions in script.js to add more interactive features or effects.

Credits

  • George Eliot - Author of the featured poem
  • Fonts: Handjet, IM Fell DW Pica, Old Standard TT, Sixtyfour - Provided by Google Fonts

License

This project is licensed under the MIT License.

Feel free to contribute, share, and customize as per your needs!

About

Lightweight scrolling dialogue box, for use in web ui or a browser-based game.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published