mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 20:35: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},
|
debug::{self, DebugState},
|
||||||
game::GameState,
|
game::GameState,
|
||||||
res::Res,
|
res::Res,
|
||||||
CliArgs,
|
|
||||||
};
|
};
|
||||||
use egui_sfml::SfEgui;
|
use egui_sfml::SfEgui;
|
||||||
/// Application level state (includes game and ui state, etc.)
|
/// Application level state (includes game and ui state, etc.)
|
||||||
|
|
@ -17,7 +16,7 @@ pub(crate) struct App {
|
||||||
pub(crate) cmdvec: CmdVec,
|
pub(crate) cmdvec: CmdVec,
|
||||||
}
|
}
|
||||||
impl App {
|
impl App {
|
||||||
pub(crate) fn new(args: CliArgs) -> anyhow::Result<Self> {
|
pub(crate) fn new() -> anyhow::Result<Self> {
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
pub(crate) fn do_game_loop(&mut self) {
|
pub(crate) fn do_game_loop(&mut self) {
|
||||||
|
|
|
||||||
|
|
@ -9,14 +9,8 @@ mod texture_atlas;
|
||||||
mod tiles;
|
mod tiles;
|
||||||
mod world;
|
mod world;
|
||||||
use app::App;
|
use app::App;
|
||||||
use clap::Parser;
|
|
||||||
|
|
||||||
#[derive(Parser)]
|
|
||||||
pub(crate) struct CliArgs {}
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
gamedebug_core::set_enabled(true);
|
let mut app = App::new().unwrap();
|
||||||
let cli_args = CliArgs::parse();
|
|
||||||
let mut app = App::new(cli_args).unwrap();
|
|
||||||
app.do_game_loop();
|
app.do_game_loop();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue