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.
- Host: GitHub
- URL: https://github.com/anachrocomputer/hellosdl
- Owner: anachrocomputer
- Created: 2021-11-05T23:21:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-05T23:23:12.000Z (over 4 years ago)
- Last Synced: 2025-03-06T00:44:37.960Z (about 1 year ago)
- Topics: c, gamepad, graphics, isometric, joystick, joystick-control, sdl2
- Language: C
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`