osb 0.3.0

A fast, fully-fledged, scalable and secure implementation of the .osb storyboard file format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use osb::{Layer, Module, Sprite, Storyboard};

fn module() -> Module {
    let mut module = Module::new(Layer::Background);

    let mut sprite = Sprite::new("res/sprite.png");
    sprite.move_((0, 320, 240));
    module.push(sprite);

    module
}

fn main() -> std::io::Result<()> {
    let mut sb = Storyboard::new();
    sb.push(module());
    sb.print()
}