diff --git a/lib/src/Engine.dart b/lib/src/Engine.dart index 539e6d2..d15987d 100644 --- a/lib/src/Engine.dart +++ b/lib/src/Engine.dart @@ -8,6 +8,8 @@ class Engine { // Game Tick Rate - *does* impact game speed TODO add configurable option int _MS_PER_STEP = 1000 ~/ 3; + int get stepsPerSecond => 1000 ~/ _MS_PER_STEP; + set stepsPerSecond(int val) => _MS_PER_STEP = 1000 ~/ val; // Max Frame (i.e. Rendering) rate - does *not* impact game speed final int _MS_PER_FRAME = 1000 ~/ 30;