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

Clicking in the game makes face surprised #14

Open
Namdrib opened this issue Sep 21, 2018 · 2 comments
Open

Clicking in the game makes face surprised #14

Namdrib opened this issue Sep 21, 2018 · 2 comments
Assignees
Labels
core A core feature/functionality

Comments

@Namdrib
Copy link
Owner

Namdrib commented Sep 21, 2018

make the face surprised 😮 when left or middle clicking anywhere in the game

This might be quite tricky since the face changes on any click in the game, even on the cells or on the face itself (middle click)

@Namdrib Namdrib added the core A core feature/functionality label Sep 21, 2018
@Namdrib Namdrib self-assigned this Sep 23, 2018
Namdrib added a commit that referenced this issue Sep 23, 2018
@Namdrib
Copy link
Owner Author

Namdrib commented Sep 25, 2018

^ That commit makes the face 😮 when the left and middle mouse is pressed down anywhere in the GamePanel (i.e. the HUD, and the game frame around the actual minefield, but not the minefield or the face itself) (anywhere outside of (1), (2) and (3))
image

@Namdrib
Copy link
Owner Author

Namdrib commented Sep 25, 2018

However, the 😮 doesn't persist if the mouse is pressed down and moved either:

  1. out of the window, or
  2. into one of those red zones

At the moment, it also doesn't turn back into 😮 when the mouse is moved back out of a red zone while the mouse is still pressed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core A core feature/functionality
Projects
None yet
Development

No branches or pull requests

1 participant