An open API service indexing awesome lists of open source software.

https://github.com/anachrocomputer/hellosdl

Hello, World program for SDL, the Simple DirectMedia Layer. Draws isometric grid and detects joystick.
https://github.com/anachrocomputer/hellosdl

c gamepad graphics isometric joystick joystick-control sdl2

Last synced: 7 days ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](https://lazyfoo.net/tutorials/SDL/index.php)

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`