Delphi Boot Camp Day 4 - Game Development with Delphi
- Game loop
- Using TRectangle
- Frames UI
- Motion Sensor
- High Scores via SQLite & LiveBindings
- Object Pooling
- Sprite Sheet Animation
- App Tethering
- Cross Platform Sound
Download the Delphi source code for free:
Download the C++Builder source code for free:
In Alien Invasion you will learn how we used TRectangle as a light weight image object and about utilizing TFrames to build your UI.
In Mars Rocket you will learn accessing the device motion sensor and building a high score system with SQLite and LiveBindings.
In Rocket Ship Delta you will learn how we used simple object pooling and sprite sheet animation.
Finally, in Space Rocks you will learn how we used App Tethering to build a gamepad for playing the games on a remote device and built a cross platform sound class.
Eli has deployed over 300 mobile games across Google Play, Apple App Store, Amazon Appstore, and Samsung Apps. He has also aggregated over 80,000+ flash games to 120+ million players worldwide reaching over 210+ million gameplays. And he has reached over 400,000 developers with hundreds of tips and tricks for Firemonkey through FMXExpress.com.
A: Adobe Flash
Q: can I somehow use google maps ?
A: There is a TMapView yes for mobile. You can also use location component on Windows and use the TWebBrowser component to display google maps - check out the sample - C:\Users\Public\Documents\Embarcadero\Studio\18.0\Samples\Object Pascal\Mobile Snippets\Location
Q: Can the games scale properly in iPad Pro 12.9" ?
A: It should scale properly, as the interface is totally responsive. However, the real estate of the game will increase. Rocket Ship Delta is the only one which may not scale right. It depends on the screen ratio. Can probably be tweaked as well.
Q: Can I develop an iOS app using Windows 10?
A: Yes, but to deploy to the device you need at least a MacMini or you can use MacInCloud.
Q: What about an older iPad or older android device is it possible to deploy directly to these devices and if so what do you need to do to configure the device to accept the executable?
A: The device in the video is an iPad 2 which is pretty old. Delphi Berlin supports Android 4.x+. Nothing special to deploy to any of those.
Q: Are there any beginners tutorials on the Embarcadero YouTube site for Delphi? C++ for that matter ?
A: Lots and lots. Check the HowTo playlist.
Q: Could you use a datasnap server to store/retrieve the game’s score data?
via TCP/port etc.
A: you can - if you have enterprise edition
A: With a PNG you can have any shape because it has transparency and you can just load that in TRectangle like normal. If you need the actual shape there is also a TCircle and then if you look in GetIt there is a Radiant Shapes component suite with a whole bunch of other shapes.
Q: What was the URL for creating the sounds?
Q: Is there a component for In-App purchases in Delphi?
A: yes - Advertising and In-App Purchase included built in - and there are third party components.
Q: When checking for collisions, you checked if the rectangles intersected. What about irregular shapes, such as a weird blob? How do you ensure the pixels collide and not just the rectangle that encompasses them?
A: How extreme the shapes are might lead you to use pixel by pixel collision detection. you can check the distance between the two objects. Depends on your game. Enable pixel collision detection when the objects get close enough together - to save calculation times.
Q: Can you explain steps to make a multiplayer game?
A: Depends on the game. AppTethering is one way to hook multiple players. another would be to use network or Bluetooth to connect multiple devices and players. You could have a "global world" on the internet as a server side process - and then have clients to let client games live and interact with that common world.
Please login first in order for you to submit comments
- Page :