From 016b166d50d393e0f1a242e295a4dd15ff1217d0 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 8 Jul 2018 19:45:04 +0200 Subject: [PATCH] Add Clear Board Function to Engine --- lib/src/App.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/src/App.dart b/lib/src/App.dart index 140e9a3..21847ac 100644 --- a/lib/src/App.dart +++ b/lib/src/App.dart @@ -28,11 +28,14 @@ class App { } void reset() { -// grid = new Grid(100, 100); -// running = false; grid.reset(); } + void clear() { + grid = new Grid(100, 100); + running = false; + } + void process(num now) { _drawLag += _elapsed.elapsedMilliseconds; _updateLag += _elapsed.elapsedMilliseconds;