fix: minor comments, disable accelerated, use std sleep on web builds

This commit is contained in:
2023-09-14 15:42:49 -05:00
parent 00c4c76299
commit 229d2242ef
2 changed files with 25 additions and 6 deletions

View File

@@ -62,6 +62,8 @@ impl Game<'_> {
self.canvas.set_draw_color(Color::RGB(0, 0, 0));
self.canvas.clear();
// Render the map
self.canvas
.copy(&self.map_texture, None, None)
.expect("Could not render texture on canvas");
@@ -102,6 +104,7 @@ impl Game<'_> {
self.draw_cell((next_cell.0 as u32, next_cell.1 as u32), Color::YELLOW);
}
// Present the canvas
self.canvas.present();
}