mirror of
https://github.com/Kugelschieber/breach.git
synced 2026-01-18 12:00:25 +00:00
Count down timer and some styling.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user