Skip to main content

DevBlog #22 - Game

     Today was a big day. I got a lot of things working, in a shockingly small amount of time. alright, here they are:

    1) I now have the collision system working for the cities. This means that I can now store which tiles are under the control of  a city, and which tiles are not. I then use this information to help with the placement of cards, buildings, units, etc. As you can tell, this is a pretty big deal. I then add the city to a list of the player's city so that it can be stored, and then used to manage the effects each turn for the buildings.

    2) I am now updating the rotation of the cards to be the same rotation of the player. This does not sound like a big deal, but it is. Now the cards will be aligned with the player making playing them and picking them up easier, prettier, and more convenient.

    3) I have fixed the building system. Now, the system takes into account weather or not the building requires a city to be placed or not. This now means that buildings can be attached to cities, and have their effects be applied to that city. This also means for buildings that don't require cities, their effects will be applied globally, and not just to a single city. Cool, right?!

    4) I fixed the card system. Now if the card requires a city, the card will only be activated and played if the card is played on a tile that is part of that player's city. This means that their effects can be localized. This also means that I can begin the process of having more specialized effects taking place inside of the cities. For example, there is a card that will give you food for each plains tile in your city, now I can do that. I still have to work on the system for applying effects based on what objects are touching the tiles, but I am slowly getting there.

    5) I have begun the creation of the building effect system. I now get the data of the passed building and if it is apart of a settlement, I apply all of the necessary effects to that settlement. Also if the building effects the global game, I also apply any of those changes and effects to the game too.

    6) I have also began the system for object production. I have created a scriptable object that will contain all of the data about the object, and will store the produced objects inside of the city. This is cool, as these objects will be used to create military units when the time comes. All of it is starting to come together now. YAY!

    All in all a big chunk of progress was made on the game today.

    Thanks for reading, bye!

Comments

Popular posts from this blog

DevBlog #41 - Game

    More progress has been made, and I feel like a million bucks because of this game.     1) Tech Tree Restructuring: I have switched my 1D list to a 2D list so that I can store all of the data about the branches and their different techs in each era. I have made it so that you can smart scroll through eras and through each tech category. Once researching the first tech, settlement, you can then get access to all other tech categories (Military, religious, education, industrial, etc), and each tech in that tree for each era. At the bottom, you can press a button to increase or decrease the era that you want to view. However, you can only increase up to a certain point, either the max of era 3 or the furthest era that branch goes to. This makes the tech tree feel a lot more advanced and less crowded.     2) Auction House: I have now got the viewing system working for all of the cards in the auction house, as well as the system to reassign who it is that is ...

DevBlog #18 - Game

      Today, I spent 10 hours working on the ability for a user to select a card, then a tile, the hit the card again in order to use it if it is tile specific. However, this idea sucks, and I don't like. Tomorrow I am going to go back and change the entire system. Instead you are going to drag the card to where you want it to go, then release it on the tile you want the effect to take place. This will then apply the effect to that tile. This way it is one click and not 3, and is also more interactive for the users. Furthermore, I wont have to convey to the user that certain cards are tile based, and some are not.     I also rewrote the terrain hex map generator script. I made the script completely modular, meaning that in the editor you can create an object to spawn on the terrain just by clicking a plus. You then plop in the model, the name, the description, the spawning frequencies, and the tiles that it can spawn on. Then for each tile that is generated it c...

DevBlog #5 - Game

      Hello, found out a solution to the problem that I was having yesterday. I have discovered the fabled perlin worms. We will use them by starting them off on high terrain values, and going to low terrain values changing every tile it touches into water tiles. This will create the effect of rivers.     Easy money!     Thats all for now, bye!