Count down timer and some styling.

This commit is contained in:
2020-12-21 16:10:26 +01:00
parent 95f2a715b4
commit a66f6e1fa4
4 changed files with 36 additions and 16 deletions

View File

@@ -14,6 +14,7 @@
import Buffer from "./components/Buffer.vue";
import Matrix from "./components/Matrix.vue";
import { Game } from "./game/Game";
import {useTimer} from "./components/timer";
export default defineComponent({
components: {
@@ -23,6 +24,7 @@
Matrix
},
setup() {
const {updateCountdown} = useTimer();
const game = new Game({
matrix: [
"AA", "BB", "CC",
@@ -50,6 +52,7 @@
provide("sequences", readonly(sequences));
provide("size", readonly(size));
provide("matrix", readonly(matrix));
updateCountdown(game, remainingMilliseconds);
return {
level