im creating a game, my character shoots, and is going to collide with an enemy, which Doped ();
glPushMatrix (); GlTranslatef (260, -180, 0.0); E [0] = new platform (0, 0, 0, 40, 40, 40, 40, 0, texture [17], 260, -180); GlPopMatrix (); has collided with the bullet. How do I go about deleting / deleting an object? Not a code, just an idea to go about it, thanks!
if (bullet hit character) {listOfCharacters.remove (character)) and later:
function drawAllCharacters: for each character in the list, the practitioner: drag the character (Not sure that this You have such kind of content)
Comments
Post a Comment