Giter Site home page Giter Site logo

odrevet / teach-yourself-game-programming-sdl2 Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 1.0 3.41 MB

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

Makefile 2.89% C++ 97.11%
video-game video-game-engine book sdl2

teach-yourself-game-programming-sdl2's Introduction

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.

teach-yourself-game-programming-sdl2's People

Contributors

odrevet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

zuloloxi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.