combo lines now match the faded blocks during menu screen play
This commit is contained in:
parent
6f731d8598
commit
54a4759b9c
2 changed files with 14 additions and 11 deletions
|
@ -18,8 +18,12 @@ function drawSide(startVertex,endVertex,fraction){
|
|||
endVertex = endVertex%6;
|
||||
ctx.globalAlpha=1;
|
||||
ctx.beginPath();
|
||||
ctx.lineCap = "round"
|
||||
ctx.lineCap = "round";
|
||||
if (gameState === 0) {
|
||||
ctx.strokeStyle = hexColorsToTintedColors[MainClock.lastColorScored];
|
||||
} else {
|
||||
ctx.strokeStyle = MainClock.lastColorScored;
|
||||
}
|
||||
ctx.lineWidth =4;
|
||||
var radius = (settings.rows * settings.blockHeight) * (2/Math.sqrt(3)) + settings.hexWidth + 2;
|
||||
var halfRadius = radius/2;
|
||||
|
@ -31,7 +35,7 @@ function drawSide(startVertex,endVertex,fraction){
|
|||
var endY = trueCanvas.height/2 + Vertexes[endVertex][1];
|
||||
ctx.moveTo(startX,startY);
|
||||
ctx.lineTo(((endX-startX)*fraction)+startX,((endY-startY)*fraction)+startY);
|
||||
ctx.closePath()
|
||||
ctx.fill()
|
||||
ctx.closePath();
|
||||
ctx.fill();
|
||||
ctx.stroke();
|
||||
}
|
|
@ -4,10 +4,9 @@ $(document).ready(function(){
|
|||
scaleCanvas();
|
||||
$('#startBtn').on('touchstart mousedown', function(){
|
||||
if (importing == 1) {
|
||||
init();
|
||||
init(1);
|
||||
}
|
||||
|
||||
gameState = 1;
|
||||
setTimeout(function(){
|
||||
document.body.addEventListener('mousedown', function(e) {
|
||||
handleClickTap(e.clientX);
|
||||
|
|
Loading…
Reference in a new issue