ogmo-3

Ogmo Editor 3 project and level loader
https://github.com/Ogmo-Editor-3

To install, run:

haxelib install ogmo-3 1.0.2 

See using Haxelib in Haxelib documentation for more information.

README.md

ogmo-3-lib

A Haxe parser for Project and Level files generated by Ogmo Editor 3.

An example of how the library can be used has been included in the sample directory, using Heaps for rendering. Run either hl.hxml or js.hxml to produce a Hashlink or Javascript build of the sample.

Getting Started

First, install the Library from haxelib.

haxelib install ogmo-3

Then in your project, simply use Project.create() and Level.create() to parse any .ogmo Projects or .json Levels!

// Get the Project and Level files you'd like to parse (as Strings)
var project_text = sys.io.File.getContent('assets/project.ogmo');
var level_text = sys.io.File.getContent('assets/levels/level_1.json');

// Create the Project and Level data from the Text Files
var project = Project.create(project_text);
var level = Level.create(level_text);

trace(project);
trace(level);
Contributors
austineast
Version
1.0.2
Published
5 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub