Replies: 1 comment 1 reply
-
Hey, welcome! text-engine should play well with most other libraries you might want to use. I personally don't want this library to get too opinionated about where and how it's used, so rather than adding Electron, audio implementation, etc. to this engine my recommendation would be to create a new repo for your game and pull text-engine, Electron, etc. into that. Or alternatively, you could create your own repo for an opinionated text adventure stack that includes all that stuff and make it available to others for their games. I think that would be great! And I'd be happy to help if you have questions about that approach. If you're looking for a good HTML audio solution, I would recommend Howler.js. That will give you the ability to play audio files like wav, ogg, mp3, webm, etc. (if that's the vibe you're going for). There are a couple of approaches you can take with the fonts. The easiest thing to do would be to import a Google Font. You can see an example of this in this project's index.html file:
You can search the Google Fonts website for a font you like, and it will generate code like the above which you can use in your game. You will need to update the CSS to use your font. Take a look at styles/modern.css for an example of this. If you don't want to use a Google Font, you can also just put a font file in the fonts directory and import that in your CSS. Look at styles/retro.css for an example of that. Best of luck! |
Beta Was this translation helpful? Give feedback.
-
Hi. So, I love the potential of this engine and I got questions and maybe ideas.
First, the ideas
Anyhow, I might potentially use this anyway.
I do have questions about fonts and CSS: how do I implement a font into the games with the stylesheets? Would I have to make a new CSS file from scratch and go from there.
Thanks.
Chelsea, aka Cheez26
Beta Was this translation helpful? Give feedback.
All reactions