Jump to content
Patrick PREMARTIN

Some games and project samples with FireMonkey in Delphi

Recommended Posts

Hello

 

After talking about some of my utilities in November, I thought it would be interesting to talk about the other side: video games.

 

I only do 2D, generally using FireMonkey. On classic FMX projects I add some of my libraries: game controllers, support for graphic elements as user components, help bar, music, score and settings storage. Everything is open source and available on GitHub.

 

I have a few game projects developed under Delphi also visible on GitHub. They're available as executables or will be when I'm happy with how they work. Files containing licensed items, passwords or encryption keys are not put online. This prevents programs from being compiled, but not from reading their source code.

 

If you're interested in the subject of game coding, here are a few repositories to look into:

 

  • Delphi FMX Game Snippets: demos and examples of features and games (such as match-3, coded today as a TFrame).
  • My Delphi libraries: a set of units I use everywhere, including SVG image list management and settings storage for my programs.
  • Delphi Game Engine: components and libraries to support what we use in classic video games, with as few dependencies as possible and ideally cross-platform.
  • Gamolf FMX Game Starter Kit: I presented it at the Embarcadero online conference in July 2024. This starter kit has evolved and simplified quite a bit since then. I've started switching my games over to it. There's still all the documentation to be produced before it's really usable by you, but I'm available if you have any questions.
  • A pack of Delphi games: the list of my open source games available on GitHub.

 

These projects are intended to work as much as possible with what Embarcadero provides, to be as simple as possible to use, consult and understand.

 

I don't and never will support everything done by Castle Game Engine, Gorilla3D, APUS or other specialized game engines. On the other hand, what I offer should satisfy the majority of 2D video games (or 3D if you manage it yourself).

 

PS: As with the utilities, the game sites are not all available and redirect to Itch.io or GitHub. Yesterday's release of this repository and the start of work on two others should finally allow me to create the hundred or so sites I've been waiting for. That should keep me busy for another year or two... 😉

  • Like 1

Share this post


Link to post

Last week-end I finished the rebuild in Delphi FMX of the video game Bidioo I've created in AGK Basic in 2013. It's a match-3 game. I used the sample match-3 TFrame added to Delphi FMX Game Snippets two weeks ago.

 

The graphics are in SVG. I use Skia like in my other recent games.

 

On iOS and macOS with Metal it's very speed. The best experience is of course on an iPad.

On Windows without the Skia raster it works as expected (in a VM, I didn't check on a real PC).

On Android it's too slow to have the full animations, but it works. I've to find the reason and check with Skia4Delphi and EMB teams if a solution can be found.

 

The 2.0 version has been published on stores. you'll find the download links on this page. I can send you free coupons if you want to test the game on an Apple device. Just send me a private message. For Windows, use Itch to get the installer (and the game) for free.

 

The source code of the project are on GitHub except some files where are stores the SVG (the images are under closed licenses). It won't compile as it instead of the match-3 sample project.

Some demos are available from YouTube and PeerTube.

 

If you want to talk about game programming in Delphi or this particular game, you know how to message me.

We can do anythings in Delphi. Just try. 😉

  • Like 2

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×