FireMonkey allows you to create complex and sophisticated cross-platform applications. From business applications to games, there is something for everyone. Dozens of sample applications are available on the GetIt portal. Today we’ll look at the classic arcade game Mars Rocket. The player must collect points and land the rocket without crashing in this game. Three stars are randomly placed throughout the game screen on each level, which you can collect for more points. Delphi 10.4 added support for Apple’s Metal API on macOS, which is enabled in this game.
When you start discovering the building patterns in the game you can easily learn how to build similar games with Delphi FireMonkey. Moreover, you can learn more about mobile development and audio and animation tricks with FireMonkey.
CreateExplosion(Ship.Position.X + (Ship.Width / 2),
Ship.Position.Y + (Ship.Height / 2));
Ship.Visible := False;
PlayerData.Lives := PlayerData.Lives - 1;
PlayerData.SpeedX := 0;
PlayerData.SpeedY := 0;
PlayerData.VerticalVelocity := 0;
PlayerData.HorizontalVelocity := 10;
Ship.RotationAngle := 45;
if PlayerData.Lives > 0 then
ScoreLBL.Text := IntToStr(PlayerData.Score);
procedure TGameForm.DelayedSettingsTimer(Sender: TObject);
if (FileExists(DataFilePath + MUSIC_FILENAME) AND (MusicPlayer.Filename='')) then
MusicPlayer.Filename := DataFilePath + MUSIC_FILENAME;
except on E: Exception do
ShowMsgBox('Music failed to load: ' + E.Message);
if HostEnabled = True then
if NetworkConnected=True then
DelayedSettings.Enabled := False;
Be sure to head over and check out the Mars Rocket game on the GetIt portal and download it from the IDE!
Get the resources you need to know more about the Hockey Playview app developed by Jes-soft and find screenshots of the game in this article.
Learn how you can develop iOS;;App C++ with Windows 11 application development tools in the next article.
Do you want to build your own Multi-Platform Mars Rocket Game For Android, iOS, macOS, And Windows? Try the Multiple Platform App Development, which will assist you in developing apps in the Delphi or C++ environments.