2022-11-26 12:08:20 +01:00
|
|
|
const {doAfterLoad} = (window as any).fwdekker;
|
|
|
|
|
2020-07-31 23:12:16 +02:00
|
|
|
import {waitForForkAwesome} from "./Common";
|
2020-08-25 16:36:06 +02:00
|
|
|
import {BasicIconFont, ForkAwesomeFont} from "./Display";
|
2020-09-02 17:27:37 +02:00
|
|
|
import {Game} from "./Game";
|
|
|
|
import {Preferences} from "./Preferences";
|
2020-07-31 23:12:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
doAfterLoad(() => {
|
2020-08-25 16:36:06 +02:00
|
|
|
const preferences = new Preferences();
|
2020-08-10 19:56:28 +02:00
|
|
|
waitForForkAwesome(
|
2020-08-25 16:36:06 +02:00
|
|
|
() => {
|
|
|
|
preferences.font = new ForkAwesomeFont();
|
|
|
|
new Game(preferences);
|
|
|
|
},
|
2020-08-10 19:56:28 +02:00
|
|
|
() => {
|
|
|
|
alert("External font could not be loaded. Using fallback font. Is a browser extension blocking fonts?");
|
2020-08-25 16:36:06 +02:00
|
|
|
preferences.font = new BasicIconFont();
|
|
|
|
new Game(preferences);
|
2020-08-10 19:56:28 +02:00
|
|
|
},
|
|
|
|
3000
|
|
|
|
);
|
2020-07-31 23:12:16 +02:00
|
|
|
});
|