Use string templating

This commit is contained in:
Jordan Eldredge 2016-08-06 19:47:04 -07:00
parent 162178988f
commit 6befc71488

View file

@ -24,7 +24,7 @@ for (const key in FONT_LOOKUP) {
if (FONT_LOOKUP.hasOwnProperty(key)) {
const position = FONT_LOOKUP[key];
characterSprites.push({
selectors: ['.character-' + key.charCodeAt(0)],
selectors: [`.character-${key.charCodeAt(0)}`],
y: position[0] * CHAR_Y,
x: position[1] * CHAR_X,
width: CHAR_X,