Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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 ...

0
votes
1answer
20 views

Render stop working after chenge in .each loop

The error occurs in Map class responsible for drawing all the tiles to the screen. It was working fine, so long i did not change the conversion of reading map data ...
1
vote
0answers
36 views

Automating the process of creating a steam lobby (for dota) and inviting users to it

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 ...
1
vote
0answers
29 views

Why does my implementation of “is 2D point inside 2D polygon” have slightly different results on either side of the same axis?

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 ...
1
vote
1answer
115 views

Is Ruby's garbage collector still as big of a problem to game developement?

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'...
0
votes
1answer
168 views

How can i remove the margins in Window_Base?

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 ...
7
votes
2answers
1k views

How to design a multi-step game menu system?

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 ...
0
votes
1answer
578 views

Collision detection in ruby

I'm making a simple pong game in ruby. I did the collision detection this way: ...
0
votes
1answer
84 views

From where does the game engines add location of an object?

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 ...
1
vote
1answer
4k views

How can I copy/move a file from a folder to another with RGSS?

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 ...
0
votes
1answer
101 views

How can I get the width and height of a picture?

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 ...
1
vote
2answers
318 views

How can I fix my sprite being rotated 90 degrees more than toward the mouse?

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): ...
5
votes
0answers
273 views

LibGDX controllers: how to fix crashes in JRuby? [closed]

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 ...
2
votes
2answers
405 views

Finding tileX and tileY based on x and y (and vice versa) in isometric 2D view

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 ...
0
votes
2answers
135 views

How to cancel out simultaneous collisions in libGosu?

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 ...
5
votes
1answer
564 views

Create extra bullets, offset according to angle of spaceship? [duplicate]

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. ...
1
vote
1answer
168 views

How do I use warble to package libgdx and ruby?

My ruby code is as follows ...
9
votes
2answers
254 views

When should I represent points and sizes as structures?

As part of my simple Ruby 2D game development framework, my game objects have position (x and y values) and size (width and height). ...
0
votes
1answer
4k views

3D Graphics Engine for Ruby on Rails [closed]

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 ...
2
votes
1answer
618 views

Ruby Vs. C# - Better for Game Programming [closed]

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 ...
1
vote
3answers
1k views

Is it possible to make/translate a 3d engine to ruby on rails? [closed]

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. ...
1
vote
0answers
295 views

Moving while doing loop animation in RPGMaker

I made a custom class to display character portrait in RPGMaker XP Here is the class : ...
2
votes
1answer
895 views

multi-dimension array problem in RGSS (RPG Maker XP)

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 ...
2
votes
0answers
285 views

Ruby/SDL vs. RUDL [closed]

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 ...
2
votes
1answer
1k views

Teaching game development with Ruby [closed]

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 ...
3
votes
2answers
415 views

How can I improve this architecture? [closed]

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....
4
votes
1answer
219 views

What's the best way to track game phases?

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 ...
0
votes
2answers
506 views

Railgun Ruby - is there a documentation?

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 ...
3
votes
5answers
771 views

Porting Ruby/NCruses Rogue-Like to .NET and FlatRedBall

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 ...
0
votes
1answer
2k views

Ruby: implementing alpha-beta pruning for tic-tac-toe

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 ...
32
votes
9answers
51k views

Is ruby a suitable language for game development? [closed]

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 ...