diff --git a/index.html b/index.html
index 7205f31..dd6991a 100644
--- a/index.html
+++ b/index.html
@@ -297,8 +297,8 @@
var combo = 0, comboT = 0, shake = 0, shakeX = 0, shakeY = 0, levelTimer = 0;
var CHECKPOINT_EVERY = 5, MAX_CONTINUES = 3, CONTINUE_TIME = 10, START_LIVES = 3;
var continues = MAX_CONTINUES, checkpoint = 1, continueT = 0, ccUsed = 0, contTick = 0;
- var stats = { blk: {}, down: 0, pu: {} };
- function resetStats() { stats = { blk: {}, down: 0, pu: {} }; }
+ var stats = { blk: {}, down: 0, hits: 0, pu: {} };
+ function resetStats() { stats = { blk: {}, down: 0, hits: 0, pu: {} }; }
var sound = true, ac = null, fxSig = '';
var scores = [];
@@ -318,7 +318,9 @@
function statsHtml() {
var hps = Object.keys(stats.blk).map(Number).sort(function (a, b) { return a - b; });
var chips = hps.map(function (k) { return '' + k + '×-Block ' + stats.blk[k] + ''; });
- chips.push('Blöcke zerstört ' + stats.down + '');
+ if (!chips.length) chips.push('keine Blöcke zerstört');
+ chips.push('zerstört ' + stats.down + '');
+ chips.push('Treffer ' + stats.hits + '');
var pc = [];
PU.forEach(function (p) {
if (!stats.pu[p.id]) return;
@@ -705,9 +707,10 @@
/* ---------------- scoring ---------------- */
function hitBrick(b) {
b.hp--; b.flash = 1;
- stats.blk[b.max] = (stats.blk[b.max] || 0) + 1;
+ stats.hits++;
if (b.hp <= 0) {
stats.down++;
+ stats.blk[b.max] = (stats.blk[b.max] || 0) + 1;
burst(b, b.c2); shake = Math.min(9, shake + 4);
beep(210 + Math.min(combo, 12) * 42 + b.max * 18, 0.09, 'square', 0.05);
dropPowerup(b.x + b.w / 2, b.y + b.h / 2);