Crate pixel_engine

Source
Expand description

A pixel base game engine

Re-exports§

pub extern crate futures;

Modules§

decals
A Gpu-located spite
graphics
inputs
User Input module
traits
A collection of traits used to draw things
vector2

Structs§

Color
Represent a Color in a RGBA format
Engine
Bone of the Engine, join everything;
EngineWrapper
A Wrapper around an Engine
Sprite
Represent a Sprite

Enums§

PixelMode
The Drawing Mode used

Traits§

Game
This is the core of the Game ran by the Engine

Functions§

launch
Takes a future and run it in the context of the engine This is usefull when targeting wasm32 because we can’t use the futures’ block_on method and we need to use javascript’s promise type
start
Utility function that manage the engine, create the game instance and runs it This will also work on WebAssembly