Skip to content

odrevet/teach-yourself-game-programming-sdl2

Repository files navigation

This is an SDL2 rewrite of the examples founds in "Teach Yourself Game Programming in 24 Hours" by Michael Morrison. ISBN 067232461X, 9780672324611 Google Books : https://books.google.fr/books/about/Sams_Teach_Yourself_Game_Programming_in.html?id=Ymt93N7FJ5wC

Modifications are:

  • Uses SDL2 (removed all WIN32 API calls and RC files)
  • Uses GCC (g++ with C11) and Make (removed all Visual Studio project files)
  • Can be build under Linux or Windows with MinGW
  • Moved source files into a "src" folder and images/sounds into a "res" folder
  • Created a Game Class for each game specific code
  • Removed build objects and binaries
  • in every games press 'q' to quit
  • See README.md in each folder for detailed comments about each game changes

Thanks to Michael Morrison for this very well written and usefull book which I hope this new "SDL2" rewrite will enchance the reader experiance, as the SDL2 is portable and the API is increadibly concise.

Required libraries

  • GCC and Make

  • SDL2 SDL2_image SDL2_ttf SDL2_mixer

Under Ubuntu those libraries can be installed with:

sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev

Build

Each directory contains a Makefile. To build just run make.

About

SDL2 rewrite of the examples in "Teach Yourself Game Programming In 24 Hours" by "Michael Morrison".

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published