// Token: 0x0600026D RID: 621 RVA: 0x0001332C File Offset: 0x0001152C public static void preDraw() { if (FireWorkEff.st) { FireWorkEff.animate(); } if (FireWorkEff.t > 32 && FireWorkEff.st) { FireWorkEff.st = false; FireWorkEff.mg.removeAllElements(); FireWorkEff.mg.addElement(new FireWorkMn(Res.random(50, GameCanvas.w - 50), Res.random(GameCanvas.h - 100, GameCanvas.h), 5, 72)); } }
// Token: 0x0600026E RID: 622 RVA: 0x000133A4 File Offset: 0x000115A4 public static void paint(mGraphics g) { FireWorkEff.preDraw(); g.setColor(0); g.fillRect(0, 0, FireWorkEff.w, FireWorkEff.h); g.setColor(16711680); for (int i = 0; i < FireWorkEff.mg.size(); i++) { ((FireWorkMn)FireWorkEff.mg.elementAt(i)).paint(g); } if (!FireWorkEff.st) { FireWorkEff.keyPressed(-(global::Math.abs(FireWorkEff.r.nextInt() % 3) + 5)); } }
// Token: 0x06000271 RID: 625 RVA: 0x00013528 File Offset: 0x00011728 public static void animate() { FireWorkEff.mang_y[2] = FireWorkEff.mang_y[1]; FireWorkEff.mang_x[2] = FireWorkEff.mang_x[1]; FireWorkEff.mang_y[1] = FireWorkEff.mang_y[0]; FireWorkEff.mang_x[1] = FireWorkEff.mang_x[0]; FireWorkEff.mang_y[0] = FireWorkEff.y; FireWorkEff.mang_x[0] = FireWorkEff.x; FireWorkEff.x = Res.cos((int)((double)FireWorkEff.ag * 3.1415926535897931 / 180.0)) * FireWorkEff.v * FireWorkEff.t + FireWorkEff.x0; FireWorkEff.y = (int)((float)(FireWorkEff.v * Res.sin((int)((double)FireWorkEff.ag * 3.1415926535897931 / 180.0)) * FireWorkEff.t) - FireWorkEff.a * (float)FireWorkEff.t * (float)FireWorkEff.t / 2f) + FireWorkEff.y0; if (FireWorkEff.time() - FireWorkEff.last >= FireWorkEff.delay) { FireWorkEff.t++; FireWorkEff.last = FireWorkEff.time(); } }
// Token: 0x0600026F RID: 623 RVA: 0x00013430 File Offset: 0x00011630 public static void keyPressed(int k) { if (k == -5 && !FireWorkEff.st) { FireWorkEff.x0 = FireWorkEff.w / 2; FireWorkEff.ag = 80; FireWorkEff.st = true; FireWorkEff.add(); } else if (k == -7 && !FireWorkEff.st) { FireWorkEff.ag = 60; FireWorkEff.x0 = 0; FireWorkEff.st = true; FireWorkEff.add(); } else if (k == -6 && !FireWorkEff.st) { FireWorkEff.ag = 120; FireWorkEff.x0 = FireWorkEff.w; FireWorkEff.st = true; FireWorkEff.add(); } }