Shift Run
Uni project about making a short game using C++ SDL2. It was inspired by shape rush when I made it in a jam, more of a platformer version. Survive as long as you can by transforming into 3 shapes, all with different abilities!
Worked on:
- Platformer Physics
- Collision
- Rendering in SDL2
- Animations
- Converting into console format, using linux commands and a virtual machine
Controls:
Left and right arrow keys = move
Up and down arrows = scroll UI buttons
space = jump and UI activate
1 = Square
2 = Triangle
3 = Circle
P = pause
Shift = special shape ability
Assets:
- Fire city Creative Commons music
- Various FreeSound sound effects
Code
Character
Every object has a base script of game object, which has its start up rendering:
The character played has its own physics system, using multiple forces such as xy velocity and gravity:
Prefabs
The prefab manager handles spawning obstacle prefabs for the player to dodge.
The prefab manager handled initializing all the static prefabs once, then they are cloned and used for each spawn:








