PDA

View Full Version : Space Shooter Example



DraculaLin
05-08-2020, 11:34 AM
Simple space shooter example made by Afterwarp engine.
Complier: Delphi 10.3
https://github.com/Elem8100/2D-SpaceShooter

Download:
https://github.com/Elem8100/2D-SpaceShooter/releases/download/v1.0/SpaceShooter.rar

https://i.imgur.com/kWuCbst.jpg

https://i.imgur.com/zgdBvdC.jpg

SilverWarior
05-08-2020, 06:23 PM
That looks very nice.

Ñuño Martínez
06-08-2020, 08:57 AM
Nice.

I've taken a look to the sources and seems you're using OBJECTs mixed with CLASSes, and also RECORDs with class methods. Quite an odd way doing things.

de_jean_7777
06-08-2020, 06:20 PM
Nice.

I've taken a look to the sources and seems you're using OBJECTs mixed with CLASSes, and also RECORDs with class methods. Quite an odd way doing things.

I do this too in my code, depending on what I need. RECORDs when I want to save space or have lots of these objects, or global functionality that doesn't need any inheritance, OBJECTs when I want things on stack but that can have inheritance, to avoid unnecessary allocating memory for things, and CLASSes for general object oriented programming. All depends on what it does and if it needs to be instanced ever.