Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pause button and menu #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nicklockwood
Copy link
Owner

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.

@nicklockwood nicklockwood force-pushed the experiments/pause-screen branch 2 times, most recently from 23a960c to 5d22dc1 Compare January 16, 2021 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant