gosu-tiled
Tiled map loader for Gosu game development library.
How to use it?
First, download Tiled and create yourself a map.

Then export it as JSON and use with Gosu like this:
require 'gosu'
require 'gosu_tiled'
class GameWindow < Gosu::Window
def initialize
super(800, 600, false)
@map = Gosu::Tiled.load_json(self, 'path/to/map.json')
@x = @y = 0
end
def update
@factor = 3
@x -= @factor if (Gosu::KbLeft)
@x += @factor if (Gosu::KbRight)
@y -= @factor if (Gosu::KbUp)
@y += @factor if (Gosu::KbDown)
end
def draw
@map.draw(@x, @y)
end
end
GameWindow.new.show
Run it and enjoy your game map:

See full example code.
Contributing
- Read CONTRIBUTING.md
- Fork it ( https://github.com/spajus/gosu-tiled/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request