Java

[Tutorial 5] libGDX – The Component

Component interface: After declaring the entity class it is time for the component interface.What methods should a component have? Keep in your mind, that scene2d divides the gameloop iteration into two different parts. In every gameloop there is a update() and render() method called. The update-method is responsible for moving the…

[Tutorial 3] libGDX – Engine subsystems

Which components does a engine consists of? Each engine has subsystems, which are responsible for an specific functionality. Some of these components depend on other components. Some might be optional, while others are required. Core components: File IO Rendering User Interface/Input More components: Audio Scripting Physics Light Path-finding Network Persistence What about…

[Tutorial 2] libGDX – Why component based?

Why to use a component based design? Yeah right, that is a good question. Most game programming tutorials start with considering inheritance hierarchies, how objects should inherit from other objects (Is-a Relation). At the beginning this makes sense and everything is fine and clear. But while the game complexity grows, the inheritance structure…