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

Add rotate tile #36

Open
ojasva opened this issue Nov 17, 2018 · 5 comments
Open

Add rotate tile #36

ojasva opened this issue Nov 17, 2018 · 5 comments

Comments

@ojasva
Copy link

ojasva commented Nov 17, 2018

Probably the game can be tweaked with a little new feature which would allow the users to rotate tiles.

@owenca
Copy link
Contributor

owenca commented Nov 17, 2018

Can you elaborate on this?

@scottmc
Copy link
Member

scottmc commented Nov 17, 2018

I've pondered this as a future feature on HexVexed. You could add an extra variable for each tile that would be it's rotation factor, and number from 0 to numofsides-1, then when generating the puzzle that factor would also be randomized to rotate each tile. This would add another level of difficulty to the game. It would need to be an option and would need to have a method of rotating the tiles be added, perhaps a couple of buttons to rotate the currently highlighted tile cw or ccw. This would may require adding a highlight for the current tile as there isn't one now.

@humdingerb
Copy link
Member

Doing it with additional buttons would be the easy solution. It would block the game flow though: you'd have to select a tile, move the mouse to a rotating button and then move the mouse back to the tile to drag&drop it.
Better is to change the mouse pointer when it hovers near a corner/edge of a tile and like it's done in graphics pps like WonderBrush.

An easier approach: Every tile has invisible 3 zones, left, middle, right. Grabbed in the middle, you drag&drop a file as usual. Hovering over the right or left changes the mouse pointer and a click rotates the tile either left or right.

@scottmc
Copy link
Member

scottmc commented Nov 18, 2018

I like the hover idea. You might check if mouse is over left or right triangle to rotate, and the top or bottom for pick up and drag. Cursor change to should which mode would be nice to have if this function were added.

@humdingerb
Copy link
Member

Hmmm... thinking about it some more: the clickable areas are pretty damn small. I'm think my 3-areas or your 4-triangles would actually be a pain to use.

How about a quick click rotates counter-clockwise. A right-click could rotate clockwise (it's OK that this ricght-click behaviour is a bit hiddedn, because you can just as easil click 3 times for the same thing).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants