updating apps to work with new API, working on new terminal app. a lot of stuff is broken rn :/
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user