You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
851 B
21 lines
851 B
import { EDirection } from "./enmu";
|
|
import { gameManager, initGame, stageManager, windows } from "./Game";
|
|
import { addSound } from "./Game/Sound";
|
|
|
|
gameManager.loader
|
|
// .add("my-sound", "/bg.mp3", (e) => addSound(e)) // 背景音乐
|
|
.add("bg", "/bg.png") // 背景图片
|
|
.add("dnf", "https://www.kkkk1000.com/images/learnPixiJS-AnimatedSprite/dnf.png") // 背景图片
|
|
.add("btn-bg", "/assets/images/button_square_depth_gloss.png") // 背景图片
|
|
.add("btn-bg-press", "/assets/images/button_square_depth_gradient.png") // 背景图片
|
|
.load();
|
|
|
|
gameManager.loader.onProgress.add((loader) => {
|
|
console.log(loader.progress);
|
|
});
|
|
gameManager.loader.onComplete.once((loader) => {
|
|
console.log(loader.resources);
|
|
initGame();
|
|
gameManager.setDirection(EDirection.Landscape);
|
|
stageManager.initStage("init");
|
|
});
|
|
|