Skip to main content

DevBlog #9 - Game

     Hello everyone, today I have been hard at work fixing and debugging my card dealer script. Now the script it 100% modular and can scale with the additions of new cards, new techs, and new card holder slots on the UI. I have made it completely modular and controllable through the UI and unity editor.

    First I created 2 arrays, one for the action cards, and one for the event cards. The action cards then need to be sorted by their tech categories in order to make the percentage buffs assigned by the government the player has be taken into account. So in order to do this I sorted all of the action cards into their own arrays based on category. Then I have giant math system that chooses a random number and the ranges that these categories falls into change if/when the player has a government type. Then once the category is chosen, a random number between 0 and the length of the array is used to pick a random card that the user has. This card is then added to an array to temporarily store the card that was drawn. The process is repeated for as many available holders there are in the scene. BTW the holders can be assigned by simply dragging and dropping them into the public array in the unity editor. Once all of the action and event cards have been drawn a new function puts them into the correct location. For every holder we get its position, then we assign a card to each of the locations in the scene. Once again this is modular and scales with the amount of holders than you assign.

    I also added some changes to the card script and unit script. Now you can select the type of unit it is. Ranged, Naval, Siege, Land, or Religious. I also did a bunch of other quality of life updates making it so that the infrastructure behind the scenes was solid.

    However, so far I haven't been able to test it to see if it works as Nick has yet to send over the necessary game files meaning I can only build, and not test. However, I have been chugging hard and working on making these systems work well.

    To conclude, I also wrote a simple script that will be in charge of connecting everything together. Its called the player script and will be in charge of handling the drawing of cards, the picking of governments, the building of buildings, the training of units, and much more. Although, i still have to create a script that will allow the player to build, then I have to add to the script to make it so that the player can train. But after that we will have a MVP of our little game. Yay!

    Good bye, see you soon!

Comments

Popular posts from this blog

DevBlog #4 - Fintech Platform

Progress Update (Life): 1) Just a quick update, nailed my forensics test (Monday) with a 93%. 2) Nailed my Calc exam (Applications of Derivatives: 92%, Function Analysis: 82%) 3) I have my AP Macroeconomics tomorrow with AP Psych right after that. 4) Next week I have finals for AP Mirco, AP Calc, AP Psych, AP Computer Science A, Forensics, and Langauge Arts. 5) What this means is that progress updates are going to be taking place at irregular intervals until everything settles, so sorry in advance. Progress Updates (Fintech Platform): 1) I have the connection to MongoDB established and have data being added to the DB from the signup forms. Data is taken from the forms, encrypted, and then sent to the database for storage. At the moment only the password is encrypted but I might change that. This means that I can begin moving to the next thing. At least once I fix a small little bug. Currently, it goes to a test DB and not the DB for this current project. I am going to have to figure ou...

DevBlog #23 - Game

      Today, a lot of cool things happened that have a drastic effect on the game and its systems. You can now add several effects to a single card. Each effect has their own duration, amount, type, requirements, etc. All one incredible system. This required me to rewrite a bunch of the cardEffectController script but was worth it. I now also have cities seeing and recognizing their effects and the buildings effects on them too. In addition to this, I also added the population growth system and the population feeding system. This allows the cities to grow and prosper.     I have added some more cards, and have been adding in all of the effects that the cards have on the world.      Pretty neat stuff.      I am going away to camp for 3 weeks so I don't know if I will be able to post or even work on it, but I will do my best to keep you updated on the game and on any changes as they come.     Thank you so much, bye...

DevBlog #19 - Game

      Today, I made a huge amount of visual progress. However this visual progress was easy to implement, so very little back end progress, as I had built it in a way to easily implement this new feature.     I have made building possible. I have also made all of the buildings and their effects happen in the game. It is response, and works very well in the MVP demo. However, I am going to change how it looks from a system where you drop the card and then your done, to a system pops up and allows you to build it. This system will show you a green, transparent, ghost game object for you to place, then once it has been placed it will turn int the real thing. You will also be able to drag and drop from the UI bar at the bottom the buildings that you an construct from the card you have chosen. This will look really intuitive and pretty, but will be simple and easy to implement.     This is a pretty big day as now I can actually do things on the...