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 Firemonkey Ping Pong Game Tutorial Android 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.

close

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

Related posts
AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

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

DelphiIDEShowcaseWindows

Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores

DelphiFiremonkeyIDEIOSOSXWindows

DelphiCon 2020 FireMonkey Sessions Available Starting November 19

AndroidC++BuilderDelphiDemoFiremonkeyWindows

Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed

Leave a Reply