top of page

Create Your First Project

Start adding your projects to your portfolio. Click on "Manage Projects" to get started

Programming pattern project in SDL

Language

C++

Main library

SDL2

A project aimed at learning to use programming patterns and modern C++ features in a program.

We used this project as an opportunity to get hands on experience of how design patterns help to structure a project in such a way that it stays maintainable and easy to develop as it grows.
To do this we were allowed to make any simple game we wanted.
I decided to make an impossible game clone where you jump over obstacles that come scrolling across the screen.

Programming the jumping physics for the player was the most difficult part of making a game like this in raw C++ since you have no game engine with pre made behaviours for you to use.

For me it was interesting to see how a C libarary like SDL can be used in a C++ project in an organised and structured maner.
In a previous course we had done code that interfaced directly with OpenGL and after that it felt good to have SDL as an abstraction layer to help preserve your sanity and let you focus on the bigger picture.

Look at the code or download the compiled binary from here!
https://github.com/forsbergsskola-se/212-cpp-game-Jacob-Roming

bottom of page