src/GameObj.java
/**
     * Determine whether this game object is currently intersecting another object.
     * 
     * Intersection is determined by comparing bounding boxes. If the bounding boxes overlap, then
     * an intersection is considered to occur.
     * 
     * @param that The other object
     * @return Whether this object intersects the other object.
     */
Determine whether this game object is currently intersecting another object.

Intersection is determined by comparing bounding boxes. If the bounding boxes overlap, then
an intersection is considered to occur.

@param that The other object
@return Whether this object intersects the other object.
Determine whether this game object is currently intersecting another object . Intersection is determined by comparing bounding boxes . If the bounding boxes overlap then an intersection is considered to occur . @param that The other object @return Whether this object intersects the other object .
public boolean intersects(GameObj that) {
        return (this.px + this.width > that.px
                    && this.py + this.height > that.py
                    && that.px + that.width > this.px 
                    && that.py + that.height > this.py);   
    }
public boolean intersects ( GameObj that ) { return ( this . px + this . width > that . px && this . py + this . height > that . py && that . px + that . width > this . px && that . py + that . height > this . py ) ; }
Determine whether this game object is currently intersecting another object.
Determine whether this game object is currently intersecting another object .