7 releases
Uses old Rust 2015
0.1.2 | Sep 1, 2016 |
---|---|
0.1.1 | Mar 8, 2016 |
0.0.4 | Oct 25, 2015 |
0.0.2 | Aug 12, 2015 |
0.0.1 | Nov 20, 2014 |
#2078 in Game dev
Used in 2 crates
1MB
3K
SLoC
Lux
A 2d game engine built with a focus on user-frendliness and speed.
Lux is a 2d game engine for Rust programmers that makes deploying as
simple as cargo build
. The entire Lux dependency stack can be built
using Cargo, so never worry about dependency hell ever again!
Windowing
Lux can create native windows on OSX, Windows, and Linux (iOS, Android, and web browsers coming soon). All mouse and keyboard input is captured and is exposed to the game developer in two ways:
- A iterator of event objects (
window.events()
) - Input device queries (
window.mos_pos()
,window.is_key_pressed('A')
)
2d Graphics
Lux offers an intuitive and safe graphics API that makes developing 2d games completely painless! The API can be used in an entirely stateless maner, and resources are automatically cleaned up when no longer in use. We use OpenGL and OpenGL ES under the hood, so most platforms are supported already or are being planned.
Game Loop (optional)
Simply by implementing the update(..)
and render(..)
methods on the
Game
trait, you'll be given a robust game loop with a fixed-time
update and lag compensation.
Credits
- Lux design and implementation by Ty Overby
- Dependencies Glutin and Glium by Tomaka
- Dependencies Image and Freetype by the Piston Developers
Dependencies
~13MB
~96K SLoC