The post details the process of creating a base 'Unit' class for a real-time strategy game in Godot. It discusses how to extend this base class into specific units like 'Carrier' or 'Infantry' and solve type-related errors by creating a workaround for abstract classes in Godot. The technique involves using assert statements to ensure derived classes implement necessary functions, thus simulating abstract class behavior.

4m read timeFrom spin.atomicobject.com
Post cover image
Table of contents
Base ClassExtending the Unit Base ClassFaking Abstract Classes

Sort: