Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 433 Bytes
use tetra::graphics::{self, Color};
use tetra::{Context, Settings, State};
struct GameState;
impl State for GameState {
fn draw(&mut self, ctx: &mut Context, _dt: f64) -> tetra::Result {
// Cornflower blue, as is tradition
graphics::clear(ctx, Color::rgb(0.392, 0.584, 0.929));
Ok(())
}
}
fn main() {
tetra::run(&Settings::new("Hello, world!", 1280, 720), |_| {
Ok(GameState)
});
}
You can’t perform that action at this time.