GithubHelp home page GithubHelp logo

janchou / piston Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pistondevelopers/piston

0.0 2.0 0.0 5.01 MB

A user friendly game engine written in Rust

Home Page: http://www.piston.rs

License: MIT License

Rust 100.00%

piston's Introduction

Piston Build Status

A user friendly game engine written in Rust

Maintainers: @bvssvni

Examples

List of features

List of games made with Piston

Piston online docs

How to contribute

Back-ends
glfw_window
glutin_window
sdl2_window

Start new project with Piston

Use one of the examples as guide.

Almost all projects written in Rust use the Cargo package manager.

  1. Install Cargo
  2. Open the Terminal window and type:
cargo new --vcs git --bin "mygame"

This will create a new folder "mygame" that contains a Cargo.toml and a folder src. Inside the src folder where you put the source code. For binaries, the default entry file is src/main.rs and for libraries src/lib.rs.

When you type cargo run it will print "Hello, world!".

The Cargo.toml file is where you put the library dependencies.

TIP: Copy links from /r/rust_gamedev/wiki/index.

For example, to use the SDL2 back-end, add the following to Cargo.toml:

[dependencies.pistoncore-sdl2_window]

git = "https://github.com/pistondevelopers/sdl2_window"

Then add extern crate sdl2_window; to the main.rs file.

  • To compile, use cargo build
  • To run, use cargo run
  • To generate docs, use cargo doc

You will find more documentation about Cargo here.

How to build Piston

  1. Install Cargo
  2. Open up the Terminal window and type:
git clone https://github.com/PistonDevelopers/piston
cd piston
cargo build

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:

  • Graphics, 2D and 3D
  • Idiomatic Rust game design
  • Interactive applications
  • AI programming
  • Animation
  • Sound and music
  • Network

Dependency graph

dependencies

piston's People

Contributors

bvssvni avatar coeuvre avatar gmorenz avatar bfops avatar tyoverby avatar potpourri avatar leonkunert avatar mitchmindtree avatar mkcp avatar indiv0 avatar angrylawyer avatar reem avatar gaudecker avatar ccgn avatar eklavya avatar simcop2387 avatar tbillington avatar palango avatar murilocadanus avatar imbaczek avatar enplotz avatar lucidd avatar gchp avatar christiandh avatar wolenber avatar abonander avatar apointos avatar aochagavia avatar

Watchers

James Cloos avatar JanChou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.