Browse Source

🍱: add maps backgrounds

master
Adrien 3 years ago
parent
commit
c32061f81f
17 changed files with 32 additions and 10 deletions
  1. +18
    -10
      src/components/Battleground.vue
  2. +14
    -0
      src/gameInfos/battlegrounds.js
  3. BIN
      static/backgrounds/alterac-pass.jpg
  4. +0
    -0
      static/backgrounds/battlefield-of-eternity.jpg
  5. BIN
      static/backgrounds/blackhearts-bay.jpg
  6. BIN
      static/backgrounds/blackheartsbay.jpg
  7. BIN
      static/backgrounds/braxis-holdout.jpg
  8. BIN
      static/backgrounds/cursed-hollow.jpg
  9. BIN
      static/backgrounds/dragon-shire.jpg
  10. BIN
      static/backgrounds/garden-of-terror.jpg
  11. BIN
      static/backgrounds/hanamura.jpg
  12. BIN
      static/backgrounds/infernal-shrines.jpg
  13. BIN
      static/backgrounds/sky-temple.jpg
  14. BIN
      static/backgrounds/tomb-of-spider-queen.jpg
  15. BIN
      static/backgrounds/towers-of-doom.jpg
  16. BIN
      static/backgrounds/volskaya.jpg
  17. BIN
      static/backgrounds/warhead-junction.jpg

+ 18
- 10
src/components/Battleground.vue View File

@@ -1,10 +1,9 @@
<template>
<div class="battleground" v-if="battleground">
<div class="battleground-background" :style="backgroundCss"/>
<div class="battleground-content">
<div>Welcome to {{ battleground.name }}</div>

<div id="objectives" class="objectives">
<div class="row" v-for="objectiveRow in battleground.objectives">
<div class="objectives-row" v-for="objectiveRow in battleground.objectives">
<template v-for="objective in objectiveRow">
<Objective :objective="objective"></Objective>
</template>
@@ -16,21 +15,26 @@
</template>

<style lang="sass" scoped>
$border-style: 1px solid #66CCFF
$border-style: 1px solid $blizzard-font-color

.battleground
background-image: url(/static/backgrounds/alterac-pass.jpg)
background-size: contain
&-content
backdrop-filter: blur(4px)
&-background, &-content
height: 100vh
width: 100vw

&-background
position: absolute
background-size: cover
background-position: center
filter: blur(2px) brightness(70%)
z-index: -10

.objectives
display: flex
flex-direction: column
height: 100%

.row
&-row
display: flex
justify-content: space-between
flex-grow: 1
@@ -60,6 +64,11 @@
},
battleground () {
return BATTLEGROUNDS[this.battlegroundId]
},
backgroundCss () {
return {
backgroundImage: `url(${this.battleground.backgroundUrl})`
}
}
},
watch: {
@@ -73,4 +82,3 @@
}
}
</script>


+ 14
- 0
src/gameInfos/battlegrounds.js View File

@@ -16,6 +16,7 @@ const BOT = 'bottom'
export default {
alteracPass: {
name: 'Alterac Pass',
backgroundUrl: '/static/backgrounds/alterac-pass.jpg',
objectives: [
[
MAP.cavalryPrison
@@ -34,6 +35,7 @@ export default {
},
battlefieldOfEternity: {
name: 'Battlefield of Eternity',
backgroundUrl: '/static/backgrounds/battlefield-of-eternity.jpg',
objectives: [
[
MAP.immortals
@@ -52,6 +54,7 @@ export default {
},
blackheartSBay: {
name: "Blackheart's Bay",
backgroundUrl: '/static/backgrounds/blackhearts-bay.jpg',
objectives: [
[
CAMPS.graveGolem
@@ -75,6 +78,7 @@ export default {
},
gardenOfTerror: {
name: 'Garden of Terror',
backgroundUrl: '/static/backgrounds/garden-of-terror.jpg',
objectives: [
[
{...CAMPS.giants, position: 'blue top'},
@@ -94,6 +98,7 @@ export default {
},
hanamuraTemple: {
name: 'Hanamura Temple',
backgroundUrl: '/static/backgrounds/hanamura.jpg',
objectives: [
[
{...CAMPS.fortifiaction, position: TOP}
@@ -113,6 +118,7 @@ export default {
},
volskayaFoundry: {
name: 'Volskaya Foundry',
backgroundUrl: '/static/backgrounds/volskaya.jpg',
objectives: [
[
MAP.capturePoints
@@ -141,6 +147,7 @@ export default {
},
towersOfDoom: {
name: 'Towers of Doom',
backgroundUrl: '/static/backgrounds/towers-of-doom.jpg',
objectives: [
[
MAP.altars
@@ -159,6 +166,7 @@ export default {
},
infernalShrines: {
name: 'Infernal Shrines',
backgroundUrl: '/static/backgrounds/infernal-shrines.jpg',
objectives: [
[
MAP.shrine
@@ -178,6 +186,7 @@ export default {
},
tombOfTheSpiderQueen: {
name: 'Tomb of the Spider Queen',
backgroundUrl: '/static/backgrounds/tomb-of-spider-queen.jpg',
objectives: [
[
CAMPS.sandGolem
@@ -193,6 +202,7 @@ export default {
},
skyTemple: {
name: 'Sky Temple',
backgroundUrl: '/static/backgrounds/sky-temple.jpg',
objectives: [
[
MAP.temples
@@ -212,6 +222,7 @@ export default {
},
dragonShire: {
name: 'Dragon Shire',
backgroundUrl: '/static/backgrounds/dragon-shire.jpg',
objectives: [
[
MAP.dragon
@@ -228,6 +239,7 @@ export default {
},
cursedHollow: {
name: 'Cursed Hollow',
backgroundUrl: '/static/backgrounds/cursed-hollow.jpg',
objectives: [
[
{...CAMPS.graveGolem, position: RED}
@@ -247,6 +259,7 @@ export default {
},
braxisHoldout: {
name: 'Braxis Holdout',
backgroundUrl: '/static/backgrounds/braxis-holdout.jpg',
objectives: [
[
{...CAMPS.goliaths, position: BLUE},
@@ -263,6 +276,7 @@ export default {
},
warheadJunction: {
name: 'Warhead Junction',
backgroundUrl: '/static/backgrounds/warhead-junction.jpg',
objectives: [
[
{...CAMPS.slime, position: TOP}


BIN
static/backgrounds/alterac-pass.jpg View File

Before After
Width: 6000  |  Height: 3375  |  Size: 909 KiB Width: 1920  |  Height: 1080  |  Size: 250 KiB

static/backgrounds/battlefieldofeternity.jpg → static/backgrounds/battlefield-of-eternity.jpg View File


BIN
static/backgrounds/blackhearts-bay.jpg View File

Before After
Width: 1920  |  Height: 1080  |  Size: 162 KiB

BIN
static/backgrounds/blackheartsbay.jpg View File

Before After
Width: 3300  |  Height: 1856  |  Size: 762 KiB

BIN
static/backgrounds/braxis-holdout.jpg View File

Before After
Width: 2016  |  Height: 1080  |  Size: 134 KiB

BIN
static/backgrounds/cursed-hollow.jpg View File

Before After
Width: 1920  |  Height: 1080  |  Size: 112 KiB

BIN
static/backgrounds/dragon-shire.jpg View File

Before After
Width: 1000  |  Height: 563  |  Size: 62 KiB

BIN
static/backgrounds/garden-of-terror.jpg View File

Before After
Width: 1920  |  Height: 1080  |  Size: 189 KiB

BIN
static/backgrounds/hanamura.jpg View File

Before After
Width: 1920  |  Height: 1080  |  Size: 177 KiB

BIN
static/backgrounds/infernal-shrines.jpg View File

Before After
Width: 1920  |  Height: 1076  |  Size: 123 KiB

BIN
static/backgrounds/sky-temple.jpg View File

Before After
Width: 1920  |  Height: 1080  |  Size: 119 KiB

BIN
static/backgrounds/tomb-of-spider-queen.jpg View File

Before After
Width: 1920  |  Height: 1080  |  Size: 59 KiB

BIN
static/backgrounds/towers-of-doom.jpg View File

Before After
Width: 1920  |  Height: 1080  |  Size: 119 KiB

BIN
static/backgrounds/volskaya.jpg View File

Before After
Width: 1280  |  Height: 720  |  Size: 186 KiB

BIN
static/backgrounds/warhead-junction.jpg View File

Before After
Width: 1920  |  Height: 913  |  Size: 116 KiB

Loading…
Cancel
Save