When you click on the up arrow the spaceship will move upwards and when you click on the down arrow the spaceship will move downwards. When you see the rock you have to shoot them by pressing on the space bar of your keyboard. You will receive points according to the number of rocks you destroyed. If the spaceship touched the rocks game over. Thank you. Enjoy !!
@geekysanvi I am 13 year old. I learnt coding by myself and with the help of internet If you like my game please hit the like button , share with your friends and families. Do comment in the comment section below. Thank you ! and have a nice day ....