- Home /
How to increase score for objects that form larger geometries?
So, I am a board gameish type game called Square Wars. The object of the game is get the most points. 2 players take turns clicking on a 12 x 12 field of square,green planes. The first click is the 1st player and it instantiates a red square in place of the green one. The second click is the 2nd player, which instantiates a blue square in place of the green one. Right now, I have it set so that each player gets 1 point for each square they have occupied.
I also want to factor in extra points if the players can get larger squares of their own color (e.g. a 2 x 2 square of 4 red planes, would give them an extra 2 points per plane; a 3 x 3 square of 9 red planes would give the player an extra 3 points per plane etc.)
Is there a way to do this?
All of the planes touch edges on the x and z axes and occupy the same position on the y-axis.
Thanks!