Closed LightTheBlues closed 5 months ago
In the logic part, I need to work on the below.
[Placing the cards based on the rules]
[Interacting with cards based on the rules]
Interaction Layer Mask enabled me to put cards in the desired spot. Basically, in the previous work, we had sockets to place cards in the right place but here is the problem. The blue area is supposed to take only blue cards but we could place green and red cards as well. Since this is not the way we want, we had to solve this problem. I could handle it by using the interaction layer.
If the two objects have the same interaction layer, then they become interactable. For example, I set blue cards and blue card sockets as "Blue", green cards and green card sockets as "Green", and red cards and red card sockets as "Red". That allows me to put the cards in my desired spot.
I could clean up my C++ code by splitting a big function into smaller ones so that I can easily translate them into C# and also give them a little difference to Unity. My future work for now is to create classes in order to make a library for this game.
I could not fix the errors on the C Sharp file, but it gives general ideas of the game logic.
updated C++.zip New update on C++ at 06:53 3/21. Wasting the card is enabled. Added comments for enabling player vs computer mode.
Cyber Defense Guardian C++.zip
This is the simulation of the game we are working on. It is written in C++.