public void draw(GOut g) { super.draw(g); if (lvlmask != null) { long now = System.currentTimeMillis(); if (now - lvltime > 1000) { lvlmask.dispose(); lvlmask = null; } else { g.chcolor(255, 255, 255, 255 - (int) ((255 * (now - lvltime)) / 1000)); g.image(lvlmask, Coord.z); } } }
public void destroy() { typelist.destroy(); super.destroy(); }