Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Text based game
- - By caffo Date 2014-06-30 00:14
Hi, I've been working on a text based game for a while (something like a single player MUD) and would love to port it from the console to a graphical window were I can use simple graphics and a nice medieval typeface. I tried to do it using shoes.rb, but the current code is too old to be used with bundler, so I was thinking about using gosu instead. Would you guys recommend it? Basically I want to make a console like interface that reacts to user input.

Thanks!
Parent - By jlnr (dev) Date 2014-06-30 08:59
I think it'd work just fine, especially if you are going to add more "juice" as time progresses - things bouncing around, tweening etc.

Working with text can be a little tricky though - you should understand the difference between Gosu::Font and Image#from_text. Also, Gosu has half-assed support for &custom_entities; in text for which you can define an image as well as pseudo-HTML like <b>bold</b> and <i>italic</i>, however these can be pretty slow if used with Gosu::Font.
Parent - By Spooner Date 2014-07-08 23:57
You might want to look at my fidgit library, that manages what you need for the GUI (text areas, scrolling areas, text entry).
Parent - By LCurtis Date 2014-12-07 20:13
hi. I realise this is old but I just wondered how you got on with it? I have a couple of text based games that Ive written in Ruby and I would love to add just some simple images. Ive started playing with gosu a little bit, but Im not quite sure yet how to "make a console like interface that reacts to user input". Did you manage to do it?
Up Topic Gosu / Gosu Exchange / Text based game

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill