simple

Crates.iosimple
lib.rssimple
version0.3.0
sourcesrc
created_at2015-02-01 01:26:44.105486
updated_at2019-01-27 20:15:03.147748
descriptionThe simplest graphics library, inspired by LOVE2D
homepage
repositoryhttps://github.com/alexandercampbell/simple
max_upload_size
id1322
size97,176
Alexander Campbell (alexandercampbell)

documentation

README

simple

Build Status

Simple is supposed to be a completely obvious and intuitive game library for Rust. Simple was inspired by LOVE2D. I wrote Simple because I liked the ease-of-use that LOVE2D provided but I wanted the advantage of a typed compiler (Rust).

Simple is a layer built on top of the sdl2 package. You will need some development C libraries. On MacOS, you can use Brew to install them with brew install sdl2. On Linux, look for a libsdl2-dev package in your package manager.

Hello World

let mut app = simple::Window::new("hello world", 1920, 1080);

app.set_color(255, 0, 255, 255);
app.draw_rect(simple::Rect{
    x: 100,
    y: 110,
    w: 120,
    h: 130,
});

while app.next_frame() {}

Examples

Check out the examples/ directory for some mini-programs that use Simple.

cargo run --example font

Maintainer

Alexander Campbell alexanderhcampbell@gmail.com

Commit count: 158

cargo fmt