removed REVEAL_START phase
This commit is contained in:
parent
7c06a83a80
commit
176c2de757
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="play">
|
<div class="play">
|
||||||
<div class="play__layout">
|
<div class="play__layout">
|
||||||
<div :class="['play__layout-playground', cssLayoutClass ]">
|
<div class="play__layout-playground">
|
||||||
<Quote :text="quote" />
|
<Quote :text="quote" />
|
||||||
<Sources :sources="sources" :selectable="selectable" />
|
<Sources :sources="sources" :selectable="selectable" />
|
||||||
</div>
|
</div>
|
||||||
@ -16,15 +16,6 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
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() {
|
gamePhase() {
|
||||||
return this.$store.state.game.phase
|
return this.$store.state.game.phase
|
||||||
},
|
},
|
||||||
@ -73,16 +64,6 @@ body,
|
|||||||
&-playground {
|
&-playground {
|
||||||
position: relative;
|
position: relative;
|
||||||
flex-grow: 1;
|
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 {
|
&-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>
|
</style>
|
||||||
|
@ -2,7 +2,7 @@ package game
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
// "time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (gm *Game) revealShowCount() {
|
func (gm *Game) revealShowCount() {
|
||||||
@ -11,15 +11,7 @@ func (gm *Game) revealShowCount() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := gm.changeGamePhase(STATE_PLAY, PHASE_SELECT_QUOTE, PHASE_REVEAL_START); err != nil {
|
if err := gm.changeGamePhase(STATE_PLAY, PHASE_REVEAL_QUOTE, PHASE_REVEAL_SHOW_COUNT); 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 {
|
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user