Skip to content

Welcome to Duck Hunt! 🦆🎮 This is a fun and nostalgic DuckHunt game I designed to level up my OOP and GUI skills in Java. Get ready to shoot some virtual ducks and improve your programming chops in the process. Have a quacking good time!

Notifications You must be signed in to change notification settings

mert-ergun/Java-Duck-Hunt-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Duck Hunt

Welcome to Duck Hunt! 🦆🎮 This is a fun and nostalgic DuckHunt game I designed to level up my OOP and GUI skills in Java. Get ready to shoot some virtual ducks and improve your programming chops in the process. Have a quacking good time!


Your PC must have java and javac version 1.8 to play. JavaFX is embedded in these versions.


Compile

To compile game, use this command:

javac *.java


Run

To run the game, use this command:

java DuckHunt


Settings

You can adjust the size and volume of the game by changing the SCALE and VOLUME values in the DuckHunt file.


Gameplay

  • In the main menu, press ENTER to start the game and ESCAPE to exit the game.

  • On the background selection screen, you can select the background with the right and left arrow keys and change the crosshair color with the up and down arrow keys. Press ENTER to start the game and ESCAPE to return to the main menu.

  • After the music, the game starts. In each level you have 3 times as many bullets as the number of ducks. If there is a duck left alive when you run out of bullets, you lose the game.

  • Ducks can bounce off the edges of the screen or hit each other.

  • When you move the crosshair closer to the right or left side of the screen, the screen slowly moves in that direction.

  • When you finish all 6 levels you win the game.

Have FUN!

About

Welcome to Duck Hunt! 🦆🎮 This is a fun and nostalgic DuckHunt game I designed to level up my OOP and GUI skills in Java. Get ready to shoot some virtual ducks and improve your programming chops in the process. Have a quacking good time!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages