srcimon / screwbox

Minimalist 2D Java game engine. Result of covid lockdown.
MIT License
8 stars 0 forks source link

add easy to use api for enabling core features #129

Closed srcimon closed 10 months ago

srcimon commented 10 months ago

The engine is lacking a simple way to enable it's core features.

A simple API could look line: entities().addPhysicsSystems().attachCameraTo(4711)

Maybe special builder pattern for more complex features would be nice.

srcimon commented 10 months ago

environment().enablePhysics().enableLight()

srcimon commented 10 months ago
engine.environment().setup()
                .enablePhysics()
                .enableRendering()
                .enableTweening()
                .enableAll()
                .FpsLogging()
                .gravity(200)
                .attachCameraToEnity(41);
srcimon commented 10 months ago

solved in main