/
index.html
150 lines (129 loc) · 6.45 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
---
title : Piston Game Engine
categories : [piston]
---
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Piston - a modular open source game engine written in Rust</title>
<meta name="description" content="A user friendly game engine written in Rust">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Titillium+Web:400,600,600italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="./stylesheets/main.css">
<script src="./javascripts/vendor/modernizr-2.6.2.min.js"></script>
</head>
<body>
<nav class="navbar navbar-default piston-navbar" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle piston-navbar-toggle" data-toggle="collapse" data-target="#piston-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="#" class="navbar-brand piston-navbar-brand">Piston <small>A modular game engine written in Rust</small></a>
</div>
<div class="collapse navbar-collapse piston-navbar-inner" id="piston-navbar-collapse">
<ul class="nav navbar-nav navbar-right piston-navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="https://github.com/PistonDevelopers/Piston-Tutorials/tree/master/getting-started">Getting Started</a></li>
<li><a href="https://docs.piston.rs/">Documentation</a></li>
<li><a href="https://blog.piston.rs/">Blog</a></li>
<li><a href="https://github.com/PistonDevelopers/piston/blob/master/CONTRIBUTING.md">Contribute</a></li>
</ul>
</div>
</div>
</nav>
<div class="jumbotron piston-jumbotron">
<div class="container">
<div class="col-md-6 col-md-push-6 piston-heading-text">
<h3>Piston - a modular open source game engine</h3>
<p>The bricks are out of the box! Take a bite of some nice modular libraries for the real world, such as games and interactive applications, written for performance, ergonomics and cross platform development.</p>
<p>Piston was started in 2014 by Sven Nilsen to test back-end agnostic design of 2D graphics in Rust. The project ignited several ambitious projects across the Rust ecosystem. The PistonDevelopers organization is a place where everyone who wants to contribute have write access. This makes it easier to share maintenance, integrate projects and pursue personal goals. Today the Piston project is developing 2D, 3D, immediate UI, image formats and processing, Visual Studio plugin for Rust, Minecraft clone client/server, sprite animation, AI, and meta parsing for domain specific languages and text formats. We share research and are part of a greater community. You can be a part of it.</p>
<p>
<a href="https://github.com/PistonDevelopers/Piston-Tutorials/tree/master/getting-started" class="btn btn-success piston-btn-primary">Getting started</a> <a href="https://github.com/PistonDevelopers/piston" class="btn btn-success"><i class="fa fa-github"></i> Source code</a>
</p>
</div>
<div class="col-md-6 col-md-pull-6 piston-heading-example">
<div class="panel panel-default">
<div class="panel-heading">Quick example</div>
<div class="panel-body">
<pre><code class="rust">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(e) = window.next() {
window.draw_2d(&e, |c, g, _device| {
clear([1.0; 4], g);
rectangle([1.0, 0.0, 0.0, 1.0], // red
[0.0, 0.0, 100.0, 100.0],
c.transform, g);
});
}
}</code></pre>
</div>
</div>
<a href="https://github.com/pistondevelopers/piston-examples" class="pull-right">More examples »</a>
</div>
</div>
</div>
<div class="container">
<div class="col-md-6 col-md-push-6 piston-games">
<h3>Built with Piston</h3>
<ul>
<li>
<a href="https://github.com/Coeuvre/rust-2048" target="_blank">
<img src="./images/rust-2048.png" alt="Rust 2048">
<span class="piston-caption">Rust 2048</span>
</a>
</li>
<li>
<a href="https://github.com/PistonDevelopers/hematite" target="_blank">
<img src="./images/hematite.jpg" alt="Hematite">
<span class="piston-caption">Hematite</span>
</a>
</li>
<li>
<a href="https://github.com/bfops/playform" target="_blank">
<img src="./images/playform.png" alt="Playform">
<span class="piston-caption">Playform</span>
</a>
</li>
<li>
<a href="https://github.com/dpc/rustyhex" target="_blank">
<img src="./images/rustyhex.png" alt="Rustyhex">
<span class="piston-caption">Rustyhex</span>
</a>
</li>
</ul>
<a href="https://github.com/PistonDevelopers/piston/wiki/Games-Made-With-Piston" class="pull-right">More games »</a>
</div>
<div class="col-md-6 col-md-pull-6 piston-blog-posts">
<h3>Latest blog posts</h3>
<ul id="blog-posts">
Loading..
</ul>
<a href="https://blog.piston.rs/" class="piston-more pull-right">More posts »</a>
</div>
</div>
<div class="col-md-12 piston-footer">
<div class="container">
Published with <a href="https://pages.github.com/">Github Pages</a>
</div>
</div>
<script src="./javascripts/vendor/jquery-1.10.2.min.js"></script>
<script src="./javascripts/vendor/bootstrap.min.js"></script>
<script src="./javascripts/vendor/highlight.pack.js"></script>
<script src="./javascripts/vendor/strftime.min.js"></script>
<script src="./javascripts/main.js"></script>
</body>
</html>