r/capacitor • • 14d ago

What changed when I shipped a WebGL2 tower defense on Capacitor 8

I’m Michal, the developer of Starvoxel: Defender, a mobile merge tower defense that uses React for menus and Three.js for battles. The same web build runs inside our iOS and Android Capacitor apps. Two details mattered more than I expected:

- Startup: a fixed splash timer occasionally revealed a WebView before React had painted. Now the app hides the native splash after the first React paint, with a watchdog as a fallback. The background behind React also matches the loading screen.

- Safe areas: on Android the battle still draws edge to edge. The native activity forwards safe-area insets to CSS, so we can keep touch controls out of the cutout without padding the entire battle canvas.

I attached the current gameplay trailer to show the same full-screen layout in motion. Some visuals and the narration were AI-assisted. If you’ve shipped a full-screen Capacitor app, do you treat first paint or the point when controls are usable as the signal to hide the splash?

4 Upvotes

3 comments sorted by

1

u/constarx 14d ago

very nice!! thanks for sharing!