Home > Back-end >  The object of the Java new out of the plane war how to let him disappear?
The object of the Java new out of the plane war how to let him disappear?

Time:10-12

Just learn how to make the Java game, the new Boss how objects disappear, if it is bullet and small aircraft, I created a collection, after the collision, remove from the collection the remove method,
But only a Boss, I am the new object directly, that when his health is 0, let the Boss what is the method of disappear, please answer, thank you!

CodePudding user response:

Assignment to null is not good

CodePudding user response:

Boss=null line,
  • Related