mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 13:55:04 +02:00
Update to Angular 14
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { isError } from "../common/utils";
|
||||
|
||||
export interface Game {
|
||||
fps: number;
|
||||
load(): any;
|
||||
@@ -44,7 +46,9 @@ export function startGameLoop(game: Game, onError = (e: Error) => console.error(
|
||||
game.draw();
|
||||
}
|
||||
} catch (e) {
|
||||
onError(e);
|
||||
if (isError(e)) {
|
||||
onError(e);
|
||||
}
|
||||
}
|
||||
|
||||
last = now;
|
||||
|
||||
Reference in New Issue
Block a user