This commit is contained in:
2022-02-24 02:05:33 +01:00
parent 7485215ef6
commit 745b6685ea
14 changed files with 306 additions and 1820 deletions

View File

@@ -136,7 +136,7 @@ $(async function () {
class Particle {
constructor(emote,data){
this.size = 64;
this.size = 56;
this.data = data;
this.setPhysics(randRange(0,canvas.width),
randRange(0,canvas.height),
@@ -299,7 +299,7 @@ $(async function () {
const createParticule = (partP, emote, data, args) => {
let a = new partP(emote,data,args)
particles.push(a);
setTimeout(()=>{particles.pop()}, drt*1000+2000);
setTimeout(()=>{particles.shift()}, drt*1000+2000);
}
const genExplosion = (x,y,ang,em) =>{