Skip to content

Conversation

@ZTL-UwU
Copy link
Contributor

@ZTL-UwU ZTL-UwU commented Nov 28, 2025

No description provided.

Signed-off-by: ZTL-UwU <zhangtianli2006@gmail.com>
Signed-off-by: ZTL-UwU <zhangtianli2006@gmail.com>
ZTL-UwU and others added 2 commits November 28, 2025 08:18
Signed-off-by: ZTL-UwU <zhangtianli2006@gmail.com>
@ZTL-UwU ZTL-UwU changed the title Keybind Key Guide Nov 28, 2025
Signed-off-by: ZTL-UwU <zhangtianli2006@gmail.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a "Key Guide" feature that displays control instructions to users on their first launch. The implementation includes a new KeyGuide scene that shows a background image with keyboard controls, updates to the main menu to add a "Key Guide" button, and logic to automatically display the guide on first launch based on the save data.

Key changes:

  • New KeyGuide scene implementation with automatic first-launch display
  • Main menu integration with new "Key Guide" button between "Settings" and "Exit"
  • First launch detection using completed_levels == 0 check in save data

Reviewed changes

Copilot reviewed 10 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/scenes/key_guide.cpp Implements new KeyGuide scene with event handling and rendering
include/wforge/scene.h Adds KeyGuide struct declaration
src/scenes/main_menu.cpp Adds KEYGUIDE button enum, button descriptor, rendering, and navigation
src/main.cpp Adds first launch detection and conditional KeyGuide scene initialization
include/wforge/save.h Adds is_first_launch() method checking if completed_levels == 0
src/save.cpp Fixed typo: "relay" corrected to "rely"
assets/ui/main-menu.json Adds keyguide button configuration and adjusts exit button position
assets/ui/key-guide.json Configuration file for KeyGuide scene dimensions
assets/ui/key-guide.png Background image displaying keyboard controls
assets/manifest.json Adds asset loading entries for key guide image and configuration
CMakeLists.txt Adds key_guide.cpp to build sources

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: ZTL-UwU <zhangtianli2006@gmail.com>
Signed-off-by: ZTL-UwU <zhangtianli2006@gmail.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 15 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: ZTL-UwU <zhangtianli2006@gmail.com>
Signed-off-by: ZTL-UwU <zhangtianli2006@gmail.com>
@ZTL-UwU ZTL-UwU changed the title Key Guide Key Guide & Pause Menu Nov 29, 2025
@szdytom szdytom marked this pull request as ready for review November 29, 2025 09:57
Signed-off-by: ZTL-UwU <zhangtianli2006@gmail.com>
Signed-off-by: ZTL-UwU <zhangtianli2006@gmail.com>
@szdytom szdytom merged commit eb8208e into szdytom:main Nov 29, 2025
2 checks passed
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.

2 participants