Piston

A modular game engine written in Rust
Alternatives To Piston
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Godot74,8754210 hours ago51July 28, 202310,456mitC++
Godot Engine – Multi-platform 2D and 3D game engine
Libgdx21,996494220a day ago44July 02, 2023297apache-2.0Java
Desktop/Android/HTML5/iOS Java game development framework
3d Game Shaders For Beginners15,637
3 months ago19bsd-3-clauseC++
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Magictools11,958
a month ago4mit
:video_game: :pencil: A list of Game Development resources to make magic happen.
Hazel10,288
9 days ago118apache-2.0C++
Hazel Engine
Engine8,65421013 hours ago156August 01, 2023539mitJavaScript
Fast and lightweight JavaScript game engine built on WebGL and glTF
Gdevelop5,171
10 hours ago396otherJavaScript
:video_game: Open-source, cross-platform game engine designed to be used by everyone.
Veloren4,514
a day ago1gpl-3.0Rust
An open world, open source voxel RPG inspired by Dwarf Fortress and Cube World. This repository is a mirror. Please submit all PRs and issues on our GitLab page.
Magnum4,500
11 hours ago86otherC++
Lightweight and modular C++11 graphics middleware for games and data visualization
Urho3d4,413
8 months ago72mitC++
Game engine
Alternatives To Piston
Select To Compare


Alternative Project Comparisons
Readme

Piston

Build Status Crates.io Crates.io

A modular game engine written in Rust

Maintainers of Piston core libraries: @bvssvni

Dive into the world of Piston

Start new project with Piston

You should know how to build "hello world" with Rust, see http://www.rust-lang.org/.

Drawing a red rectangle

Add piston_window to your Cargo.toml, for example:

[dependencies]
piston_window = "*"

In "src/main.rs", type the following code:

extern crate piston_window;

use piston_window::*;

fn main() {
    let mut window: PistonWindow =
        WindowSettings::new("Hello Piston!", [640, 480])
        .exit_on_esc(true).build().unwrap();
    while let Some(event) = window.next() {
        window.draw_2d(&event, |context, graphics, _device| {
            clear([1.0; 4], graphics);
            rectangle([1.0, 0.0, 0.0, 1.0], // red
                      [0.0, 0.0, 100.0, 100.0],
                      context.transform,
                      graphics);
        });
    }
}

Use cargo run to start the application. It should clear the screen in white color and draw a red rectangle.

red-rectangle

Goals

The Piston project is a large collaboration among many developers. There are libraries for 2D, 3D, event programming, AI, image processing etc. By sharing the maintenance, we get more time to build new stuff.

Piston is as much a community project as it is a collection of libraries. Writing and maintaining code is expensive, and by sharing this cost we reach our goals faster. We believe that seeking personal goals and ambitions, while helping each other, results in higher quality.

  • Our main goal is to free up time for maintainers, and the people involved
  • ... such that we can create new amazing stuff and reach our personal goals
  • ... by making more people use Rust for game development and become engaged in open source

In addition, we do research or plan to in the following areas:

Dependency graph

dependencies

Popular Video Game Projects
Popular 3d Graphics Projects
Popular Games Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Video Game
Rust
3d Graphics
2d Graphics
Game Engine