I'm writing an importer to load levels from OGMO Editor into love2D and I decided I should also probably ask the community what sort of features people would want that I might've not anticipated. What I have right now is as simple as this:
Code: Select all
ogmo = require "ogmo" function love.load() local map_texture = love.graphics.newImage(PATH_TO_IMAGE) map = ogmo.load(PATH_TO_JSON, map_texture) -- or map = ogmo.load(PATH_TO_JSON, PATH_TO_IMAGE) end function love.draw() map:draw() end
Please let me know if you'd like to use OGMO with love2d and if there are any features you'd like on an importer. I'm basically working on this for myself, but I'd love to make it available on GitHub!