News for hackers. Stuff that matters.
Re:The Sinusoidal Tetris by tantalor on Wednesday February 07, 2024 @09:28PM (#39297128)
Fun but hard to control. Suggestions to improve:

1. Make it so two hands can be used. If have to keep repositioning my fingers then I can't remember what each key does. Perhaps WADS and IJKL.

2. Phase: should not bottom out, it should allow for unlimited movement in either direction (wrap around). Should have same spatial/screen movement regardless the frequency, so scale up the phase shift as frequency drops.

3. Frequency: Fix the curve at center of the screen when adjusting frequency, instead of the left edge. Currently imbalanced: the right side move a lot and the left is fixed. Hard to do fine adjustments.

And please make it go slower.

Re:The Sinusoidal Tetris by TimTheTinker on Wednesday February 07, 2024 @10:09PM (#39297524)
Tapping quickly on iOS causes the page to zoom in... makes it hard to play.
Re:The Sinusoidal Tetris by wanderingstan on Thursday February 08, 2024 @05:42AM (#39300458)
For me as well.

I think making the controls into actual button elements would fix this. (Suspecting they are divs with onclick handlers now.)

Re:The Sinusoidal Tetris by nomemory on Thursday February 08, 2024 @06:15AM (#39300646)
They are rectangular shapes on the canvas.
Re:The Sinusoidal Tetris by jolmg on Wednesday February 07, 2024 @10:31PM (#39297693)
> Perhaps WADS and IJKL.

I don't think 2 hands are needed, but WASD might be more intuitive. W/S to increase/decrease amplitude, A/D to decrease/increase frequency, Q/E to increase/decrease the phase.

Re:The Sinusoidal Tetris by hyoogle on Wednesday February 07, 2024 @09:45PM (#39297299)
Definitely agree on the slower bit. I would love to play a much slower version of this at least to learn the controls better and also think through some strategy.

If it sped up over the course of the game that would be great.

Re:The Sinusoidal Tetris by jansan on Thursday February 08, 2024 @12:48AM (#39298707)
Also, the Z key is a bad choice for controls, because in some parts of the world it is at an entirely different location on the keyboard.
Re:The Sinusoidal Tetris by danbruc on Thursday February 08, 2024 @04:52AM (#39300156)
Also QUERTY vs QUERTZ keyboards, Y and Z are flipped so that A/Y makes no sense. That is a really common issue, for example also with programs that want to use the keyboard to play piano. Use scan codes instead of key codes. [1]

[1] https://hacks.mozilla.org/2017/03/internationalize-your-keyb...

Re:The Sinusoidal Tetris by nomemory on Friday February 09, 2024 @07:26AM (#39314086)
Implemented 2.

Now there's a turn-based mode so it stops and gives you time to think.

Re:The Sinusoidal Tetris by tantalor on Friday February 09, 2024 @11:43AM (#39316795)
Thanks!!