Feat : temporarily remove self background
This commit is contained in:
@@ -10,8 +10,6 @@ declare const webglUtils: {
|
|||||||
|
|
||||||
declare const resolveLygiaAsync: (source: string) => Promise<string>
|
declare const resolveLygiaAsync: (source: string) => Promise<string>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async function main(canvas: HTMLCanvasElement) {
|
async function main(canvas: HTMLCanvasElement) {
|
||||||
// Get A WebGL context
|
// Get A WebGL context
|
||||||
/** @type {HTMLCanvasElement} */
|
/** @type {HTMLCanvasElement} */
|
||||||
@@ -58,7 +56,6 @@ async function main(canvas: HTMLCanvasElement) {
|
|||||||
function render(time: number) {
|
function render(time: number) {
|
||||||
if (!gl) { return }
|
if (!gl) { return }
|
||||||
time *= 0.001; // convert to seconds
|
time *= 0.001; // convert to seconds
|
||||||
|
|
||||||
webglUtils.resizeCanvasToDisplaySize(gl.canvas);
|
webglUtils.resizeCanvasToDisplaySize(gl.canvas);
|
||||||
|
|
||||||
// Tell WebGL how to convert from clip space to pixels
|
// Tell WebGL how to convert from clip space to pixels
|
||||||
@@ -101,10 +98,10 @@ async function main(canvas: HTMLCanvasElement) {
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (!canvas.value) { return }
|
if (!canvas.value) { return }
|
||||||
|
console.log("e")
|
||||||
main(canvas.value);
|
main(canvas.value);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ function showWinnerScreen() {
|
|||||||
<div id="current_player"
|
<div id="current_player"
|
||||||
:class="(goStore.current_game?.current_turn && (goStore.current_game?.current_turn === goStore.self?.team)) ? 'self' : ''">
|
:class="(goStore.current_game?.current_turn && (goStore.current_game?.current_turn === goStore.self?.team)) ? 'self' : ''">
|
||||||
<PlayerSlot v-for="p in current_players" :player="p"></PlayerSlot>
|
<PlayerSlot v-for="p in current_players" :player="p"></PlayerSlot>
|
||||||
<AnimatedBackground></AnimatedBackground>
|
<!-- <AnimatedBackground></AnimatedBackground> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ResultDialog :isVisible="showResults" :won="isWinner" :players="goStore.current_game?.players"
|
<ResultDialog :isVisible="showResults" :won="isWinner" :players="goStore.current_game?.players"
|
||||||
@@ -96,7 +96,7 @@ function showWinnerScreen() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#current_player.self {
|
#current_player.self {
|
||||||
background-image: url('/images/bg-grass.png');
|
/* background-image: url('/images/bg-grass.png'); */
|
||||||
}
|
}
|
||||||
|
|
||||||
#market {
|
#market {
|
||||||
|
|||||||
Reference in New Issue
Block a user