Skip to content

gt-cs2110/sdl-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prototype for Basic SDL Project

This is a simple SDL "hello world" inspired by an SDL lab from ~10 years ago, but updated for SDL 2. I wonder if we can adapt this into a CS 2110 project — in particular Project 4, which is after they learn about C pointers and arrays, but before they learn about malloc() etc.

  • game.c: The student's game code. They are editing the videobuffer directly
  • graphics.c/graphics.h: A wrapper around SDL to avoid overwhelming students with SDL

This example just cycles through a silly animation when you press space. Escape or Q exits.

About

Sketch of possible Fall 2023 SDL project

Resources

Stars

Watchers

Forks