2012-03-07 39 views
0

我想在Ruby中做一個遊戲,但是我遇到了一個問題。我在Ruby中處於中級水平。我只知道通過命令行運行Ruby,但爲了讓我想到的與矮人堡壘類似的遊戲需要更多的東西。如何顯示一個紅寶石遊戲的內容?

我需要能夠使用箭頭鍵並進入選擇的東西。我還需要2幀顯示,一個用於地圖,另一個用於遊戲內信息。

我該如何去做這件事?我是否需要使用GUI或其他功能?如果它不能成爲桌面應用程序,那很好。我對如何在瀏覽器中做到這一點有一個模糊的想法。

+0

2D遊戲引擎這基本上是,可以是一個問題通過Google搜索回答。我看到你的品牌嶄新,但請閱讀有關在此提出的問題類型的常見問題解答。 – 2012-03-07 08:16:40

回答

0

退房的古藪寶石,讓你從www.libgosu.org

gem install gosu 
# complete with examples, precompiled for Windows & OS X 
gem install texplay 
# pixel-based drawing on Gosu images, by banister 
gem install chingu 
# a library that adds more game logic, by ippa 
gem install ruby-opengl 
# the standard Ruby OpenGL gem works fine with Gosu to add 3D effects 
# (See the included example, or this fine bundle of tutorials by tjbladez. Also note this thread if you have problems installing on Windows) 
gem install chipmunk 
# a popular physics library with an integration example in the wiki 
gem install rmagick 
# can be used as a more powerful but harder-to-distribute alternative to TexPlay, example included in Gosu