This commit is contained in:
nora 2023-04-17 22:03:33 +02:00
parent af7eb4e841
commit a55aedca0c
2 changed files with 2 additions and 9 deletions

View file

@ -3,7 +3,6 @@ use crate::{
debug::{self, DebugState},
game::GameState,
res::Res,
CliArgs,
};
use egui_sfml::SfEgui;
/// Application level state (includes game and ui state, etc.)
@ -17,7 +16,7 @@ pub(crate) struct App {
pub(crate) cmdvec: CmdVec,
}
impl App {
pub(crate) fn new(args: CliArgs) -> anyhow::Result<Self> {
pub(crate) fn new() -> anyhow::Result<Self> {
loop {}
}
pub(crate) fn do_game_loop(&mut self) {

View file

@ -9,14 +9,8 @@ mod texture_atlas;
mod tiles;
mod world;
use app::App;
use clap::Parser;
#[derive(Parser)]
pub(crate) struct CliArgs {}
fn main() {
gamedebug_core::set_enabled(true);
let cli_args = CliArgs::parse();
let mut app = App::new(cli_args).unwrap();
let mut app = App::new().unwrap();
app.do_game_loop();
}