Skip to content

feat: bump asw 0.12.1, controller support and shared workflows - #16

Merged
alegemaate merged 12 commits into
mainfrom
feat/bump-asw-0.11.1
Sep 28, 2026
Merged

alegemaate merged 12 commits into
mainfrom
feat/bump-asw-0.11.1

Conversation

@alegemaate

@alegemaate alegemaate commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Summary

Moves the game to ASW 0.12.1 and adds controller support to its menus.

Changes

  • Bump ASW to 0.12.1 (via 0.11.1 and 0.11.2); fixed the 0.11 API breaks (core::exit(), input getters).
  • Deleted the unused custom InputBox (157 lines); the game already used asw::ui::InputBox.
  • The card flip uses ASW easing, so the width can no longer overshoot.
  • Menus use bind_default_navigation() and Root::on_back: D-pad, stick, A / B and the keyboard move and press. Confirm submits the high score name.
  • One theme font for all widgets; root size workarounds removed.

CI

  • release.yml uses the shared adsgames/deploy-to-adsgames release workflow: every platform (web, Linux, Windows, Mac) builds on pull requests, and v* tags deploy to A.D.S. Games.
  • deploy.yml is replaced by github-pages.yml, which calls the shared deploy-asw-pages.yml workflow (Emscripten 6.0.10). Pull requests only build, pushes to the default branch and tags deploy.

Behaviour changes

  • Labels are kept black by setting the theme text colour (0.12 defaults to white).
  • The name box is focused when the end panel shows.

Testing

  • Native (macOS) and web (Emscripten) builds, no new warnings from game code.
  • Not play tested: menus, keyboard and controller focus, and the changes listed above need a quick play through.

@alegemaate alegemaate changed the title feat: bump asw 0.11.1 feat: bump asw 0.11.2, controller support and shared release workflows Sep 28, 2026
- Drive UI navigation with asw::ui::bind_default_navigation (keyboard,
  D-pad, left stick, A, B, plus the controller Back button) and replace
  the hand written controls::update_ui forwarding and UI_* actions.
- Leave LevelSelect, HighScores and Game with Root::on_back.
- Use theme.font instead of setting the font on every widget.
- Remove root size workarounds, the root follows the screen size now.
- Keep labels black through theme.text, labels now default to the theme.
- Focus the name box when the end panel shows, focus is no longer given
  to the first widget automatically.
@alegemaate alegemaate changed the title feat: bump asw 0.11.2, controller support and shared release workflows feat: bump asw 0.12.0, controller support and shared workflows Sep 28, 2026
@sonarqubecloud

Copy link
Copy Markdown

@alegemaate alegemaate changed the title feat: bump asw 0.12.0, controller support and shared workflows feat: bump asw 0.12.1, controller support and shared workflows Sep 28, 2026
@alegemaate
alegemaate merged commit a8b8685 into main Sep 28, 2026
10 checks passed
@alegemaate
alegemaate deleted the feat/bump-asw-0.11.1 branch September 28, 2026 19:30
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