Created
November 18, 2014 22:47
-
-
Save bvssvni/edf59f6b0179ea57faa6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(globs)] | |
#![feature(if_let)] | |
extern crate piston; | |
extern crate gfx; | |
mod snakeapp; | |
mod object; | |
mod settings; | |
mod text; | |
mod bar; | |
mod player; | |
mod snake; | |
mod action; | |
mod game_state; | |
mod character; | |
mod air_bottle; | |
mod colors; | |
fn main() { | |
use piston::shader_version::opengl; | |
let opengl = opengl::OpenGL_3_2; | |
piston::start( | |
opengl, | |
piston::WindowSettings { | |
title: "Sea Snake Escape".to_string(), | |
size: [512, 512], | |
fullscreen: false, | |
exit_on_esc: true, | |
samples: 4, | |
}, | |
|| snakeapp::app() | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment