mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-17 04:45:02 +01:00
more
This commit is contained in:
parent
593d85d668
commit
dac93f611b
1 changed files with 4 additions and 19 deletions
23
src/app.rs
23
src/app.rs
|
|
@ -1,29 +1,14 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
command::{Cmd, CmdVec},
|
command::CmdVec,
|
||||||
debug::{self, DebugState},
|
debug::{self, DebugState},
|
||||||
game::{for_each_tile_on_screen, Biome, GameState},
|
game::GameState,
|
||||||
graphics::{self, ScreenSc, ScreenVec},
|
|
||||||
input::Input,
|
input::Input,
|
||||||
inventory::{ItemId, Slot, TileLayer, UseAction},
|
|
||||||
math::{center_offset, TILE_SIZE},
|
|
||||||
res::Res,
|
res::Res,
|
||||||
tiles::TileId,
|
|
||||||
CliArgs,
|
CliArgs,
|
||||||
};
|
};
|
||||||
use anyhow::Context;
|
|
||||||
use directories::ProjectDirs;
|
|
||||||
use egui_sfml::SfEgui;
|
use egui_sfml::SfEgui;
|
||||||
use gamedebug_core::{imm, imm_dbg};
|
use sfml::graphics::{RenderTexture, RenderWindow};
|
||||||
use sfml::{
|
|
||||||
audio::SoundSource,
|
|
||||||
graphics::{
|
|
||||||
BlendMode, Color, Rect, RectangleShape, RenderStates, RenderTarget, RenderTexture,
|
|
||||||
RenderWindow, Shape, Sprite, Transformable, View,
|
|
||||||
},
|
|
||||||
system::{Vector2, Vector2u},
|
|
||||||
window::{Event, Key},
|
|
||||||
};
|
|
||||||
use std::fmt::Write;
|
|
||||||
/// Application level state (includes game and ui state, etc.)
|
/// Application level state (includes game and ui state, etc.)
|
||||||
pub(crate) struct App {
|
pub(crate) struct App {
|
||||||
pub(crate) rw: RenderWindow,
|
pub(crate) rw: RenderWindow,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue