|
|
@ -33,6 +33,9 @@ export default class Style { |
|
|
|
playerInstanz.drawCard(1, true, true); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.startUnoLoop(); |
|
|
|
} |
|
|
|
|
|
|
|
refreshHtml() { |
|
|
@ -77,6 +80,19 @@ export default class Style { |
|
|
|
if (!this.game.currentPlayerInstanz.canPlay) $('#drawCard').css('background-color', 'red'); |
|
|
|
} |
|
|
|
|
|
|
|
startUnoLoop(){ |
|
|
|
setTimeout(()=>{ |
|
|
|
$('.uno').css('width', '28vw'); |
|
|
|
$('#sayUno-glow').css('opacity', 0.8); |
|
|
|
setTimeout(()=>{ |
|
|
|
console.log("bibi") |
|
|
|
$('.uno').css('width', '25vw'); |
|
|
|
$('#sayUno-glow').css('opacity', 0.3); |
|
|
|
this.startUnoLoop(); |
|
|
|
}, 500); |
|
|
|
}, 500); |
|
|
|
} |
|
|
|
|
|
|
|
putCardAnim() { |
|
|
|
this.firstPutAnim.attr('src', './img/stackCards/' + this.game.cardOnDeck.color + '/' + this.game.cardOnDeck.name + '.png'); |
|
|
|
|
|
|
@ -213,10 +229,6 @@ export default class Style { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
animDrawCard(){ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
showDebug() { |
|
|
|
$('#debug').show(); |
|
|
|
this.refreshDebug(); |
|
|
|