mirror of
https://github.com/motajs/template.git
synced 2026-11-02 23:14:34 +08:00
17 lines
438 B
TypeScript
17 lines
438 B
TypeScript
import { WebLoadStarter } from '@motajs/loader';
|
|
import { createClientCore } from './client/entry';
|
|
import { IClientCore } from '@user/client-modules';
|
|
import { LoadSceneUI } from './client/ui/load';
|
|
|
|
declare global {
|
|
interface Window {
|
|
mainClient: IClientCore;
|
|
}
|
|
}
|
|
|
|
const client = createClientCore(new WebLoadStarter());
|
|
|
|
// 游戏副作用启动
|
|
window.mainClient = client;
|
|
client.sceneController.open(LoadSceneUI, {});
|