diff --git a/src/App.vue b/src/App.vue index bf857ed..a3db3ac 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,11 +6,12 @@
- + +
- - + +
-
+
+ + + + + +
+
+ + +
+ +
+ + + + + + + + + + {{ levels[currentLevel].task }} +
+
+ mdi-check + {{ levels[currentLevel].points }} Points +
+
+
+
+
+ +
@@ -93,26 +137,42 @@ -
+ + + + + +
- - Reset - - Prev Level - - Next Level - - + + + Reset + + Prev Level + + Next Level + + + + + +
@@ -125,6 +185,15 @@ + + + + + + + @@ -185,6 +254,16 @@ Stop + + + + + + + X + +
@@ -206,16 +285,25 @@ export default { beforeMount: function() {}, mounted: function() { this.reset(); + this.resetcover() }, methods: { copycomp: function() { navigator.clipboard.writeText(this.levels[this.currentLevel].compliment) }, + resetcover: function() { + for (var x = 0; x < this.gamecovers.length; x++) { + this.gamecovers[x].index = x; + } + }, + reset_task: function() { + this.levels[this.currentLevel].task = ""; + this.levels[this.currentLevel].completed = false; + }, reset: function() { this.currentLevel = 0; this.score = 0; this.currenttask = 0; - this.name = ""; for (var x = 0; x < this.levels.length; x++) { this.levels[x].completed = false; this.levels[x].index = x; @@ -248,7 +336,7 @@ export default { }, givebonuspoints: function() { this.score += parseInt(this.bonuspoints); - this.overlayimg = "assets/bonuspoints.png"; + this.overlayimg = "assets/00Extras/bonuspoints.png"; this.showoverlay = true; setTimeout(this.stopoverlay, 2000); }, @@ -257,6 +345,13 @@ export default { this.currentLevel = i; this.ready = true; }, + changecover: function() { + this.ready = false; + this.currentcover = this.cover; + this.currentforeground = this.gamecovers[this.currentcover].background; + this.ready = true; + this.reset(); + }, stopoverlay: function() { this.showoverlay = false; }, @@ -283,11 +378,18 @@ export default { limit: 200, }, fontFamily: "Abel", + + gamecovers: [ + { covername: "Sample 1", coverforeground: "assets/00Covers/samplegame1.png", coverbackground: "assets/00Covers/samplegame1.webm" }, + { covername: "Sample 2", coverforeground: "assets/00Covers/samplegame2.png", coverbackground: "assets/00Covers/samplegame2.webm" }, + { covername: "Sample 3", coverforeground: "assets/00Covers/samplegame3.png", coverbackground: "assets/00Covers/samplegame3.webm" }, + ], + levels: [ { title: "START - Cover", - foreground: "assets/gamecover.png", - background: "assets/gamebackground.webm", + foreground: "", + background: "", task: "", points: 0, }, @@ -783,14 +885,14 @@ export default { { title: "SPOON - Task 3", foreground: "assets/white.png-trans.png", - background: "assets/webmspoon03.webm", + background: "", task: "Task 3", points: 2000, }, { title: "HAIRBRUSH - Task 1", foreground: "assets/white.png-trans.png", - background: "assets/webm118.webm", + background: "", task: "Task 1", points: 2000, jumptask: { @@ -801,21 +903,21 @@ export default { { title: "HAIRBRUSH - Task 2", foreground: "assets/white.png-trans.png", - background: "assets/webm119.webm", + background: "", task: "Task 2", points: 2000, }, { title: "HAIRBRUSH - Task 3", foreground: "assets/white.png-trans.png", - background: "assets/webm120.webm", + background: "", task: "Task 3", points: 2000, }, { title: "BELT - Task 1", foreground: "assets/white.png-trans.png", - background: "assets/webm134.webm", + background: "", task: "Task 1", points: 2000, jumptask: { @@ -826,21 +928,21 @@ export default { { title: "BELT - Task 2", foreground: "assets/white.png-trans.png", - background: "assets/webm135.webm", + background: "", task: "Task 2", points: 2000, }, { title: "BELT - Task 3", foreground: "assets/white.png-trans.png", - background: "assets/webm136.webm", + background: "", task: "Task 3", points: 2000, }, { title: "BOTTLE - Task 1", foreground: "assets/white.png-trans.png", - background: "assets/webm137.webm", + background: "", task: "Task 1", points: 2000, jumptask: { @@ -851,21 +953,21 @@ export default { { title: "BOTTLE - Task 2", foreground: "assets/white.png-trans.png", - background: "assets/webm138.webm", + background: "", task: "Task 2", points: 2000, }, { title: "BOTTLE - Task 3", foreground: "assets/white.png-trans.png", - background: "assets/webm139.webm", + background: "", task: "Task 3", points: 2000, }, { title: "VEG - Task 1", foreground: "assets/white.png-trans.png", - background: "assets/webm137a.webm", + background: "", task: "Task 1", points: 2000, jumptask: { @@ -876,21 +978,21 @@ export default { { title: "VEG - Task 2", foreground: "assets/white.png-trans.png", - background: "assets/webm137b.webm", + background: "", task: "Task 2", points: 2000, }, { title: "VEG - Task 3", foreground: "assets/white.png-trans.png", - background: "assets/webm137c.webm", + background: "", task: "Task 3", points: 2000, }, { title: "TRUTH - Question 1", - foreground: "assets/truthbonus.png", - background: "", + foreground: "assets/white.png-trans.png", + background: "assets/00Extras/truthbonus.webm", task: "Question 1", points: 100, jumptask: { @@ -900,8 +1002,8 @@ export default { }, { title: "TRUTH - Question 2", - foreground: "assets/truthbonus.png", - background: "", + foreground: "assets/white.png-trans.png", + background: "assets/00Extras/truthbonus.webm", task: "Question 2", points: 100, jumptask: { @@ -911,8 +1013,8 @@ export default { }, { title: "TRUTH - Question 3", - foreground: "assets/truthbonus.png", - background: "", + foreground: "assets/white.png-trans.png", + background: "assets/00Extras/truthbonus.webm", task: "Question 3", points: 100, jumptask: { @@ -923,16 +1025,19 @@ export default { { title: "YOU WON!! HIGHEST SCORE!", foreground: "assets/white.png-trans.png", - background: "assets/webm129.webm", + background: "assets/00Extras/truthbonus.webm", task: "YOU WON! You have completed everything! Do something EXTRA crazy CUMMMMM HARDDD!!", points: 2000, }, ], - /*overlayselect: "",*/ + overlayselect: "", levelselect: "", currentLevel: 0, score: 0, currenttask: 0, + currentcover: 0, + currentforeground: "assets/00Extras/gamecover1.png", + cover: "", name: "", autonext: false, ready: false,