Skip to content

trexem/SDL2_Asteroids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASTEROIDS GAME by trexem

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

Try out

Download the /release folder and run AsteroidsGame

TODO

  • asteroids class
  • window class
  • renderer class
  • GAME (god)class
  • Refactor Game class

About

Testing and playing with SDL2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published