I have been wandering in the Internet lately to find the best possible solution for creating a 2d tunnel/cave in my game in LIBGDX.
My game in short: One player can control a shape in tunnel, the other player can deform tunnel and change its’ direction a bit.
I used slick2D lately and used float points array there to create a tunnel wall.
This worked quite well there. The points array shifted from right to left constantly and when tunnel controller changed the position of the first y point, the point shifted from right to the left.
However, in LIBGDX I have been wondering. Maybe there are better ways to achieve the same result. Especially I am concerned about the collision.
..and when I want to use raycast in my game, so you wouldn’ t be able to see behind the tunnel walls.
Thanks.