+
Skip to content
This repository was archived by the owner on May 17, 2025. It is now read-only.

Conversation

ShenMian
Copy link
Owner

No description provided.

- Add a new thread for state updates
- Move state update logic to the new thread
- Detach the thread to allow asynchronous execution
- Add LocalPlayer class for human player
- Implement render method in Player class
- Update State class to include local player
- Adjust player rendering in State class
- Update Player and LocalPlayer classes to take an additional parameter `is_current_player` in the render method
- Modify the render logic in LocalPlayer to only dim cards if it's not the current player's turn
- Update the State class to pass the correct `is_current_player` flag when rendering each player
- Use uppercase for other constant variables
…ttings

- Add CARD_SCALE constant to card.cpp for consistent scaling
- Remove redundant sprite scaling in deck.hpp, discard_pile.hpp, and player.hpp
- Implement Button class with hover and click detection
- Add rendering functionality with visual feedback on hover
- Update LocalPlayer class to handle card selection and color picking
- Add button rendering and click detection for color picker
- Modify State class to pass render target to LocalPlayer
- Refactor main loop to continuously update game state
Copy link

@Copilot 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.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (7)
  • src/button.hpp: Language not supported
  • src/card.cpp: Language not supported
  • src/deck.hpp: Language not supported
  • src/discard_pile.hpp: Language not supported
  • src/main.cpp: Language not supported
  • src/player.hpp: Language not supported
  • src/state.hpp: Language not supported

@ShenMian ShenMian self-assigned this Mar 29, 2025
@ShenMian ShenMian added the enhancement New feature or request label Mar 29, 2025
@ShenMian ShenMian force-pushed the feature/local_player branch from 2053ef2 to c4586f4 Compare March 29, 2025 12:58
@ShenMian ShenMian force-pushed the feature/local_player branch from c4586f4 to 151a845 Compare March 29, 2025 13:00
@ShenMian ShenMian merged commit de7ba01 into main Mar 29, 2025
6 checks passed
@ShenMian ShenMian deleted the feature/local_player branch March 29, 2025 13:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载