Flappy-Bird

  • Name and Surname: Asel Esra Ozyilmaz
  • Email: esra.ozyilmaz@iaau.edu.kg
  • Computer Science Department of Alatoo International University.
  • Individual midterm project for Computer Oraganization & Architecture class.

Description Of The Project

A game created with C# language and Visual Studio IDE. I have created it with ".net desktop development" framework. The game is called "Flappy Bird" where you can press space key to fly the bird. When you crash the bird the game finishes aoutomatically and prints out "Game Over!" text with your score that you have gained throughout the game.

Design

Design is easily created with the help of "Windows Form App" template. Below you can see we have a toolbox where we take the tools we need in order to design our game.

The design above is the final design where I have used tools such as: PictureBox, TextBox in order to design it.

Functionality

  • Below you can see some methods which helps us to give rules for our game. For example, gameTimerEvent() function will help us to move our pipes while we play, also it helps us to determine when to end the game. If our bird's border crosses any of the pipe's border or ground's border our program will call endGame() method where the program stops the timer to finish the game.

  • We have some attributes like: pipeSpeed, gravity and score. "score" attribute is used inside a function in order to increase the score of the game when a pipe is passed. "pipeSpeed" attribute is increased with the increasing score in order to make the game harder. Finally "gravity" attribute is used inside our gameKeysUp() & gameKeysDown() functions where we decide when and how the bird moves whenever we press the space keyword.