The core mechanics involves using diamonds to enable performing certain actions, for the tutorial level it's opening the doors.There are no instructions to the game itself and I wanted to keep it that way for the demo session to see if people can see from the level design itself what to do.
To implement doors I have used another group creation, and used randomly generated numbers for doors positions. Then I have moved on to testing mechanics, as general idea of how it works is very similar to collectable items it wasn't difficult to implement. The only tricky thing was making sure if statements checks for the correct combination of diamonds- this is because I am using a variables to stored the data about picked up items. Note that only one item can be picked up at once but if colours are appropriate you can pick two diamonds so that they will merge creating another colour for the diamond. I hope this should be easy to figure out that door's colours should match the diamond's colour. The only issue I had at that point was when player collected two diamonds of different colours, they would still open one coloured doors(like before merging the diamonds- when blue and red diamond were picked up they would open red, blue and purple doors while they should be only opening the purple doors). I have fixed that relatively quickly by working out changes to if statements.
This is only core game mechanics for the first tutorial level that will be presented during first demo session, and therefore this will be expanded later on by creating more sophisticated puzzles and diamonds will probably have more possible colours and I may think about adding instructions about which diamonds can be merged(or i may just let the player figure this out on their own). I will also implement other groups of items player can interact with that will lead to more puzzles before opening the doors. As well as this some doors in later levels may require more than one diamond types that cannot be merged, to open them.
Note the doors have the placeholder graphics at the moment so they are just coloured squares. :)