Not logged inGosu Forums
Forum back to Help Search Register Login
Up Topic Gosu / Gosu Showcase / Tile based map editor
- - By allcaps Date 2013-07-08 03:53
I know there are a ton of these, as I'm sure everyone makes one for themselves when they work on their token tile-based game, but...well...I made a tile based level editor.  I'm actually kind of proud of it in the short term, because it's doing what I need it to very nicely.  I tried to leave comments, and there's some documentation on it's github page, along with a Youtube demo that I need to re-record because the audio is too quiet.

I don't have a Windows machine, so I don't know if it works there or not, but it works on OS X.  I do have an issue loading it on Linux, though, it throws an unknown error on the line I load a gosu::image on, I assume either because the image is bad somehow, or because of the way I formatted the file path.  Any pointers?
Parent - - By jlnr (dev) Date 2013-07-08 09:05
One thing that is different on Linux vs Mac/Windows is that filenames are typically case sensitive. Maybe it's as simple as that? :)
Parent - - By Spooner Date 2013-07-09 13:01
Path seems OK, but I'd load from:
File.expand_path("tex/tiles.png, File.dirname(__FILE__))
rather than

(otherwise you are making assumptions about the working directory)
Parent - - By allcaps Date 2013-07-09 19:01
Does it run for you at all?  Normally I wouldn't ask someone else like this but I really can't nail down this problem.  It runs on Windows as well I've been able to test, but I get UnknownError on Linux.  Looks like in Gosu::Image's initialize/new.
Parent - By Spooner Date 2013-07-09 19:36
Nope. I fixed it and to save you fixing it in the same way, I sent a pull request on github.

Just use PNG & OGG files for everything. Everything else is ropey at best ;)
Up Topic Gosu / Gosu Showcase / Tile based map editor

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill