Bubbles appear at random positions on the screen and move to the nearest edge on a honeycomb grid.
Take a random point. Calculate the nearest centre of a hexagon in a honeycomb pattern of hexagons. Calculate the angle of the random point with the centre. Using polar coordinates, calculate where on the edge of a hexagon of a given size and under the calculated angle a point would be. Move the random point there.