This is a video game that I developed back for FBLA's High School Competitive Events back in 2022. The code is a bit of a mess, and I would write it much differently if I were to create a game like this nowadays, however the game itself is fully complete and functional. And that is my intended purpose with this project. To demonstrate something fully complete and functional.
If you want to try out Roboduck without having to build it yourself, consider checking out the game on itch.io
In Roboduck you play as a bread-tossing toaster robot exploring the local park, feeding ducks, and avoiding obstacles.
- By pressing the respective buttons (A and D by default), you move left and right on screen.
- You can aim and click to throw bread; if the bread hits a duck, you will gain points.
- Bread that is thrown offscreen can't be collected by the player.
- You can collect loaves and other collectibles to add to your bread ammo count.
- Ducks will walk around randomly, making them harder to hit.
- Obstacles (trees, lily pads, buildings, etc.) will end the game when hit by the player.
Building Roboduck for Windows requires Python, Pygame, and PyInstaller.
Once you have Python and its package manager pip downloaded and installed, Pygame and PyInstaller can be installed with:
pip install pygame
pip install pyinstallerThen you can build Roboduck.exe using:
git clone https://github.com/gabekramirez/Roboduck.git
cd Roboduck
pyinstaller main.py -w -n Roboduck -i assets\\roboduckicon.ico -F --add-data assets:assetsBuilding Roboduck for the web requires Python, Pygame, and Pygbag.
Once you have Python and its package manager pip downloaded and installed, Pygame and Pygbag can be installed with:
pip install pygame
pip install pygbagThen you can build and run Roboduck for the web using:
git clone https://github.com/gabekramirez/Roboduck.git
pygbag RoboduckThis works, but it is recommended for the web build, however, that you first edit line 11 in main.py to IS_WEB = True before running pygbag.