FireMonkey is the cross-platform component and library framework provided with Delphi. It allows to develop native (= compiled) software for Windows, Mac, iOS, Android and Linux from a single code base.
As this framework is based on a graphics engine it is ideal for developing 2D and 3D video games without learning how to use a specialized game engine (like for example the great Castle Game Engine which also includes many tools (map editors, sprites, ...) for Pascal game developers).
You'll find more game engines in Pascal (Delphi, Lazarus, ...) listed on Awesome Pascal.
This code repository offers reusable units and examples for your video game projects.
It comes from years of game development for fun and live coding sessions on Twitch started in 2021 (and a long time before Twitch).
You can find examples of classic game features in Delphi FMX Game Snippets if you are looking for inspiration.
Some of my video games are open sourced on GitHub. Find them as submodules of this repository.
Since July 2024, a game coding starter kit in the form of FireMonkey projects is available. This is the Gamolf FMX Game Starter Kit. It uses Delphi Game Engine for the basic routines (sound, game controllers, user interface, scores, ...) and provides you with a Delphi project template to create your own games, with numerous examples.
This code repository contains a project developed in Object Pascal language under Delphi. You don't know what Delphi is and where to download it ? You'll learn more on this web site.
- How to code a Christmas Game in Delphi with FireMonkey (in English)
- Code revue of the Christmas Game (in English)
- Des resources disponibles pour apprendre et des exemples d'animations simples (in French)
- Développer un casse briques avec Delphi (in French)
- Using FireMonkey as a game engine (in English)
- Utiliser FireMonkey comme moteur de jeux vidéo (in French)
- Make games in Delphi (2024 edition) (in English)
- Make games in Delphi (2024 edition) (live session replay in English)
- Faites des jeux en Delphi (v2024) (in French)
Follow my development streams of software, video games, mobile applications and websites on my Twitch channel or as replays on Serial Streameur mostly in French.
To download this code repository, we recommend using "git", but you can also download a ZIP file directly from its GitHub repository.
This project uses dependencies in the form of sub-modules. They will be absent from the ZIP file. You'll have to download them by hand.
- DeveloppeurPascal/librairies must be installed in the ./lib-externes/librairies subfolder.
If you want to use game controllers features for iOS or macOS, don't forget to add the GameController framework to your SDK(s) in Tools/Options/Deployment/SDK and refresh the files.
The components packages need only the RTL package to avoid conflicts during their installation.
For components TDGEGamepadDetected and TDGEHelpBar you need Skia4Delphi enabled in your projects. It's used by unit Olf.RTL.SVGToBitmap.pas from DeveloppeurPascal/librairies to draw the SVG into images bitmap.
This source code is distributed under the AGPL 3.0 or later license.
You are generally free to use the contents of this code repository anywhere, provided that:
- you mention it in your projects
- distribute the modifications made to the files supplied in this project under the AGPL license (leaving the original copyright notices (author, link to this repository, license) which must be supplemented by your own)
- to distribute the source code of your creations under the AGPL license.
If this license doesn't suit your needs, you can purchase the right to use this project under the Apache License 2.0 or a dedicated commercial license (contact the author to explain your needs).
These source codes are provided as is, without warranty of any kind.
Certain elements included in this repository may be subject to third-party usage rights (images, sounds, etc.). They are not reusable in your projects unless otherwise stated.
If you want an answer from the project owner the best way to ask for a new feature or report a bug is to go to the GitHub repository and open a new issue.
If you found a security issue please don't report it publicly before a patch is available. Explain the case by sending a private message to the author.
You also can fork the repository and contribute by submitting pull requests if you want to help. Please read the CONTRIBUTING.md file.
If you think this project is useful and want to support it, please make a donation to its author. It will help to maintain the code and binaries.
You can use one of those services :
or if you speack french you can subscribe to Zone Abo on a monthly or yearly basis and get a lot of resources as videos and articles.