index : snake-rs
An implementation of the classic Snake game in Rust using SDL2
about summary refs log tree commit diff

Diffstat (limited to 'src/main.rs')

-rw-r--r-- src/main.rs 14
 1 file changed, 14 insertions(+)

diff --git a/src/main.rs b/src/main.rs
new file mode 100644
index 0000000..de4f2a1 100644
--- /dev/null
+++ b/src/main.rs
@@ -1,0 +1,14 @@
use crate::{app::App, renderer::Renderer};

mod app;
mod renderer;
mod game_context;

fn main() -> Result<(), String> {
    let mut app: App = App::new()?;
    let mut renderer: Renderer = Renderer::new(&mut app)?;

    app.run(&mut renderer);
    println!("Hello, world!");
    Ok(())
}