Ruby library/gem for game graphics?

2019-04-04 11:48发布

I am creating a simple Blackjack game in Ruby, and I have finished all the game logic stuff (finally!) and currently have it running through the command line. It is all working, so now I need a library or gem that will make the whole graphics side of things easier. Any ideas? Thanks.

3条回答
Melony?
2楼-- · 2019-04-04 12:07

Maybe you could try to use Gosu which is a 2D game development library for the Ruby and C++ programming languages, available for Mac OS X, Windows and Linux.

Available as a gem. More information here

You can also watch a fun presentation I saw in Barcelona during Euruko (ruby conference). Available Here

查看更多
【Aperson】
3楼-- · 2019-04-04 12:16

Shoes would be a good candidate, it's very lightweight, cross platform & fun to use.

It has a nice ruby API which you can use to draw shapes and use native GUI widgets.

查看更多
虎瘦雄心在
4楼-- · 2019-04-04 12:23

As well as Gosu, mentioned elsewhere, there's Rubygame which also appears to be regularly updated.

No opinion on either, suggested as an alternative for comparison.

UPDATE: New(-ish?) kid on the block: Ray. Fairly graphically-oriented, it would appear.

查看更多
登录 后发表回答