Links
My Hunter
My Hunter is an Epitech project made with CSFML. This project was created with the goal of getting to know that graphical library, while reproducing (with some creative freedom) the Duck Hunt game.
- Installation
Linux Operating Systems ONLY
You can download the game from itch.io to just get the binary and ressources.
Follow the instructions and launch the game with the following command in the unpacked folder :
./my_hunter
To build it yourself, you will need to download the repository from github.
You’ll also need CSFML installed.
Once this is done, run the following command in the unpacked folder :
make && ./my_hunter
- Usage
Ducks are animals, and like us, they poop.
For some mysterious reasons thousands of ducks started flying just above you.
You will not be a toilet for ducks.
Good you have this huge laser-gun.
In this game, your goal is to shoot flying ducks with a laser-gun.
As time pass by, more and more ducks will take-off and start flying around.
When the red bar is filled, it’s over, you died intoxicated with guam!
If the game closes suddenly, it is because you lost. Your score will be saved
The Orange and Green bars represents the reload and energy storage state of your laser gun.
Move the mouse arround to visualize your target range, and click to shoot a laser beam.
Everytime you kill a duck, you win a credit !
Buy upgrades to survive :
- Plant trees to lower intoxication levels over time
- Construct solar panels to harvest electricity faster
- Lower your laser reload time
- Enlarge your laser range
- Technical Details
Built with CSFML on emacs only.
The code is not meant to be re-used.
See my csfml lib if you’re looking for usable tools.
The ducks are represented by simple structs with minimum amout of informations linked to them.
On each update, the system iterate through all active ducks and use an “image bank” to avoid duplicating data.
Trigonometric functions are used to fastly determine which duck is in range of the laser.
The “Hard” mode spawns more ducks that you can ever kill, but it is a nice showcase of the performances of the game.