This commit is contained in:
LunarAkai 2025-08-29 00:10:03 +02:00
commit 2673a31b81
5 changed files with 37 additions and 14 deletions

View file

@ -1,4 +1,4 @@
use std::fs::File;
use std::{any::Any, fmt::format, fs::File};
use moonhare_engine::{
game::{Game, basic::world::World, nodes::window::Window},
@ -7,13 +7,17 @@ use moonhare_engine::{
fn main() {
let _ = log::configere_logger();
log::info("test");
let mut game = Game::new();
let mut world = World::new();
let window = Window::default();
let mut window = Window::default();
window = Window::init(&mut window);
window.check_integ();
world.add_node(Box::new(window));
game.add_world(world.clone());
log::info(format!("{:?}", game.get_worlds()));
log::info(format!("{:?}", game));
log::info(format!("Nodes: {:#?}", world.get_nodes().type_id()));
game.run();
}