index : snake-rs
An implementation of the classic Snake game in Rust using SDL2
about summary refs log tree commit diff
snake-rs / src / main.rs
-rw-r--r-- blob de4f2a1ebea1389888eecf50b110a736ad9ac76e 288 bytes (plain)
1
use crate::{app::App, renderer::Renderer};
2
3
mod app;
4
mod renderer;
5
mod game_context;
6
7
fn main() -> Result<(), String> {
8
    let mut app: App = App::new()?;
9
    let mut renderer: Renderer = Renderer::new(&mut app)?;
10
11
    app.run(&mut renderer);
12
    println!("Hello, world!");
13
    Ok(())
14
}