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.
The project's technical documentation, generated with DocInsight, is available in the ./docs folder and on GitHub Pages. Further information and related links are available on the project website.
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.
If you need explanations or help in using this project in your own, please contact me. I can either direct you to an online resource, or offer you assistance on a fee-for-service basis. You can also contact me at a conference or an online presentation.
As an Embarcadero MVP, I benefit from the latest versions of Delphi and C++ Builder in RAD Studio as soon as they are released. I therefore work with these versions.
Normally, my libraries and components should also run on at least the current version of Delphi Community Edition.
There's no guarantee of compatibility with earlier versions, even though I try to keep my code clean and avoid using too many of the new ways of writing in it (type inference, inline var and multiline strings).
If you detect any anomalies on earlier versions, please don't hesitate to report them so that I can test and try to correct or provide a workaround.
This source code is distributed under the AGPL 3.0 or later license.
You are free to use the contents of this code repository anywhere provided :
- you mention it in your projects
- distribute the modifications made to the files provided in this AGPL-licensed project (leaving the original copyright notices (author, link to this repository, license) 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 (especially for a commercial project) I also offer classic licenses for developers and companies.
Some elements included in this repository may depend on third-party usage rights (images, sounds, etc.). They are not reusable in your projects unless otherwise stated.
The source codes of this code repository as well as any compiled version are provided “as is” without warranty of any kind.
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 :
- GitHub Sponsors
- Ko-fi in French or in English
- Patreon
- Liberapay
- Paypal
You can buy my softwares, my video games or a developer license for my libraries if you use them in your projects.
If you speak French subscribe to Zone Abo to access my complete online archive (articles, videos, training videos, ebooks).