Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

shooter-2D

2D shooter - Pascal tutorial using SDL2

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

'2D Shoot em up' game tutorial using SDL2 / Pascal

Tutorial (15 parts) about programming a game in pascal / lazarus using SDL2.

The repository contains the source code for all 15 parts.

The original tutorial (and "c" - source code) can be found at: https://www.parallelrealities.co.uk/tutorials/#shooter

Another variant / adaption can be found in the SDL2FPC-Tutorials made by a chinese programmer...

Dependencies

Windows and Linux:

  • sdl2
  • sdl2-image
  • sdl2-mixer
  • 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/

Why ?

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.

Bugs / Contributions

If you have any contributions, feel free to drop a pull request or send me a mail.

Controls:

Arrow Keys -> Move

Left ctrl -> Fire

ESC key or the window´s close button or a mouseclick inside of the game window closes the game.

Special Thanks / Credits

Parallel Realities for their good tutorials and the source code and to the creator of "freepascal-meets-sdl" with his good tutorials

License

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.