Skip to content

Commit

Permalink
adjust colors and sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
ditam committed Apr 26, 2021
1 parent 50bb13f commit 4ab5325
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 13 deletions.
Binary file added assets/diamond-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/lantern.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/pickaxe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/sabotage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/tnt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 18 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ const decks = {
cards: [
{ type: 'pickaxe' },
{ type: 'pickaxe' },
{ type: 'pickaxe' },
{ type: 'pickaxe' },
{ type: 'sieve' }
{ type: 'pickaxe' }
]
},
player2: {
Expand All @@ -17,7 +15,7 @@ const decks = {
cards: [
{ type: 'pickaxe' },
{ type: 'pickaxe' },
{ type: 'tnt' }
{ type: 'pickaxe' }
]
},
shaft: {
Expand All @@ -27,6 +25,16 @@ const decks = {
},
cards: [
// bottom-first so it can be dumped into DOM naively
{ type: 'gold' },
{ type: 'silver' },
{ type: 'gold' },
{ type: 'soil' },
{ type: 'gold' },
{ type: 'rock' },
{ type: 'rock' },
{ type: 'soil' },
{ type: 'platinum' },
{ type: 'soil' },
{ type: 'platinum' },
{ type: 'gold' },
{ type: 'rock' },
Expand Down Expand Up @@ -147,6 +155,12 @@ const toolCardTypes = {
};

const shaftCardTypes = {
'diamond': {
assetURL: 'assets/diamond-icon.png',
bgColor: '#65ffff',
cost: 5,
displayName: 'Diamond'
},
'gold': {
assetURL: 'assets/gold-icon.png',
bgColor: '#d4af37',
Expand Down
24 changes: 15 additions & 9 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ body {
width: 206px;
height: 166px;
background-color: #80808071;
text-shadow: 2px 2px 3px white;
/* This also seems necessary, what's up with these :after elements... */
opacity: 0.99;
}
Expand All @@ -215,17 +216,18 @@ body {
position: absolute;
top: 5px;
left: 5px;
width: 22px;
height: 22px;
line-height: 22px;
background-color: #ffe919;
border-radius: 11px;
font-size: 16px;
width: 39px;
height: 39px;
line-height: 40px;
background-color: #e0b80d;
border: 1px solid #a7620c;
border-radius: 30px;
font-size: 20px;
text-align: center;
}

.card .header {
background-color: #c37811;
background-color: #868482;
margin-top: 8px;
width: 100%;
height: 32px;
Expand All @@ -235,6 +237,10 @@ body {
text-align: center;
}

.card.playable:hover {
top: 600px;
}

.card img {
width: 140px;
height: 140px;
Expand All @@ -249,7 +255,7 @@ body {
}

.card .description {
background-color: #c37811;
background-color: #a5a5a563;
height: 80px; /* overflow is hidden anyway */
padding: 20px;
text-align: center;
Expand All @@ -271,7 +277,7 @@ body {
text-transform: uppercase;
font-family: 'Alfa Slab One', serif;
font-size: 115px;
opacity: 0.05;
opacity: 0.25;
user-select: none;
}

Expand Down

0 comments on commit 4ab5325

Please sign in to comment.