[READ-ONLY] Mirror of https://github.com/flo-bit/bluesky-particles. flo-bit.dev/bluesky-visualizers/particles
0

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #4 from flo-bit/main

remove logs

authored by

Florian and committed by
GitHub
(Nov 18, 2024, 2:46 AM +0100) bfbe085e bab2c02e

-10
-10
src/script.ts
··· 1 1 import * as PIXI from "pixi.js"; 2 2 import ParticleSystem from "./particles"; 3 3 4 - console.log("hello there"); 5 - 6 4 (async () => { 7 - console.log("hello there 2"); 8 5 let app = new PIXI.Application(); 9 6 10 7 let w = window.innerWidth, ··· 16 13 height: h, 17 14 antialias: true, 18 15 }); 19 - console.log("hello there 3"); 20 - 21 16 document.body.appendChild(app.canvas); 22 17 23 18 // set canvas to absolute position and full size ··· 25 20 app.canvas.style.width = "100%"; 26 21 app.canvas.style.height = "100%"; 27 22 28 - console.log("hello there 4"); 29 - 30 23 let heartParticles = new ParticleSystem("/bluesky-particles/heart2.png"); 31 24 let postParticles = new ParticleSystem("/bluesky-particles/post.png"); 32 25 let followParticles = new ParticleSystem("/bluesky-particles/follow.png"); ··· 38 31 app.stage.addChild(userParticles.container); 39 32 40 33 let totalTime = 0; 41 - 42 - console.log("hello there 5"); 43 34 44 35 function spawnParticle(type: "heart" | "post" | "follow" | "user") { 45 36 let particleSystem; ··· 72 63 }; 73 64 74 65 app.ticker.add((ticker) => { 75 - console.log("update"); 76 66 // get ellapsed time 77 67 const deltaTime = ticker.deltaMS * 0.001; 78 68 totalTime += deltaTime;