MVP #5 #68
|
@ -1,12 +1,9 @@
|
|||
<script lang="ts">
|
||||
import Layout from '../Components/Layout.svelte'
|
||||
import Input from '../../../lib/components/Inputs/Input.svelte'
|
||||
import { checkPoint } from '$lib/TStypes/experiences'
|
||||
import { answer } from '$lib/utils/database/game'
|
||||
|
||||
export let data: { name: string; checkPoint: checkPoint }
|
||||
const { checkPoint, name } = data
|
||||
let myAnswer = ''
|
||||
|
||||
export let nextQuestion
|
||||
</script>
|
||||
|
@ -16,7 +13,6 @@
|
|||
control={'not-control'}
|
||||
nextQuestion={() => {
|
||||
nextQuestion()
|
||||
myAnswer = ''
|
||||
}}
|
||||
>
|
||||
<span slot="title">{name}</span>
|
||||
|
|
|
@ -41,7 +41,9 @@
|
|||
|
||||
const nextQuestion = () => {
|
||||
//další otázka
|
||||
if (control !== null) {
|
||||
|
||||
console.log({ control })
|
||||
|
||||
control = null
|
||||
if (clientAnswers.pos === clientAnswers.end) view = 'end'
|
||||
else {
|
||||
|
@ -49,7 +51,6 @@
|
|||
view = 'map'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//let answers
|
||||
//$: if (clientAnswers.pos < clientAnswers.end) answers = parseQuestion(gameData.questions[clientAnswers.pos].answer, gameData.questions[clientAnswers.pos].type) //delete
|
||||
|
|
Loading…
Reference in New Issue