Tutorial (6 parts) about programming a game in pascal / lazarus using SDL2.
The repository contains the source code for all 6 parts.
The original tutorial (and "c" - source code) can be found at: https://www.parallelrealities.co.uk/tutorials/#ppp
Windows and Linux:
- sdl2
- sdl2-image
- sdl2-mixer
- [optional: ] Jsontools (https://www.getlazarus.org/json/)
[and it's forks on github: https://github.com/peardox/JsonTools] - Lazarus / Freepascal
- Pascal SDL2 Header files
a good installation guide for SDL2 and the SDL2-headerfiles can be found at: https://www.freepascal-meets-sdl.net/
Because this was the best complete tutorial i found on the net which explains in easy steps how to program a game with SDL2. And I want to learn how to use SDL2 to get easy access to graphic, sound and input.
If you have any contributions, feel free to drop a pull request or send me a mail.
Arrow Keys -> Move
i -> Jump
SPACE key restart the game
ESC key or the window´s close button or a mouseclick inside of the game window closes the game.
Parallel Realities for their good tutorials and the source code and to the creator of "freepascal-meets-sdl" with his good tutorials
Copyright (C) 2015-2018 Parallel Realities
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, OR (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.