elma-lgr 0.2.0

Library for reading Elasto Mania LGR files.
Documentation
  • Coverage
  • 100%
    26 out of 26 items documented1 out of 10 items with examples
  • Size
  • Source code size: 85.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.56 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kryptan

Crate for parsing ElastoMania LGR files.

LGR files contain PCX images.

Example usage:

use elma_lgr::Lgr;

let lgr = Lgr::load_from_file("lgr/example.lgr", false, false).unwrap();
println!("There are {} images in this LGR file", lgr.images.len());
for (name, image) in lgr.images {
    println!("{}, width = {}, height = {}", name, image.width, image.height);
}