Mostly testing and playing with SDL2, it is still WIP so be patient, I'm learning about it.
You need to have installed SDL2 libraries, I'm using g++ compiler in Ubuntu and make command to compile. But there're tutorials for you to install and compile SDL2 with MingW32, Codeblocks or whatever, also check SDL official page
- AsteroidsGame.cpp is the main file
- Ship.hpp has the Shot and Ship classes
- Texture.hpp has the Texture class, which is used to load images and text into the screen
- Timer.hpp has a simple timer class, you can pause, resume and restart timer
Download the /release folder and run AsteroidsGame
- asteroids class
- window class
- renderer class
- GAME (god)class
- Refactor Game class