mirror of
https://github.com/nicklockwood/RetroRampage.git
synced 2026-04-03 00:28:30 -06:00
Pause button and menu #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nicklockwood on 1/14/2021
This PR adds a pause button to the in-game HUD, and a pause screen menu.
This was not a simple thing to implement due to the separation between rendering and game engine, which makes it hard to map on-screen touches back to the position of controls.
The solution involves a Swift UI-like declarative layout system so that the screen position of views such as buttons can be computed independently of rendering.