Up-in-the-Air – commitdiff

You can use Git to clone the repository via the web URL. Download snapshot (zip)
Decided against a maximum movement speed limit for collecting things
authorJulian Fietkau <git@fietkau.software>
Fri, 27 Sep 2024 23:56:29 +0000 (01:56 +0200)
committerJulian Fietkau <git@fietkau.software>
Fri, 27 Sep 2024 23:56:29 +0000 (01:56 +0200)
main.js

diff --git a/main.js b/main.js
index 3657ad2d6ff993d3748973e17ceed9af4dee11e3..60e68a6673e6bd44f2ce7f4f0bdd60d03687befc 100644 (file)
--- a/main.js
+++ b/main.js
@@ -925,9 +925,7 @@ function animate(game, renderer, scene) {
   const collectingRadius = - 0.5 + 1.5 * game.settings['difficulty']['collectingradius'];
   for(let i = 0; i < game.objects.words.length; i++) {
     let word = game.objects.words[i];
-    if(!word.collected &&
-       game.objects.feather.speed.length() < 10.0 &&
-       new THREE.Vector3().subVectors(word.position, game.objects.feather.position).length() < collectingRadius) {
+    if(!word.collected && new THREE.Vector3().subVectors(word.position, game.objects.feather.position).length() < collectingRadius) {
       word.collected = game.view.clock.getElapsedTime();
       game.objects.words.collectedCount += 1;
       playRandomSound(game);