use std::collections::HashMap;
use gasm_host::{gfx::Gfx, host::{Game, Host}, net::Net, storage::Storage};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let host = Host::new(HashMap::new(), HashMap::new(), None, Gfx::null(), Net::new(false), Storage::memory());
let mut game = Game::load(&std::fs::read("game.wasm")?, host)?;
for _ in 0..600 {
game.frame()?; }
let h = game.host();
println!("{}x{}, video hash {:08x}", h.width, h.height, h.video_hash.0);
Ok(())
}