// Pixel Arrays
int[] thisPixels = new int[width * height];
int[] otherPixels = new int[width * height];
// Pixel die im Kollisionsbereich liegen in die Arrays laden
PixelGrabber grabber = new PixelGrabber(currentImage,
Math.abs(hitbox.x - thisArea.getBounds().x), Math.abs(hitbox.y - thisArea.getBounds().y),
width, height, thisPixels, 0, width);
grabber.grabPixels();
grabber = new PixelGrabber(((Sprite)other).getCurrentImage(),
Math.abs(other.getHitbox().x - thisArea.getBounds().x), Math.abs(other.getHitbox().y - thisArea.getBounds().y),
width, height, otherPixels, 0, width);
grabber.grabPixels();
ColorModel cm = grabber.getColorModel();
// Prüfen ob in den Pixeln der jeweilig gleichen Position etwas ist
for (int i = 0; i < thisPixels.length; i++)
{
if (cm.getAlpha(thisPixels[i]) != 0 && cm.getAlpha(otherPixels[i]) != 0)