Add Clear Board Function to Engine
This commit is contained in:
parent
49b036ffe9
commit
016b166d50
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue