Skip to main content

DevBlog #3 - Game

    Today I worked on the optimization of the terrain generation process. Instead of creating the entire tile map with all of the proper game objects on top of each tile in the first frame, I instead broke it down frame by frame. I used a new thing I found called an "IEnumerator ". This type of function lets me start and stop the function when ever I want to. This allowed me to break apart the function and make it so that ach of the tiles and their corresponding game objects are instantiated every frame. This reduced the overall computational powers required to generate the terrain. This might look weird when you play the game, but later on it will all be covered up by a loading screen, making it look professional and cool.

    I also added somethings to the UI showing where the Auction House button would go, the cards would go, and where the draw more cards button was. This created a nice feeling of where everything was going to be in the future, and helped me sketch out and plan for the upcoming tasks.

    Next, I also removed the ability to scroll in and out with the keyboard as it was creating a small amount of bugs, and clashing with the way that I was limiting the amount players could scroll in and out of the game. Furthermore, I though it would be a little redundant as there was already a solid way to zoom. So I removed it.

    Lastly, I attempted to alter the way that terrain was generating by creating a local variable to keep track of the tags in the physics overlap sphere function for each of the terrain objects. I then used this to erase all of the game objects that where floating over the void since they obviously couldn't be touching anything if they are over the void. This ended up slightly working, but some still remain. The most frustrating thing about all of this is trying to find out why some objects generate perfectly, and get removed perfectly, while others stay. Guess this is all just a part of the process.

    See ya next time!

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!