Use the up arrow key, space, of W key to make the bird move up. Avoid the spike that will keep coming at different places in different sizes. Every 30 seconds you play, the speed of the spike increases by five steps. Good luck!
I made the base of this project using instruction, then customized it to my liking.