Skip to content

Commit

Permalink
frontend: reduce the number of sprites by 1/2
Browse files Browse the repository at this point in the history
  • Loading branch information
nhynes committed Mar 22, 2024
1 parent af44b05 commit fe2f847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Aquarium.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function populateFishOfTheDay() {
if (troutStore.count === 0 || fishOfTheDay.value.length > 0) return;
const day = Math.floor(new Date().getTime() / (1000 * 60 * 60 * 24));
const random = lcg(day, troutStore.count * 2);
const count = 30;
const count = 15;
const fish = new Set<number>();
for (let i = 0; fish.size < count && i < count * 4; i++) fish.add(random() % troutStore.count);
fishOfTheDay.value = [...fish];
Expand Down

0 comments on commit fe2f847

Please sign in to comment.