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
#![crate_name = "amethyst"] #![crate_type = "lib"] #![doc(html_logo_url = "http://tinyurl.com/jtmm43a")] //! Amethyst is a free and open source game engine written in idiomatic //! [Rust][rs] for building video games and interactive multimedia applications. //! The source code is available for download on [GitHub][gh]. See the //! [online book][bk] for a complete guide to using Amethyst. //! //! [rs]: https://www.rust-lang.org/ //! [gh]: https://github.com/amethyst/amethyst //! [bk]: https://www.amethyst.rs/ //! //! This project is a work in progress and is very incomplete. Pardon the dust! //! //! # Example //! //! ```ignore //! extern crate amethyst; //! //! use amethyst::*; //! //! struct GameState; //! //! impl State for GameState { //! fn handle_events(&mut self, events: &[Event]) -> Trans { //! for e in events { //! match e { //! Event::Closed => Trans::Quit, //! Event::Resized(x, y) => println!("x: {}, y: {}", x, y), //! Event::KeyPressed(k) => if k == Key::Esc { Trans::Quit }, //! } //! } //! Trans::None //! } //! //! fn update(&mut self, _delta: Duration) -> Trans { //! println!("Computing some more whoop-ass..."); //! Trans::None //! } //! } //! //! fn main() { //! let mut game = Application::new(GameState); //! game.run(); //! } //! ``` pub extern crate amethyst_ecs as ecs; pub extern crate amethyst_engine as engine; pub extern crate amethyst_renderer as renderer;