I’m new to Defold, and try to create a brick game for learning purpose.
I plan to bounce the ball if it hits the edges of window (left, right, top, bottom).
So I placed four boxes at the edges, and bounce the ball if a hit message is posted.
That works great, but now I want to adapt the window size, so the collision object cannot be placed at fixed positions, so I figure I could create those boxes inside collision object at runtime.
But after a wide search on both Defold document, forum and google, I cannot find anything tell me how to create new collision shape inside collision object.
Here I come, is it possible? Or is there any “adapt” screen size solution?