Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
logancammish authored Mar 14, 2024
1 parent 6648925 commit 7cd9c03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ use colored::Colorize;

fn main() {
FFGame::run(WindowSettings {
title: String::from("Logan Cammish Game"),
title: String::from("Coffee Game (c) Logan Cammish"),
size: (900, 800),
resizable: false,
resizable: true,
maximized: false,
fullscreen: false,
}).unwrap();
Expand Down Expand Up @@ -107,10 +107,10 @@ impl Game for FFGame {
}

self.ticks += 1;
self.player.move_to(self.lkey);
self.player.move_to(self.lkey, frame.width(), frame.height());
self.player.position = Vec::from([*self.player.position.last().unwrap()]);

self.enemy.move_to(self.lkey);
self.enemy.move_to(self.lkey, frame.width(), frame.height());
self.enemy.position = Vec::from([*self.enemy.position.last().unwrap()]);

frame.clear(Color{
Expand Down

0 comments on commit 7cd9c03

Please sign in to comment.