The Sinusoidal Tetris
andreinc.net
andreinc.net
Easy. This guy is truly in league of his own.
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.
[1] https://hacks.mozilla.org/2017/03/internationalize-your-keyb...
I think making the controls into actual button elements would fix this. (Suspecting they are divs with onclick handlers now.)
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.
If it sped up over the course of the game that would be great.
Now there's a turn-based mode so it stops and gives you time to think.
EDIT: never mind, it was due to my Vimium extension
Clicking the controls too fast just zooms in and out
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">https://stackoverflow.com/questions/10614481/disable-double-...
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum scale=1.0, user-scalable=0">
<style>
body {
touch-action: none;
}
<style>I've tried touch-action manipulation instead.
Is it working better now?
Also the general game design is broken in a few other ways:
- no clear indication when a loss occurs. I played for a while and didn't realise a loss had occurred half way through my playing
- you quickly reach a single dominant frequency since you instinctively try to match the frequency of the current sinusoid
- you can control every parameter of the incoming wave, which means this isn't much like tetris, where you can't change one of the parameters of the incoming block (its shape). I would suggest locking some aspect of the incoming wave, which would also fix the next issue
- there are too many controls and they are also not easy to change quickly
There's an indication for a loss and for a win.
There's a turn based mode implemented.
You can get hints for the best sinusoids.
The unreasonable effectiveness of linear regression...