[MV] Minigame request: Rectangle puzzle

Started by finalholylight, November 13, 2016, 11:23:48 am

Previous topic - Next topic

finalholylight

Let's look at the picture first:


There're two rectangle plates, these plates are separated into many pieces with random size and random rotation (0 or 90 degrees), all pieces are also rectangle, those pieces are shuffled together.
In a limited time, player must place all pieces back into these two plates (by using mouse, drag and drop, use a specific button to rotate selected piece), no matter what the position of the pieces are, those pieces should fit together and rebuild these plates again.

Script call will be like this : puzzle(time, height, width, [n1, n2, n3, ...]);
* time: in seconds, time to resolve puzzle.
* height, width: height and width of the original plates.
* [n1, n2, n3, ...]: size of the array is number of plates; n1,n2,n3... is number of pieces was generated from a plate (Ex: [5, 7] => there are two plates, plate 1 have 5 pieces and plate 2 have 7 piece).