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.
|
|
|
import { GameState } from "../core/game_state";
|
|
|
|
|
|
|
|
export class WegameSplashState extends GameState {
|
|
|
|
constructor() {
|
|
|
|
super("WegameSplashState");
|
|
|
|
}
|
|
|
|
|
|
|
|
getInnerHTML() {
|
|
|
|
return `
|
|
|
|
<div class="wrapper">
|
|
|
|
<strong>健康游戏忠告</strong>
|
|
|
|
<div>抵制不良游戏,拒绝盗版游戏。</div>
|
|
|
|
<div>注意自我保护,谨防受骗上当。</div>
|
|
|
|
<div>适度游戏益脑,沉迷游戏伤身。</div>
|
|
|
|
<div>合理安排时间,享受健康生活。</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
}
|
|
|
|
onEnter() {
|
|
|
|
setTimeout(
|
|
|
|
() => {
|
|
|
|
document.querySelector("body > .wrapper").remove();
|
|
|
|
this.app.stateMgr.moveToState("PreloadState");
|
|
|
|
},
|
|
|
|
G_IS_DEV ? 1 : 6000
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|