separate logic state and draw state

This commit is contained in:
cool-mist
2026-01-25 01:50:52 +05:30
parent 52fb443d5b
commit dc61d6d956
8 changed files with 633 additions and 511 deletions
+1 -2
View File
@@ -28,8 +28,7 @@ fn window_conf() -> Conf {
async fn main() {
rand::srand(date::now() as u64);
let background_color = Color::from_rgba(196, 195, 208, 255);
let resources = resources::init().await;
let mut game = Game::new_game(resources);
let mut game = Game::initialize_state().await;
loop {
clear_background(background_color);
game.handle_input();