Lovello is the bomb

This commit is contained in:
garrettdreyfus 2014-05-26 12:52:57 -04:00
parent 94650522b5
commit 2f2ed11c9c
4 changed files with 10 additions and 3 deletions

BIN
fonts/Lovelo.otf Executable file

Binary file not shown.

View file

@ -13,6 +13,13 @@
font-weight: 400;
src: local('Roboto Regular'), local('Roboto-Regular'), url("fonts/roboto.woff") format('woff');
}
@font-face {
font-family: 'Lovelo';
font-style: normal;
font-weight: 400;
src: local('Lovelo Regular'), local('Lovelo-Regular'), url("fonts/Lovelo.otf") format('otf');
}
* {
padding: 0;

View file

@ -75,6 +75,6 @@ function consolidateBlocks(clock,side,index){
clock.comboMultiplier = 1;
}
var adder = deleting.length * deleting.length * clock.comboMultiplier;
clock.texts.push(new Text(clock.x,clock.y,"+ "+adder.toString(),"bold Roboto 24px",deletedBlocks[0].color,fadeUpAndOut));
clock.texts.push(new Text(clock.x,clock.y,"+ "+adder.toString(),"bold Lovelo 24px",deletedBlocks[0].color,fadeUpAndOut));
score += adder;
}

View file

@ -9,7 +9,7 @@ function showModal(text, secondaryText) {
var fontSizeSmall = 25;
drawPolygon(trueCanvas.width / 2, trueCanvas.height / 2, 6, trueCanvas.width / 2 - 25, 30, hexagonBackgroundColorClear);
// drawPolygon(trueCanvas.width / 2, trueCanvas.height / 2, 6, buttonSize, 30, swegBlue);
ctx.font = fontSizeLarge + 'px Helvetica'; // figure out what is not working
ctx.font = fontSizeLarge + 'px Lovelo'; // figure out what is not working
ctx.textAlign = 'center';
ctx.fillStyle = centerBlue;
// ctx.fillStyle = hexagonBackgroundColor;
@ -25,7 +25,7 @@ function renderText(x, y, fontSize, color, text) {
// fontSize = fontSize || 50;
// var lineHeight =;
ctx.font = fontSize + 'px/0 Roboto'; // figure out what is not working
ctx.font = fontSize + 'px/0 Lovelo'; // figure out what is not working
ctx.textAlign = 'center';
// ctx.fillStyle = 'rgb(236, 240, 241)';
ctx.fillStyle = color;