Inspiration
Temple Run! We all reminisced on the old game that Temple Run is, and decided to build from there. We wanted a game that makes being active fun and something that you can play in the comfort of your own similar to old wii games from back in the day. As a Golisano students, we understand that it may be hard to stay active and balance course work especially if you don't find going to the gym appealing.
What it does
The user has to run and dodge obstacles to survive as long as possible. To dodge obstacles, the user has to jump, duck, and move left/right to avoid hitting the randomly generated obstacles.
How we built it
We built our game using Google's mediapipe library for openCV to parse the player's movements. It parses those movements into commands and then sends them to a server running in C# on Godot. This is what controls the character and allows them to switch between lanes.
Challenges we ran into
The main issues we ran into were our struggles with aligning our movements in OpenCV to our movements in-game. The servers had trouble picking up on the correct movements from CV and it caused issues with the game's player character not being able to move. We also ran into issues with creating infinite runner loops for the game functionality and preventing obstacles from spawning too far away or the stage becoming separated. However, we learned from these issues and even now we're still thinking of ways to prevent them and become better developers.
Accomplishments that we're proud of
Our biggest accomplishments are as follows:
- Having custom models for our game that feature the COMS mascot and several other duck-related items.
- Having a working OpenCV that's able to track a person's movements through their computer camera.
- Having two servers between Python and C# that are able to send/receive inputs and translate them into game actions (locally, through keyboard inputs).
- Creating a game through
What we learned
We learned how to create several different models in blender and how to implement them into a game on Godot for usability. We also learned how to use OpenCV to track a person's movements through their computer's camera and how to use those movements to play games that challenge their fitness capabilities. Finally, we learned how to connect servers between Python and Godot C# to allow Godot to accept inputs from OpenCV and register them as in-game actions.
What's next for Duck Run
We plan on implementing a score system using floating bread slices through the river for players to collect. We also plan on adding different challenging stages to test player's ability to move/react quickly to the obstacles coming at them. We also plan on adding an obstacle that requires the player to jump over something to avoid taking damage. We would like to add this game to the COMS quackbox in the future