(self, x: float, y: float)
return None
Check if a position hits a block.
Check if a position hits a block.
Check if a position hits a block .
def in_block(self, x: float, y: float) -> Optional[blocks.Block]:
        """ Check if a position hits a block. """
        for block in self.block_div.children:
            if block.collide_point(x, y):
                return block
        return None
def in_block ( self , x : float , y : float ) -> Optional [ blocks . Block ] : for block in self . block_div . children : if block . collide_point ( x , y ) : return block return None