Rubygame is a portable Ruby library for video games, build on SDL.
Questions tagged [rubygame]
18 questions
69
votes
17 answers
"Could not find a valid gem in any repository" (rubygame and others)
I've been trying to install this 'rubygame' gem for some time, but whenever I use the command
gem install rubygame
it will give an error:
ERROR: Could not find a valid gem 'rubygame' (>= 0) in any repository
ERROR: While executing gem ...…

Reiswindy
- 789
- 1
- 6
- 7
6
votes
4 answers
Why rubygame and gosu are slower than pure opengl?
I'm looking for a good graphic framework to make a nice 2D game in Ruby. I made 3 very simple test to see which graphic Ruby framework is faster between Gosu and Rubygame. The test creates 1000 instances of a "Square" class that move and draw a red…

XPac27
- 301
- 2
- 8
2
votes
1 answer
Rubygame not working: 'load_library': Could not load SDL
I tried installing the current Rubygame gem using
sudo gem install rubygame
While the installation worked normally, when I tried to require the gem, Ruby raised the following…

Eden Landau
- 553
- 4
- 12
1
vote
1 answer
How is the best way to setup board with fields for simple game in RoR and Jquery?
I would like to write simple on-line game in Ruby.
For start only with single player mode.
I did some research about writing games in ruby and i found this two links:
https://github.com/tylerc/rog - simple game with server based on…

tomekfranek
- 6,852
- 8
- 45
- 80
1
vote
1 answer
Rubygame::TTF - The difference between a string's width and the width of all it's characters
I'm trying to use Rubygame to determine each of a string's character widths as a percentage of the string's total width...
require "rubygems"
require "rubygame"
include Rubygame
TTF.setup
$font = TTF.new "/Library/Fonts/Times New Roman.ttf",…

Davide Bruzzone
- 13
- 2
1
vote
0 answers
Rubygame on rails : Support of audio formats(mp3, ogg) while using Rubygame gem on Rails
I have tried support of midi, mp3, ogg, aiff and wav files on ruby interpreter after installing rubygame and it works fine. I Used the Rubygame::Music class and methods in it for the same.
But when i use and try it on the rails framework only midi…

nishantmishra
- 76
- 2
- 5
1
vote
3 answers
Simple 'or' isn't working as expected
I'm running into an interesting issue with the relatively simple assignment below. Each of the parenthesized chunks in the beginning evaluate to nil, leaving Rubygame::Surface.new as the value that @image ought to be assigned to. Unfortunately on…

wersimmon
- 2,809
- 3
- 22
- 35
1
vote
0 answers
I need advice on how to do collision in a clone of Pong
Hi I am building a clone pong program with ruby and rubygame. My ain problem at the moment is the collision of the leftside. The collision happends backwards. The right works perfectly fine. I need help. Can anyone fix this?
Heres my code
require…

Robbie
- 45
- 4
1
vote
2 answers
Rubygame on OS X shebang problem
I'm playing around with Rubygame. I installed it with the Mac Pack, and now I have the rsdl executable. rsdl game.rb works fine, but when I chmod +x the rb file, add the shebang to rsdl (tried direct path and /usr/bin/env rsdl) and try to execute it…

mk12
- 25,873
- 32
- 98
- 137
1
vote
2 answers
can not install rubygame successfully
my os is OSX 10.8.2. i have followed the instructions from rubygame wiki, and
everything is ok during my installation. However, when I require the rubygame in my ruby script, something happend:
irb(main):001:0> require 'rubygame'
…

Brian
- 30,156
- 15
- 86
- 87
1
vote
1 answer
how to detect collison between a circle and a block?
Possible Duplicate:
Circle-Rectangle collision detection (intersection)
How to determine the collision of a circle with a rectangle?
I want to detect the intersection or collision of a circle with an generaly positioned block.
The block is…

Pablo Jomer
- 9,870
- 11
- 54
- 102
0
votes
0 answers
Reworking Lvl-Up - gain skill points to spend
Alright, so in rpg maker vx ace I am trying to get lvl-ups to work in this way;
every third Lvl-Up you will gain a skill point, which you can spend on a skill that you are interested in.
I'm new to this (currently in my second week) and have…
0
votes
2 answers
Ruby - Player vs Player for Rock, Paper & Scissor Game
Apology if I am repeating what others have previously asked. I have gone through other RSP games questions on stackoverflow. Most are about player vs computer. May be I need to read more theories to understand better and modify the code to suit for…
user11836193
0
votes
2 answers
Loading an image from a subdirectory in a gem
I used bundler to create a new gem, and I'm playing with rubygame. So far, it's going OK, except I can't get images on the Surface because I can't figure out what the path is to my images directory. I know it's sad, but I'm sorta used to Rails…

James Dunn
- 192
- 15
0
votes
1 answer
Rubygame + OSX hello world crashes at startup
I have this crash-at-startup problem with rubygame and OSX.
Anybody knows what might be causing it, and how to fix it?
Versions: OSX 10.5.7, ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9], rubygame 2.5.3 installed from a rubygem, most…

taw
- 18,110
- 15
- 57
- 76