Commit 7e9186bc authored by Raphaël Bastide's avatar Raphaël Bastide

Colors

parent 4cace45d
......@@ -6,7 +6,7 @@
"role": "platform",
"verticalShift":"0",
"isLocked": false,
"color":"#D7D7CD77",
"color":"#D7D7CD",
"angle":"0",
"isStatic":true
},
......@@ -16,7 +16,7 @@
"role": "platform",
"verticalShift":"-1",
"isLocked": false,
"color":"#eeeeee77",
"color":"#eeeeee",
"angle":"0.2",
"isStatic":true
},
......@@ -37,7 +37,7 @@
"role": "platform",
"verticalShift": "1",
"isLocked": true,
"color":"#eeeeee77",
"color":"#66b3cf",
"angle":"-0.2",
"isStatic":true
},
......@@ -47,7 +47,7 @@
"role": "platform",
"verticalShift": "0",
"isLocked": true,
"color":"#e2626277",
"color":"#e26262",
"angle":"0",
"isStatic":true
},
......@@ -57,7 +57,7 @@
"role": "platform",
"verticalShift": "0",
"isLocked": true,
"color":"#53289077",
"color":"#532890",
"angle":"0",
"isStatic":true
},
......@@ -67,7 +67,7 @@
"role": "platform",
"verticalShift": "0",
"isLocked": true,
"color":"#69e26277",
"color":"#69e262",
"angle":"0",
"isStatic":true
},
......@@ -77,7 +77,7 @@
"role": "platform",
"verticalShift": "0",
"isLocked": true,
"color":"#62e2c377",
"color":"#24b995",
"angle":"0",
"isStatic":true
},
......@@ -87,7 +87,7 @@
"role": "platform",
"verticalShift": "0",
"isLocked": true,
"color":"#dfe26277",
"color":"#cfd231",
"angle":"0",
"isStatic":true
},
......
......@@ -26,7 +26,6 @@ function launch(units, isRefresh){
buildH = 30,
realBuildW = buildW + strokeWidth * 2,
realBuildH = buildH + strokeWidth * 2,
alpha = "77",
ballColor = "#ec82be",
zoom = false,
timeScaleTarget = 1,
......@@ -63,6 +62,7 @@ function launch(units, isRefresh){
engine:engine,
options: {
wireframes:false,
showSleeping:false,
width: canvasW,
height: canvasH,
background: '#ffa732',
......@@ -96,6 +96,8 @@ function launch(units, isRefresh){
var bonusColor = toUnLock.color
// toUnLock.isLocked = false
toBuild.render.fillStyle = bonusColor
toBuild.render.lineWidth = 5
toBuild.render.strokeStyle = "black"
toBuild.name = bonus.name
toBuild.role = bonus.role
toBuild.unlocks = bonus.unlocks
......@@ -234,10 +236,10 @@ function launch(units, isRefresh){
var b1 = pair.bodyB
var b2 = pair.bodyA // can differ accordins to World.add order
var col = b2.render.fillStyle
if (col !== "#ffffff00") { // If not transparent, highlight the color when collision
col = col.substring(0, col.length - 2);
b2.render.fillStyle = col+"ff"
}
// if (col !== "#ffffff00") { // If not transparent, highlight the color when collision
// col = col.substring(0, col.length - 2);
// b2.render.fillStyle = col+"ff"
// }
if (!b2.isLocked) {
if (b2.name === 'boost' && !b1.inactiveBuffer) {
b1.render.fillStyle = '#00FF00';
......
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