PageSourceSearch

https://www.gazette.red/interactive/script/184/crowd/projectiles/gem.js

js gazette.red collected 2026-09-29 01:35:13 UTC 580 bytes, 18 lines download raw bytes

1import { FloatingText } from "../../text/floating-text.js";
2import { Projectile } from "../projectile.js";
3export class Gem extends Projectile {
4    constructor(x,y, targetX, targetY) {
5        super('/interactive/sprites/184/projectiles/presalestuff.json', 'gem', x, y, targetX, targetY);
6
7        AudioEngine.play('gem', 0.01);
8    }
9    onHit() {
10        super.onHit();
11
12        AudioEngine.play('gemDrop', 0.01);
13    }
14    onHitPlayer() {
15        game.addScore(100);
16        game.addResource(new FloatingText('+1000', game.player.x, game.player.y).setColor(`0,255,0`))
17    }
18}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.