Add length

This commit is contained in:
Greg Shuflin 2023-10-24 20:16:29 -07:00
parent 991b564f16
commit 7cc413103c
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ const loop = (timestamp) => {
orb.render(timestamp);
});
state.orbs = state.orbs.filter((orb) => !orb.removed);
state.total = state.orbs
state.total = state.orbs.length;
ctx.restore();
};