removed REVEAL_START phase

This commit is contained in:
Settel 2021-09-17 22:54:46 +02:00
parent 7c06a83a80
commit 176c2de757
2 changed files with 3 additions and 37 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="play">
<div class="play__layout">
<div :class="['play__layout-playground', cssLayoutClass ]">
<div class="play__layout-playground">
<Quote :text="quote" />
<Sources :sources="sources" :selectable="selectable" />
</div>
@ -16,15 +16,6 @@
<script>
export default {
computed: {
cssLayoutClass() {
if (this.$store.state.game.phase === 'reveal-start') {
return 'play__layout-playground__fade-out'
} else if (this.$store.state.game.phase === 'reveal-show-count') {
return 'play__layout-playground__fade-in'
}
return
},
gamePhase() {
return this.$store.state.game.phase
},
@ -73,16 +64,6 @@ body,
&-playground {
position: relative;
flex-grow: 1;
&__fade-out {
animation: play-fade-out .5s ease-in-out;
animation-fill-mode: forwards;
}
&__fade-in {
animation: play-fade-in .5s linear;
animation-fill-mode: forwards;
}
}
&-right-column {
@ -93,11 +74,4 @@ body,
}
}
@keyframes play-fade-out {
to { opacity: 0; }
}
@keyframes play-fade-in {
0% { opacity: 0; }
90% { opacity: 100%; }
}
</style>

View File

@ -2,7 +2,7 @@ package game
import (
"fmt"
"time"
// "time"
)
func (gm *Game) revealShowCount() {
@ -11,15 +11,7 @@ func (gm *Game) revealShowCount() {
return
}
if err := gm.changeGamePhase(STATE_PLAY, PHASE_SELECT_QUOTE, PHASE_REVEAL_START); err != nil {
fmt.Println(err)
return
}
gm.notifyClients()
time.Sleep(1 * time.Second)
if err := gm.changeGamePhase(STATE_PLAY, PHASE_REVEAL_START, PHASE_REVEAL_SHOW_COUNT); err != nil {
if err := gm.changeGamePhase(STATE_PLAY, PHASE_REVEAL_QUOTE, PHASE_REVEAL_SHOW_COUNT); err != nil {
fmt.Println(err)
return
}