mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-14 19:55:02 +01:00
more
This commit is contained in:
parent
af7eb4e841
commit
a55aedca0c
2 changed files with 2 additions and 9 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue