Skip to content

Instantly share code, notes, and snippets.

@raphaelrk
Created October 29, 2015 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raphaelrk/42816b811587786d3a49 to your computer and use it in GitHub Desktop.
Save raphaelrk/42816b811587786d3a49 to your computer and use it in GitHub Desktop.
Writing 2D Games in C using SDL
cs50 seminar
Simple DirectMedia Layer
Windows Max Linux iOS Android
input/output- audio, keyboard, mouse, joystick, graphics
Source engine
goals:
install libraries
create game window
create sprites
animate sprutes
use key/mouse input
won't do:
3d graphics
play audio
build for anything but linux
BUT will learn to use documentation
install aplliance
VM run sudo apt-get update
sudo apt-get install libsdl2-2.0-0 libsdl2-dbg libsdl2-dev libsdl2-image-2.0-0 libsdl2-image-dbg libsdl2-image-dev
git clone https://github.com/tlively/sdl_seminar.git
or wget https://github.com/tlively/sdl_seminar/master.zip
libsdl.org wiki
wiki.libsdl.org
API by category
a union is like a struct but only with enough memory
to hold one of its membr
code and such
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment