Dodge Falling Objects

Made with: C++, SFML

Solo project

Module ‘GDEV++’ - 8 weeks

June 2024

Functionality

The game itself is really simple: 80 spheres fall from the sky, and for every one that you dodge, you get a point!

Development process

This project was my first introduction to C++. A good amount of time was spent on setting up getting it working with mysis mingw and SFML, but once that was all setup it was pretty smooth sailing (atleast once I learned how header files worked). We did have to write all of our own physics and math, instead of using pre-exsting libraries, so certain things (like finding a square root) cost a bit more effort than usual.

Technical Overview

Everything going on in this project is pretty basic C++. For finding square roots, I used the babylonian method as we couldn’t use a standard sqrt function. Gravity is calculated using the mass of the earth (because why not, it was fun) and it’s applied using Newton’s law.