Skip to main content

Questions tagged [ruby]

Ruby is an open-source dynamic OO interpreted language created by Yukihiro Matsumoto (Matz) in the 1990s that combines the good bits from Perl, Smalltalk and Lisp. It supports multiple programming paradigms. Ruby's primary purpose is to "help every programmer in the world to be productive, and to enjoy programming, and to be happy." - Matz. Ruby mindshare spiked in the next decade due to Ruby on Rails - a popular web application framework built on Ruby.

Filter by
Sorted by
Tagged with
1 vote
0 answers
85 views

I'm working on a Ruby on Rails web-application and I want to create lobbies and send invitations to users to join these lobbies. Simply, I want to achieve ...
Sikandar Tariq's user avatar
1 vote
0 answers
57 views

My 2D game is tile-based, 16 pixels per tile. Colliders are defined by an array of points which determine a polygon. With debugging enabled (as it is in the photos) those colliders are outlined with ...
taylorthurlow's user avatar
1 vote
1 answer
179 views

I am beginner wanting to make a game, and chose to learn Ruby ,since it seems easier to read than most languages. Reading up on Ruby, I find that Ruby could be used to make small-scale games, but it'...
Zero's user avatar
  • 13
0 votes
1 answer
590 views

So i am remaking Window_Status for my game where i have the character battler displayed in the background. bellow is the portion of the script which adds the ...
Memor-X's user avatar
  • 119
9 votes
2 answers
5k views

I am getting started with game programming. I am designing a game that starts by taking you through a series of menu screens. I am interested in learning how this is typically structured in ...
Andrew's user avatar
  • 243
0 votes
1 answer
1k views

I'm making a simple pong game in ruby. I did the collision detection this way: ...
Mohammad's user avatar
  • 103
0 votes
1 answer
119 views

I have started making my first game( a pong game )with ruby (Gosu). I'm trying to detect the collision of two images using their location by comparing the location of the object (a ball) to another ...
Player's user avatar
  • 3
1 vote
1 answer
5k views

I've been trying to do this but I can only find Ruby answers. I'm trying to move or copy a file from, say, Game Directory/Graphics/Pictures/file.png to ...
Gus's user avatar
  • 131
0 votes
1 answer
187 views

I'm trying to make a script on RPG Maker XP that needs the width and height of an image to do some calculations. I tried @picture.bitmap.widthand ...
Gus's user avatar
  • 131
1 vote
2 answers
602 views

I am trying to get a Sprite in LibGDX to look at the player's mouse. Here's the code I have (mind you, I am using JRuby): ...
Evan Walsh's user avatar
5 votes
0 answers
324 views

I'm using JRuby with LibGDX and it's been going quite swimmingly, save for a crash I experience every time I try to use the controllers extension. Here's a basic rundown: I've required all the ...
Evan Walsh's user avatar
2 votes
2 answers
573 views

I'm working on 2d Isometric game in ruby and gosu, although my problem is probably universal. My map is saved in 2d array: @map_tiles[layer][y][x] = tile_id Each ...
ekharrtoll's user avatar
0 votes
2 answers
174 views

I am working on an Asteroids remake. When the player's bullets hit a large meteor, it should break apart into 2 smaller meteors. This works when the player is only firing one bullet, but when the ...
eagleDog's user avatar
5 votes
1 answer
711 views

I am trying to create a weapons upgrade for my Spaceship, using libGosu and Chingu (in Ruby). This question is about how to deal with this issue specifically in Ruby, and more specifically in libGosu. ...
eagleDog's user avatar
1 vote
1 answer
212 views

My ruby code is as follows ...
benbot's user avatar
  • 196
9 votes
2 answers
321 views

As part of my simple Ruby 2D game development framework, my game objects have position (x and y values) and size (width and height). ...
Saturn's user avatar
  • 1,763
0 votes
1 answer
5k views

I've had a good few months of experience with Ruby on Rails, creating my own CMS system, a social network and even a VOIP enabled answering phone machine. I'm also an established 3D modeller, and what ...
Starkers's user avatar
  • 961
2 votes
1 answer
749 views

I have seen some games made in C#, such as using the XNA. I saw some games made in Ruby by using the RGSS1-3 API as well. I just can't decide on my own which would be easier to learn and apply for ...
Jenna's user avatar
  • 37
1 vote
3 answers
1k views

I am looking to make a 3D FPS that runs inside web browsers. I looked into using WebGL, but it didn't seem far enough along into development. I decided on using RoR because Ruby was a language I knew. ...
user20529's user avatar
1 vote
0 answers
366 views

I made a custom class to display character portrait in RPGMaker XP Here is the class : ...
AzDesign's user avatar
  • 151
2 votes
1 answer
1k views

This is my first day code script in RMXP. I read tutorials, ruby references, etc and I found myself stuck on a weird problem, here is the scenario: I made a custom script to display layered images ...
AzDesign's user avatar
  • 151
2 votes
0 answers
336 views

I'm interested in using Ruby for 2D games. I have to pick between Ruby/SDL and RUDL, both of which are Ruby SDL wrappers. Which is better? Better means "less bugs" and "more usable," although the ...
ashes999's user avatar
  • 11.3k
2 votes
1 answer
1k views

I want to teach game development to kids as part of a course (year-long) involving Ruby. Unfortunately it looks like the game development kits available in Ruby (even in the form of bindings) are ...
at.'s user avatar
  • 171
3 votes
2 answers
457 views

In a roguelike I'm developing in Ruby, I started with a traditional object hierarchy where all game logic relevant to creatures were contained in the Creature class....
Matheus Moreira's user avatar
4 votes
1 answer
240 views

I'm currently writing an IRC bot in Ruby to play some kind of strategy game (it doesn't matter which), but I'm hesitating between several solutions to implement a phases system the "best" way. The ...
Cydonia7's user avatar
  • 141
0 votes
2 answers
624 views

I finally found Railgun Ruby on the web and installed it. But I cannot find any documentations. Does anyone have played around with it? Does anyone still have a good documentation about it? I'd ...
Joern Akkermann's user avatar
3 votes
5 answers
889 views

I created an awesome rogue-like game in Ruby. For the GUI, I used NCurses. Since I'm using FlatRedBall as my engine of choice for Silverlight game development, I want to port this game over. What is ...
ashes999's user avatar
  • 11.3k
0 votes
1 answer
2k views

So, alpha-beta pruning seems to be the most efficient algorithm out there aside from hard coding (for tic tac toe). However, I'm having problems converting the algorithm from the C++ example given in ...
NullVoxPopuli's user avatar
34 votes
9 answers
60k views

I want to move into some game development, but the only language I know really well is Ruby. Most of what I have read seems to point towards lower level languages like C++ for game development, or ...
bennybdbc's user avatar
  • 537