@@ -0,0 +1,1199 @@
+package com.pqbyte.coherence;%0A%0A%0Aimport com.badlogic.gdx.physics.box2d.Contact;%0Aimport com.badlogic.gdx.physics.box2d.ContactImpulse;%0Aimport com.badlogic.gdx.physics.box2d.ContactListener;%0Aimport com.badlogic.gdx.physics.box2d.Manifold;%0Aimport com.badlogic.gdx.scenes.scene2d.Actor;%0Aimport com.badlogic.gdx.utils.Array;%0A%0Apublic class CollisionListener implements ContactListener %7B%0A%0A  private Array%3CProjectile%3E bulletsToBeRemoved;%0A%0A  public CollisionListener(Array%3CProjectile%3E bulletsToBeRemoved) %7B%0A    this.bulletsToBeRemoved = bulletsToBeRemoved;%0A  %7D%0A%0A  @Override%0A  public void beginContact(Contact contact) %7B%0A    Actor a = (Actor) contact.getFixtureA().getBody().getUserData();%0A    Actor b = (Actor) contact.getFixtureB().getBody().getUserData();%0A%0A    if (a instanceof Projectile && b instanceof Map) %7B%0A      bulletsToBeRemoved.add((Projectile) a);%0A    %7D else if (b instanceof Projectile && a instanceof Map) %7B%0A      bulletsToBeRemoved.add((Projectile) b);%0A    %7D%0A  %7D%0A%0A  @Override%0A  public void endContact(Contact contact) %7B%0A%0A  %7D%0A%0A  @Override%0A  public void preSolve(Contact contact, Manifold oldManifold) %7B%0A%0A  %7D%0A%0A  @Override%0A  public void postSolve(Contact contact, ContactImpulse impulse) %7B%0A%0A  %7D%0A%7D%0A

Add CollisionListener