The space between a Z and M key is the exact number of white keys in one piano octave.
In other words, you can perfectly fit one octave of a piano into a keyboard. Naturally, I had to
make a virtual piano game with one octave; here it is. Imagine Guitar Hero, for piano, but only one
octave, and just in general a bit worse: introducing Piano Solo!
The user selects one of 5 songs that range in difficulty from EASY-MEDIUM-HARD. Once the play button
is hit, the selected song has it's notes fall from the top of the newly generated screen. The remaining
lives are displayed in their own window. If the key falls past a certain range without being hit, a heart
disappears. On easy difficulty, the notes travel slowly and you have max lives to start. On medium you have
less lives and the notes travel faster, and on hard it is even more so.
So each key on the keyboard corresponds to a key on the 'piano'. Here is a little diagram to show-
An actual piano octave:
|C#|D#| |F#|G#|A#|
|C||D||E||F||G||A||B|
The equivalent keys on the keyboard:
|S#|D#| |G#|H#|J#|
|Z||X||C||V||B||N||M|
- IntelliJ IDEA
- CMDer
The following are all the websites that I got the base images from- these images were edited to more suit my need before they were used in the game.
- Note Symbol: http://tom-jaeschke.blogspot.com/2013/10/squircles.html
- Background Piano Image: https://www.shutterstock.com/image-vector/backdrop-piano-text-black-white-hand-776145223?src=ZgtyonY-1q9QzbniG6KUAQ-1-15
- Heart Symbol: https://www.shutterstock.com/image-vector/square-heart-icon-1050852785?src=iegn1y_ofENvRbtkFXl82A-1-8
- Play Button Icon: https://www.clipartmax.com/middle/m2i8b1m2d3d3A0d3_movie-player-play-button-comments-round-play-button-png/
- Window Music Icon: https://www.iconfinder.com/icons/1165189/music_musical_musical_notation_musical_note_musical_symbol_note_icon
See here for images of Piano Solo.