Skip to content

Demonstrates sprite blitting using C and SDL2

Notifications You must be signed in to change notification settings

Andres6936/SBS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Demonstrates sprite blitting using C and SDL2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 87.6%
  • CMake 12.4%