Use left and right arrow keys to move and dodge the rocks.
Sorry this was late. I meant to share it yesterday, but I had to finish the code this morning Note: this was not my original project, it was supposed to be a test, but this one was better, so this is the final (might be updated) project. Enjoy!