From eebca998cb8709b4d4f6c928114604f38e2ab1cf Mon Sep 17 00:00:00 2001 From: Marvin Blum Date: Mon, 21 Dec 2020 17:27:16 +0100 Subject: [PATCH] Manage game state through object injection everywhere, fixed filling buffer and stopping clock in Game. --- src/App.vue | 24 ++++-------------------- src/components/Buffer.vue | 10 ++++++---- src/components/Matrix.vue | 23 +++++++++++++++++------ src/components/Sequences.vue | 6 ++++-- src/components/Timer.vue | 22 +++++++++++++++++++--- src/components/timer.ts | 28 ---------------------------- src/game/Game.test.ts | 4 ++++ src/game/Game.ts | 23 +++++++++++------------ src/sass/main.scss | 5 +++++ 9 files changed, 70 insertions(+), 75 deletions(-) delete mode 100644 src/components/timer.ts diff --git a/src/App.vue b/src/App.vue index 6bb5d41..e7c3b6a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,13 +8,12 @@