jamkit 0.2.1

A small game development library.
docs.rs failed to build jamkit-0.2.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: jamkit-0.3.1

A small game development library.

let mut display = jamkit::Graphics::init("test", 640, 480);
let test_texture = jamkit::Texture::load(&display, "examples/test.png");

let mut x = 0;

'main: loop {
    for event in display.poll_events() {
        match event {
            jamkit::Event::Closed => break 'main,
            jamkit::Event::KeyboardInput(state, _) =>
                if state.is_pressed() { x += 5; },
            _ => ()
        }
    }

    let mut frame = jamkit::Frame::start(&display);
    frame.draw(&test_texture, None, [0, 0, 200, 200]);
    frame.draw(&test_texture, Some([50, 50, 150, 150]), [x, 250, x + 100, 350]);
    frame.finish();
}

Contributing

When creating a pull request, make sure you merge into the develop branch. The master branch mirrors the latest crates.io release.