You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Android: MainActivity launcher, game thread and AndroidPlayer lifecycle #255
The desktop launcher is Main(string[]) + Host.CreateDefaultBuilder, blocking in window.Run() on the main thread; Escape quits; Application.Quit cancels a token. Android owns the UI thread and destroys the surface on pause.
Tasks
MainActivity template in the brick's launcher directory, hosting a SurfaceView
Dedicated game thread running the player loop; AndroidPlayer is instantiated by the launcher, not through GamePlayers.Find
Pause/resume map to ticking pause and surface lost/restored
Back button: configurable quit or input event; Application.Quit calls finish()
Immersive fullscreen; OapRuntimeKey.Set for encrypted packages
Activity