···11import * as PIXI from "pixi.js";
22import ParticleSystem from "./particles";
3344-console.log("hello there");
55-64(async () => {
77- console.log("hello there 2");
85 let app = new PIXI.Application();
96107 let w = window.innerWidth,
···1613 height: h,
1714 antialias: true,
1815 });
1919- console.log("hello there 3");
2020-2116 document.body.appendChild(app.canvas);
22172318 // set canvas to absolute position and full size
···2520 app.canvas.style.width = "100%";
2621 app.canvas.style.height = "100%";
27222828- console.log("hello there 4");
2929-3023 let heartParticles = new ParticleSystem("/bluesky-particles/heart2.png");
3124 let postParticles = new ParticleSystem("/bluesky-particles/post.png");
3225 let followParticles = new ParticleSystem("/bluesky-particles/follow.png");
···3831 app.stage.addChild(userParticles.container);
39324033 let totalTime = 0;
4141-4242- console.log("hello there 5");
43344435 function spawnParticle(type: "heart" | "post" | "follow" | "user") {
4536 let particleSystem;
···7263 };
73647465 app.ticker.add((ticker) => {
7575- console.log("update");
7666 // get ellapsed time
7767 const deltaTime = ticker.deltaMS * 0.001;
7868 totalTime += deltaTime;