Skip to content
Snippets Groups Projects

breaking: Add Electron build, npm scripts and fix paths for tile-images

Closed Griefed requested to merge github/fork/Trungel/master into master
9 files
+ 1722
44
Compare changes
  • Side-by-side
  • Inline
Files
9
+ 15
15
@@ -186,7 +186,7 @@ export default {
@@ -186,7 +186,7 @@ export default {
label: 'grass',
label: 'grass',
color: 'green-8',
color: 'green-8',
textcolor: 'white',
textcolor: 'white',
backgroundImage: 'background-image: url(/tiles/grass_tile.webp);'
backgroundImage: 'background-image: url(./tiles/grass_tile.webp);'
}
}
},
},
methods: {
methods: {
@@ -195,98 +195,98 @@ export default {
@@ -195,98 +195,98 @@ export default {
this.label = 'barren';
this.label = 'barren';
this.color = 'brown-6';
this.color = 'brown-6';
this.textcolor = 'white';
this.textcolor = 'white';
this.backgroundImage = 'background-image: url(/tiles/barren_tile.webp);'
this.backgroundImage = 'background-image: url(./tiles/barren_tile.webp);'
},
},
clay () {
clay () {
console.log('Clicked on Clay');
console.log('Clicked on Clay');
this.label = 'clay';
this.label = 'clay';
this.color = 'orange-6';
this.color = 'orange-6';
this.textcolor = 'white';
this.textcolor = 'white';
this.backgroundImage = 'background-image: url(/tiles/clay_tile.webp);'
this.backgroundImage = 'background-image: url(./tiles/clay_tile.webp);'
},
},
desert () {
desert () {
console.log('Clicked on Desert');
console.log('Clicked on Desert');
this.label = 'desert';
this.label = 'desert';
this.color = 'yellow-4';
this.color = 'yellow-4';
this.textcolor = 'black';
this.textcolor = 'black';
this.backgroundImage = 'background-image: url(/tiles/desert_tile.webp);'
this.backgroundImage = 'background-image: url(./tiles/desert_tile.webp);'
},
},
fish () {
fish () {
console.log('Clicked on Fish');
console.log('Clicked on Fish');
this.label = 'fish';
this.label = 'fish';
this.color = 'amber-12';
this.color = 'amber-12';
this.textcolor = 'black';
this.textcolor = 'black';
this.backgroundImage = 'background-image: url(/tiles/fish_tile.webp);'
this.backgroundImage = 'background-image: url(./tiles/fish_tile.webp);'
},
},
forest () {
forest () {
console.log('Clicked on Forest');
console.log('Clicked on Forest');
this.label = 'forest';
this.label = 'forest';
this.color = 'green-10';
this.color = 'green-10';
this.textcolor = 'white';
this.textcolor = 'white';
this.backgroundImage = 'background-image: url(/tiles/forest_tile.webp);'
this.backgroundImage = 'background-image: url(./tiles/forest_tile.webp);'
},
},
grass () {
grass () {
console.log('Clicked on Grass');
console.log('Clicked on Grass');
this.label = 'grass';
this.label = 'grass';
this.color = 'green-8';
this.color = 'green-8';
this.textcolor = 'white';
this.textcolor = 'white';
this.backgroundImage = 'background-image: url(/tiles/grass_tile.webp);'
this.backgroundImage = 'background-image: url(./tiles/grass_tile.webp);'
},
},
ice () {
ice () {
console.log('Clicked on Ice');
console.log('Clicked on Ice');
this.label = 'ice';
this.label = 'ice';
this.color = 'cyan-2';
this.color = 'cyan-2';
this.textcolor = 'black';
this.textcolor = 'black';
this.backgroundImage = 'background-image: url(/tiles/ice_tile.webp);'
this.backgroundImage = 'background-image: url(./tiles/ice_tile.webp);'
},
},
iron () {
iron () {
console.log('Clicked on Iron');
console.log('Clicked on Iron');
this.label = 'iron';
this.label = 'iron';
this.color = 'blue-grey-5';
this.color = 'blue-grey-5';
this.textcolor = 'white';
this.textcolor = 'white';
this.backgroundImage = 'background-image: url(/tiles/iron_tile.webp);'
this.backgroundImage = 'background-image: url(./tiles/iron_tile.webp);'
},
},
mountain () {
mountain () {
console.log('Clicked on Mountain');
console.log('Clicked on Mountain');
this.label = 'mountain';
this.label = 'mountain';
this.color = 'grey-13';
this.color = 'grey-13';
this.textcolor = 'white';
this.textcolor = 'white';
this.backgroundImage = 'background-image: url(/tiles/mountain_tile.webp);'
this.backgroundImage = 'background-image: url(./tiles/mountain_tile.webp);'
},
},
salt () {
salt () {
console.log('Clicked on Salt');
console.log('Clicked on Salt');
this.label = 'salt';
this.label = 'salt';
this.color = 'grey-4';
this.color = 'grey-4';
this.textcolor = 'black';
this.textcolor = 'black';
this.backgroundImage = 'background-image: url(/tiles/salt_tile.webp);'
this.backgroundImage = 'background-image: url(./tiles/salt_tile.webp);'
},
},
stone () {
stone () {
console.log('Clicked on Stone');
console.log('Clicked on Stone');
this.label = 'stone';
this.label = 'stone';
this.color = 'blue-grey-13';
this.color = 'blue-grey-13';
this.textcolor = 'white';
this.textcolor = 'white';
this.backgroundImage = 'background-image: url(/tiles/stone_tile.webp);'
this.backgroundImage = 'background-image: url(./tiles/stone_tile.webp);'
},
},
water () {
water () {
console.log('Clicked on Water');
console.log('Clicked on Water');
this.label = 'water';
this.label = 'water';
this.color = 'blue-10';
this.color = 'blue-10';
this.textcolor = 'white';
this.textcolor = 'white';
this.backgroundImage = 'background-image: url(/tiles/water_tile.webp);'
this.backgroundImage = 'background-image: url(./tiles/water_tile.webp);'
},
},
wheat () {
wheat () {
console.log('Clicked on Wheat');
console.log('Clicked on Wheat');
this.label = 'wheat';
this.label = 'wheat';
this.color = 'amber-12';
this.color = 'amber-12';
this.textcolor = 'black';
this.textcolor = 'black';
this.backgroundImage = 'background-image: url(/tiles/wheat_tile.webp);'
this.backgroundImage = 'background-image: url(./tiles/wheat_tile.webp);'
},
},
wool () {
wool () {
console.log('Clicked on Wool');
console.log('Clicked on Wool');
this.label = 'wool';
this.label = 'wool';
this.color = 'brown-13';
this.color = 'brown-13';
this.textcolor = 'black';
this.textcolor = 'black';
this.backgroundImage = 'background-image: url(/tiles/wool_tile.webp);'
this.backgroundImage = 'background-image: url(./tiles/wool_tile.webp);'
},
},
}
}
}
}
Loading