made a game

made a snake game and rewrote some rendering stuff again
This commit is contained in:
FantasyPvP
2023-10-02 00:56:18 +01:00
parent f0ee584c87
commit bf9c9be88d
19 changed files with 532 additions and 241 deletions
+4 -4
View File
@@ -125,13 +125,13 @@ async fn exec() -> Result<(), Error> {
"switch" => {
Screen::switch();
}
"snake" => {
let mut game = snake::Game::new();
game.run(Vec::new()).await;
}
"gigachad?" => {
let mut gigachad_detector = GigachadDetector::new();
gigachad_detector.run(args).await?;
}
"filesystem" => {
use crate::std::io;
io::mkfs();
}
"test_features" => {
use crate::std::random::Random;