Crates.io | ogmo3 |
lib.rs | ogmo3 |
version | 0.1.1 |
source | src |
created_at | 2020-10-07 17:05:28.383444 |
updated_at | 2021-08-02 16:49:20.251911 |
description | A Rust crate for reading and writing Ogmo Editor 3 projects and levels |
homepage | |
repository | https://github.com/17cupsofcoffee/ogmo3 |
max_upload_size | |
id | 297039 |
size | 127,164 |
ogmo3
is a Rust crate for reading and writing Ogmo Editor 3 projects and levels.
It is modelled loosely off the API for Haxe's ogmo-3-lib
(for now, at least), and aims to provide reasonably type-safe access to the entirety of Ogmo Editor 3.3.0's JSON schema.
[dependencies]
ogmo3 = "0.1"
use ogmo3::{Level, Project};
fn main() {
let project = Project::from_file("./example.ogmo").unwrap();
let level = Level::from_file("./levels/level.json").unwrap();
}
For a full example of how to interpret the data in an Ogmo project, see the sample code.
This project is licensed under the terms of the MIT License.