I've used GIMP as a game level editor this way. Draw your level, save it as PPM, and parse it into tiles in your game. The file is dead easy to parse. For a "real game" you might want to use Tiled or another actual map editor, but for little fun things this is light and Unixy and reliable.