pixel_engine
A reproduction of the oldPixelGameEngine(by OneLoneCoder) written in rust This crate is split between 3 crates:
pixel_engine_backend
This is provide wrapper around wgpu. It handles the drawing of decals and the main screen
pixel_engine_draw
This crate provide Traits to handle the Drawing. You only need to implement one trait (The SmartDrawing trait) and the other trait are just supertrait, so you have them for free
pixel_engine
This is the core of the projects, It is the main library, aimed to be used by the user. This provide the Engine struct
How to use
There are plenty of examples in the examples
folder.
You only need to run cargo run --bin=<NAME>
, or go to https://maix.me to get a list of example code.
extern crate pixel_engine as px;
use *;
This is the stripped-down code of the line
example.
There are some examples that aren't really useful (like the input.rs
). They are here to make sure I don't break stuff.