Skip to content

Instantly share code, notes, and snippets.

@pauldub
Created September 8, 2014 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pauldub/f59f13c442dec69b9fad to your computer and use it in GitHub Desktop.
Save pauldub/f59f13c442dec69b9fad to your computer and use it in GitHub Desktop.
@map = Dungeon::Map.build do
tiles = layer :tiles, 'maps/test_map.bmp', {
# Hmm, colors are weird the 1st is supposed to be 170 170 170
[43690, 43690, 43690] => Dungeon::StoneFloor,
[11308, 11308, 11308] => Dungeon::StoneWall,
[24929, 24929, 24929] => Dungeon::StoneWallV
}
tiles.set :solid, [Dungeon::StoneWall, Dungeon::StoneWallV]
tiles.set :floor, [Dungeon::StoneFloor]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment