/sprite-blitting-c

Demonstrates sprite blitting using C and SDL2

Primary LanguageC

Sprite Blitting for C using SDL2

A simple program that shows how to blit sprites from a spritesheet to the screen using the standard SDL2 and SDL2_image libraries.

  • Loading a spritesheet
  • Setting the transparent color on the spritesheet
  • Blitting a portion of the spritesheet (a sprite) to a double buffer
  • Tinting the sprite a certain color
  • Clamping the render framerate to once a second

Screenshot