News for hackers. Stuff that matters.
Re:Show HN: I made a pretty relaxing puzzle game by hnfong on Wednesday November 23, 2022 @07:28AM (#33718331)
Implement right click for the other direction?
Re:Show HN: I made a pretty relaxing puzzle game by trizoza on Wednesday November 23, 2022 @07:30AM (#33718348)
Nice suggestion! How should that behave on mobile? Any idea on how to best tackle it?
Re:Show HN: I made a pretty relaxing puzzle game by woogley on Wednesday November 23, 2022 @07:41AM (#33718452)
I think you should lean into this problem and just call the game "clockwise"

Consistent across platforms, consistent "ideal" count, clever-ish game name

Re:Show HN: I made a pretty relaxing puzzle game by dwringer on Wednesday November 23, 2022 @08:47AM (#33719006)
I would like to see either as you describe (which I think would be the most relaxing), or have the direction-changing buttons also count as a click each time they are pressed. I found it tempting to switch direction, turn a piece, then switch back, often using two clicks instead of the three it would take to turn it clockwise-only, but very inefficient since I switched back and forth many times. Making those count as clicks, though, does up the difficulty and would make hitting the target require you to use them only once, so perhaps removing them altogether is the solution.
Re:Show HN: I made a pretty relaxing puzzle game by sh1mmer on Wednesday November 23, 2022 @09:23AM (#33719433)
If you did it as clockwise by default instead of listing the ideal turn count you could list the minimum number of “counter” turns. Then have a button to do the next turn as a counter turn.
Re:Show HN: I made a pretty relaxing puzzle game by bbx on Wednesday November 23, 2022 @07:37AM (#33718415)
I would have suggested having 2 zones per tile: one to rotate left, one to rotate right. But the tap zone is quite small already, so it's prone to errors.

One slower but more UX-friendly option would be to allow long-press on a tile, it would zoom in, and you can pick left or right with each button.

Double tap is also an option but you need to remove the ability to select the content of the page.

Re:Show HN: I made a pretty relaxing puzzle game by didsomeonesay on Wednesday November 23, 2022 @07:38AM (#33718425)
Maybe you could try swipe left/right or rotating gestures that snap to 90 degree increments.

That is, rotating with one finger by holding and dragging either in circle or straight line.

Better not the two finger rotation known from map apps.

Re:Show HN: I made a pretty relaxing puzzle game by dncornholio on Wednesday November 23, 2022 @07:31AM (#33718358)
Double tap
Re:Show HN: I made a pretty relaxing puzzle game by zoidb on Wednesday November 23, 2022 @07:37AM (#33718419)
I think for mobile have two ideal click counts, one for a single direction and another with direction switches.
Re:Show HN: I made a pretty relaxing puzzle game by bambax on Wednesday November 23, 2022 @08:06AM (#33718669)
Or: pull down for rotate CCW, pull up for rotate CW. Just sum up event.movementY to calculate rotations.

Cons: A little slower than simply clicking, maybe, and makes it easier to overshoot. Need to count rotations instead of clicks.

Pros: Quite intuitive (that's how dials work in most DAWs for instance) and would work well on mobile, even if the tile size is small.

Re:Show HN: I made a pretty relaxing puzzle game by kiru_io on Wednesday November 23, 2022 @08:07AM (#33718678)
Not sure how easy it is to implement, but here is another idea: hold on the tile few seconds, then you have the choice to swipe left or right (has also some edge cases, when the elements are in the corner)
Re:Show HN: I made a pretty relaxing puzzle game by tcmb on Wednesday November 23, 2022 @08:12AM (#33718713)
Short tap for CW, hold for CCW
Re:Show HN: I made a pretty relaxing puzzle game by huhtenberg on Wednesday November 23, 2022 @09:39AM (#33719635)
Tap-and-hold a tile, move finger outside of it and then rotate by moving finger around tile's center (like using a handle that you just extended from the tile).
Re:Show HN: I made a pretty relaxing puzzle game by w-m on Wednesday November 23, 2022 @10:07AM (#33720032)
Click left half of square for ccw rotation, click right half of square for cw rotation.
Re:Show HN: I made a pretty relaxing puzzle game by dhc02 on Wednesday November 23, 2022 @11:51AM (#33721605)
Long press?
Re:Show HN: I made a pretty relaxing puzzle game by huhtenberg on Wednesday November 23, 2022 @09:36AM (#33719603)
It's not uncommon for right-clicks to be blocked at the browser level.

A better option would be Ctrl-left-click for the other direction.

Re:Show HN: I made a pretty relaxing puzzle game by RadiozRadioz on Wednesday November 23, 2022 @10:20AM (#33720240)
Who is blocking these? Paranoid corporates?
Re:Show HN: I made a pretty relaxing puzzle game by m4lvin on Wednesday November 23, 2022 @09:46AM (#33719734)
Or use scroll-up and scroll-down to rotate left/right?
Re:Show HN: I made a pretty relaxing puzzle game by l2silver on Wednesday November 23, 2022 @10:12AM (#33720115)
I might just get rid of rotate all together
Re:Show HN: I made a pretty relaxing puzzle game by vesinisa on Wednesday November 23, 2022 @09:47AM (#33719737)
Right click is often blocked, but Shift+Click is not.
Re:Show HN: I made a pretty relaxing puzzle game by sph on Wednesday November 23, 2022 @09:51AM (#33719801)
Blocked by whom?
Re:Show HN: I made a pretty relaxing puzzle game by abcd_f on Wednesday November 23, 2022 @01:00PM (#33722445)
By people who like browser's native context menus.
Re:Show HN: I made a pretty relaxing puzzle game by Someone on Wednesday November 23, 2022 @11:28AM (#33721240)
An alternative is to change the scoring system, and count consecutive clicks on the same tile as ‘one’

Alternatively, just count three consecutive clicks that are close in time as one.