updating apps to work with new API, working on new terminal app. a lot of stuff is broken rn :/

This commit is contained in:
2025-02-18 20:05:54 +00:00
parent 1ace354158
commit 1e7d513f26
21 changed files with 369 additions and 309 deletions
+4 -4
View File
@@ -17,15 +17,15 @@ pub(crate) struct Game {
#[async_trait]
impl Application for Game {
fn new() -> Self {
Game {
fn new(window: Option<Window>) -> Result<Self, Error> {
Ok(Game {
ball: Ball::new(),
player1: Player::new(1),
player2: Player::new(78),
}
})
}
async fn run(&mut self, window: Option<Window>, _: Vec<String>) -> Result<(), Error> {
async fn run(&mut self, _: Vec<String>) -> Result<(), Error> {
let _d = Display::borrow();
let mut update_time = Timer::new(0.1);