TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ray, a Ruby game library

98 点作者 mberube将近 14 年前

8 条评论

qbleep将近 14 年前
This looks nice. I'm always excited to see higher level languages being used for scripting games. Lua is awesome at what it does but I've never really liked the syntax and lack of real objects. Building objects on top of Lua tables has always felt like such a hack to me personally.<p>The one thing that always concerns me with Ruby engines, however, is distributing the un-obfuscated ruby files with a game. In a single player game, with no online leader-boards or other concerns of cheating it's fine. But in a game where someone might be tempted to cheat this just makes it too easy. I know obfuscating / compiling code isn't very strong security against cheating but it's a huge step up from distributing source files ready to be edited.<p>Engines like Love2D (maybe other Lua based engines too, I haven't tried) allow you to compile your lua scripts and distribute the compiled versions.<p>With Ruby I guess the options would be to make a Java game engine with JRuby then you're just distributing JVM bytecode. Or maybe building a native engine in c (like this one) but including Rubinius to run compiled Ruby code. Rubinius has a blog post suggesting that this should be possible (<a href="http://rubini.us/2011/03/17/running-ruby-with-no-ruby/" rel="nofollow">http://rubini.us/2011/03/17/running-ruby-with-no-ruby/</a>)<p>I'd love to see a game engine on Ruby with code obfuscation built in.
评论 #2774364 未加载
评论 #2774379 未加载
shubber将近 14 年前
What I don't see there is collisions. Without a fast collision tool, it's hard to do whole classes of games anything like efficiently. It's a little disappointing that, having written a renderer adapter with native code, there isn't collisions as well.
评论 #2774003 未加载
评论 #2774741 未加载
gabebw将近 14 年前
This looks pretty easy to use, and powerful too (3D?!). I'm going to try this out right now.
freedrull将近 14 年前
What's the speed like? Looks like its built on top of some opengl C code, so I imagine its alright.
评论 #2774002 未加载
gabebw将近 14 年前
Is it possible to detect absolute position of a polygon? It looks like polygon.pos gives position relative to where it was created (and therefore polygon.pos.{x, y, height} are sort of broken).
stevefink将近 14 年前
Would be incredible if a PyGame type community can be built, for the Rubyists out there, around this tool. Kudos to this initiative!
评论 #2773671 未加载
jergason将近 14 年前
Has anyone compared this to Rubygame (<a href="http://rubygame.org/" rel="nofollow">http://rubygame.org/</a>)?
评论 #2774049 未加载
评论 #2773969 未加载
DanielRibeiro将近 14 年前
Would be great if worked with Ruboto on Android.