Browse Source

counter update

master
cailean 2 hours ago
parent
commit
d0c6e46ac1
  1. 2
      js/Item.js
  2. 2
      js/Player.js

2
js/Item.js

@ -421,8 +421,6 @@ export class Item {
const material = new THREE.SpriteMaterial({ const material = new THREE.SpriteMaterial({
map: texture, map: texture,
blending: THREE.AdditiveBlending, blending: THREE.AdditiveBlending,
depthWrite: false,
depthTest: true, // Renders on top of everything
transparent: true transparent: true
}); });

2
js/Player.js

@ -1062,7 +1062,7 @@ export class Player {
y = endY; y = endY;
} }
this.itemCountDisplay.position.set(0, y, -2); this.itemCountDisplay.position.set(0, y, -10);
this.itemCountDisplay.traverse(obj => { this.itemCountDisplay.traverse(obj => {
if (obj.material) obj.material.opacity = opacity; if (obj.material) obj.material.opacity = opacity;
}); });

Loading…
Cancel
Save