Commit 77053073 authored by Raphaël Bastide's avatar Raphaël Bastide

Bonuses and Prompt time

parent d4a7aa36
......@@ -30,6 +30,18 @@ main{
}
.paused canvas{
filter:grayscale(1);
position: relative;
}
.paused main:after{
width: 100%;
position: absolute;
content:'Paused';
text-align: center;
color: white;
font-size: 10em;
top:50%;
z-index: 200;
text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 1px 1px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}
canvas{
border-radius: 20px;
......@@ -69,7 +81,7 @@ aside .inner{
display: none;
}
#infobox .infoline.visible{
display: inline-block;
display: inline;
}
#inventory{
position: absolute;
......
......@@ -30,7 +30,7 @@ function promptInfo(message){
infoLine.innerHTML = ": "+message
infobox.appendChild(infoLine)
infoLine.classList.add('visible')
setTimeout(function(){infoLine.classList.remove('visible')},3000)
setTimeout(function(){infoLine.classList.remove('visible')},5000)
infoLine.classList.add('infoline')
}
......
......@@ -106,15 +106,15 @@
{
"name": "bonus1",
"role": "bonus",
"posX": 1200,
"posX": 600,
"posY": 400,
"unlocks":"boost"
},
{
"name": "bonus2",
"role": "bonus",
"posX": 2300,
"posY": 400,
"posX": 200,
"posY": 300,
"unlocks":"up"
},
{
......
......@@ -103,9 +103,6 @@ function launch(units, isRefresh){
toBuild.role = bonus.role
toBuild.unlocks = bonus.unlocks
bonusCompas.targets = bonus.name
// bonusCompas.render.fillStyle = bonusColor
// bonusCompas.render.lineWidth = 5
// bonusCompas.render.strokeStyle = "black"
bonusList.push(toBuild)
bonusCompasList.push(bonusCompas)
World.add(world,[toBuild, bonusCompas]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment