An absolutely massive amount of progress was done today. I created a series of scriptable objects that will help us maintain control over our game, and make it so that all changes that are necessary are modular and can be easily carried out and its effects will require very little effort to integrate.
I create scriptable objects for government. I then proceeded to create the 7 governments each with their own modifiers, descriptions, and bonuses. I then created a system that will take into account the card bonused and their effects onto the drawing of cards. Now the government you have will effect the likelihood that you will get certain card types. These of course can all be changed in the editor, and the changes will propagate out into the system with no errors, and 2 seconds of time (just compiling time, :).
I also changed the way cards are used, making it so that now every type of card can be taken into account. Unit, policy, government, building, etc. All types of cards can now be used and created with incredible ease. additionally, once we have finished all of the cards, I will be able to add them to the script that will keep track of all cards for the dealer, and we will have a fully functional game.
Another thing I worked on was a simple one but it was good as it got my brain working again. I created a simple button that would hide or show the tech tree UI element. I am almost done with the tech tree, just waiting on Nick to send me the nonagon and the colored hexagons along with the card prefab and then I will be done with the tech tree.
I also started a script that will manage the way that buildings are placed. It is pretty simple. It shoots a ray cast down on the game and finds the location where it hits then marks the spot. The if they played a card that has buildings on it it will loop through the array and place each of the buildings inside of it. Once the array has been used up, the card is destroyed, and the world moves on.
That is it for today, I have finals coming up for math and physics and progress will slow down before it picks up again so good bye for now.
Before I go, I also have to create a scriptable object for units, and change a bit of the card code to create a bool so that we can check what types of things are going to be made by the card (units, buildings, etc).
Alright good bye for now, see you later.
Comments
Post a Comment