Questions tagged [libgosu]

Gosu (also known as libgosu) is a 2D game development library for the Ruby and C++ programming languages.

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

Collision detection in ruby

I'm making a simple pong game in ruby. I did the collision detection this way: ...
Mohammad's user avatar
  • 103
2 votes
2 answers
517 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 ...
ekharrtoll's user avatar
0 votes
2 answers
148 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 ...
mpl's user avatar
  • 53
5 votes
1 answer
664 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. ...
mpl's user avatar
  • 53