/Flying-Chicken-Game

Flying Chicken Java Game

Primary LanguageJava

Flying-Chicken-Game

Flying Chicken Java Game

Hi guys, This is my term project in Ankara University.(COM244 Object Oriented Programming)
We tried to develop a game in NetBeans with using Java.

General lines

  • The main character is chicken(Actually a chick :D)Can move up,down,left and right
  • The chick can throw eggs. Every collepse between eggs and targets ,your score increase.
  • Cat is main bad character. they are flying in the screen randomly. You have to escape them.
    If you collide with them, game over.
  • We have two kind of target. One of them is more valuable.
  • We have some levels depends on amount of score

Screenshots

Optinally you can use two kind of game.:
* Basic version is we have only one type of target.
* Second version is we have two type of target
Default is second one. But if you delete TargetSmall.java file, you can reach the first one -mean basic version-

FlyingChicken FlyChi2

How can we run the program?

  • You should make a new java project in NetBeans.
  • Add files and images(jpg and png)
  • Optionally, you can change character or background images in your game. But at the same time you have to change their paths. For example if you wanna change background image.
    First of all you should visit Background.java file.
    Open it and find initBackground() function.
    You will see loadImage("src/javaoyunum7/bg.png") in there.
    src means our source files which is made by NetBeans. javaoyunum7 is our project name.
    You should upload a new .png or .jpg file as you wish in this project. (eg: newBackGround.jpg)
    Finally Change the path: loadImage("src/javaoyunum7/newBackGround.jpg")
  • You can run the project with Board.java

Imagination

You can add components as you wish when developing a game. For example can be a second bad character like dog.java
Or level and interface logic is improvable..
Have fun! :))