-
Notifications
You must be signed in to change notification settings - Fork 1
ScreenManager
jay19240 edited this page Jul 17, 2025
·
5 revisions
Singleton screen manager. Note: requestPush, requestSet and requestPop are all asynchronously method and will be executed safely in the update loop.
- new ScreenManager(): ScreenManager
- draw(): void
-
render(ts: number): void
- ts: The timestep.
- requestPopScreen(): void
-
requestPushScreen(newScreen: Screen, args: any): void
- newScreen: The screen.
- args: Arguments that are passed to the new screen onEnter method.
-
requestSetScreen(newScreen: Screen, args: any): void
- newScreen: The screen.
- args: Arguments that are passed to the new screen onEnter method.
-
update(ts: number): void
- ts: The timestep.