Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodC++BuilderCode SnippetDelphiDemoFiremonkeyIOSOSXShowcaseWindows

Motion Sensor Based Ping Pong Game Tutorial For #Delphi Firemonkey On Android And IOS

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi Firemonkey Ping Pong Game Tutorial Android IOS | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSBuilding games with Delphi Firemonkey is pretty straight forward and I found a simple beginners tutorial over on YouTube that demonstrates using the motion sensor in your mobile device to create a ping pong style game using simple objects. A game loop is created using a few TTimers and then the motion sensor is used to move paddles at the bottom of the screen back and forth. For a more advanced version you would really only need one timer. A ball (actually a TRectangle) bounces around the screen and off of the paddles. The tutorial itself is written in Polish but the code is easily understandable and you can run a translator like Google Chrome against it for an English version. The tutorial was built in Delphi XE7 but the code should be the same in Delphi XE8. There is a video that demonstrates the end result below. The code should work on Android, IOS, OSX, and Windows. Additionally, you should be able to follow the tutorial in Appmethod and C++Builder as well.

Head over and check out the full tutorial for building a motion sensor based ping pong game in Delphi Firemonkey.

As a follow up here is a video tutorial of building a 3D ping pong game with Delphi Firemonkey.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts
DelphiDemoFiremonkeyLinuxOSXShowcaseWindows

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging

DelphiFiremonkeyShowcaseUtilityWindows

Unleashing Creativity With Song Writer AI: A Deep Dive

DelphiFiremonkeyShowcaseWindows

How To Build Stable Diffusion Text To Image Prompts

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

Sign up for our Newsletter and
stay informed

Leave a Reply