MASSIVE performance improvement by fixing rendering

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-13 22:35:37 +01:00
parent 2f66ba451a
commit cf357b164d
3 changed files with 109 additions and 100 deletions

View File

@@ -5,7 +5,12 @@ import 'package:wolf_dart/features/entities/enemies/dog.dart';
import 'package:wolf_dart/features/entities/entity.dart';
typedef EntitySpawner =
Entity? Function(int objId, double x, double y, int difficultyLevel);
Entity? Function(
int objId,
double x,
double y,
int difficultyLevel,
);
abstract class EntityRegistry {
// Add future enemies (SSGuard, Dog, etc.) to this list!