I am learning a 3D engine called DX Studio that uses Javascript for
its primary programming language.
I am creating a game that is like Concentration where you click on a
square, an image shows, you click on a 2nd square, if the images match
they stay exposed, if not they are covered again.
For the top image I am using a cluster of flowers, there are 12 slots
on the board. For the bottom image I am using butterflies, there are 6
different types of butterflies that are duplicated. My flowers are
named flower_1 through flower_12, my butterflies are named
butterfly1_1 through 1_6, then butterfly 1_2, through 6_2
I need an onInit script that will do as I have described above,
including the math to make it happen. If you have any other questions
I'll be happy to reply and I have a screen shot of the game board. |