public void hit(JGObject obj) { if (and(obj.colid, gp_playerdieobjtype) && invulnerability == 0) lifeLost(); if (and(obj.colid, gp_playergetobjtype)) { obj.remove(); score += gp_playergetscore; new StdScoring( "pts", obj.x, obj.y, 0, -1.0, 40, (int) gp_playergetscore + " pts", scoring_font, new JGColor[] {JGColor.red, JGColor.yellow}, 2); } }
public void hit(JGObject obj) { if (and(obj.colid, dieobjtype)) { die(); if ((obj.colid & BULLETTYPE) != 0) obj.remove(); } }