pub fn intersects_with(&self, x: u32, y: u32) -> bool {
        x >= self.pos_x
            && x < self.pos_x + self.kind.bounds().0
            && y >= self.pos_y
            && y < self.pos_y + self.kind.bounds().1
    }
/// Check the enemy type bounding box against the given position. Returns true
/// on intersection.
///
/// TODO: Convert to pixel perfect collision detection by reusing the **px_list**.
Check the enemy type bounding box against the given position. Returns true
on intersection.

Convert to pixel perfect collision detection by reusing the **px_list**.
Check the enemy type bounding box against the given position . Returns true on intersection . Convert to pixel perfect collision detection by reusing the ** px_list ** .
pub fn intersects_with(&self, x: u32, y: u32) -> bool {
        x >= self.pos_x
            && x < self.pos_x + self.kind.bounds().0
            && y >= self.pos_y
            && y < self.pos_y + self.kind.bounds().1
    }
pub fn intersects_with ( & self , x : u32 , y : u32 ) -> bool { x >= self . pos_x && x < self . pos_x + self . kind . bounds ( ) . 0 && y >= self . pos_y && y < self . pos_y + self . kind . bounds ( ) . 1 }
Check the enemy type bounding box against the given position.
Check the enemy type bounding box against the given position .
&self
x
u32
y
u32
&self
x
u32
y
u32