Skip to content

Hello, World program for SDL, the Simple DirectMedia Layer. Draws isometric grid and detects joystick.

Notifications You must be signed in to change notification settings

anachrocomputer/helloSDL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

helloSDL

Rudimentary "Hello, world" program for SDL, the Simple DirectMedia Layer library.

Displays a window containing an isometric grid, and uses the keyboad arrow keys to move around it. Also detects joystick(s) and reads input from them.

SDL Tutorial

To write this program, I referred to Beginning Game Programming v2.0 at Lazy Foo' Productions:

Lazy Foo' Productions - Beginning Game Programming v2.0

In particular, Lesson 19 on Gamepads and Joysticks.

Building the Program

Install the C compiler, linker and libraries.

sudo apt-get install build-essential

Install SDL libraries and the development package.

sudo apt-get install libsdl2-2.0
sudo apt-get install libsdl2-dev

Run 'make':

make

About

Hello, World program for SDL, the Simple DirectMedia Layer. Draws isometric grid and detects joystick.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published