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!
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
.
You might want to look at my fidgit library, that manages what you need for the GUI (text areas, scrolling areas, text entry).
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?
Loading...