This week has been has just been refactoring and cleaning up the code, finding more efficient ways to do things. All the bugs I've found I've crushed except one. For some reason if you try to build a building without the necessary resources, the text is not displaying that there's not enough res…
Hey all,
I just got my communicator working. It's not glamorous art, but it's good placeholder for now. I have 4 counselor robots for the 4 pillars of the game: Build, Navigation, Research, and Military.
The communicator blinks a button when we queue up a dialogue. The screen will th…
Hello World!
This weekend met the completion of a goal I thought might take a month or so. I used Unity's ECS system to get about 10k enemies march towards the center of my map, and I had buildings created that could fire projectiles at them and kill them, throwing them away from the project…
I finished a dialogue system so that it will take any number of dialogue sentences that require a button press to move to the next sentence, then can handle any number of dialogue options from that choice. The map can loop on nodes and really go anywhere, along with code to run once the dialogue…
This week I wanted to start working on story elements. I decided to create a system for any game I make where I can easily navigate a dialogue tree...and one that is dynamic and loops on itself as well.
I just finished it. It does not look pretty at the moment, but the next step will be poli…
So, normally I tell myself "focus focus focus" and work on this game I'm making. But I'm starting to think I bit off more than I can chew. Which, from reading other people's blogs, is pretty normal.
This project is extremely ambitious, and I'm getting burnt out constantly. I keep getting ide…
Huge milestone passed just now. I have the barebones of a game, finally. I started this journey in March, with literally no knowledge of C# or Unity, only a passion to get a game that I've always wanted...a business simulator that lets me do what I want to do, instead of just focusing on busines…
Hello world. Been a few weeks. I've been exhausted. I got a new promotion at work along with a move to a new apartment. I have begun worrying about work life balance, and the last thing I want to do when I get home is work on my game.
But fear not, I have been dabbling and I've solved the is…
So I have the economy running and graphs are up and showing me that I have a bunch of bugs in my economy code. Some goods are being bought but others are not. Why? I don't know, but the goods that are being bought are definitely working.
But I'm stuck at something stupid. Player orders. It's…
So the time has come...I need to polish the UI and user experience. I finished up the economy and I'm pretty happy with it. It seems stable. I haven't run it through 10,000 turns or anything, but its workable.
So, we have 3 times of companies, we have licenses that easily determine what cate…
Huzzah! Not much to really show since everything happens in Debug.Logs and code, but markets are done.
So what can retail agents do? Right now they can choose between restaurants or super markets...both of them have a different lists of goods. The restaurants will have the more complex good …
This weekend I probably put in around 20 hours with my economy code. I ripped up everything and slowly rebuilt it in a new class, transferring over logic. My controller code is now just a flow controller, and all the logic is contained in the actual companies and contract logic.
So what can …
The refactoring of the market code is trucking along. I've learned so much about C# and programming since I first wrote it, and my design has changed since then, so I'm using the old pseudocode as my template while rewriting the class itself. It's not really hard. My new code looks like this:
…The data model merge took place. I broke the code and then rebuilt it. This is actually more fun than I imagined.
So, now I'm working on refactoring the market code to allow it to be extensible as I add in company behavior. All the market decisions were being handled inside the market contro…
So, I think I've designed a possible solution to my tree problem.
First off, I really like C#. My background when I was young was C++, and learning data structures and pointers was interesting. I did really well with assembly language, and enjoyed those kind of recursive things. But I never …
So I think I have a general idea of what I want now. I wasn't exactly sure how I was going to implement this. I was studying the SOLID principles, especially the ones I have no clue about, and was going over the L. I noticed the examples online had a lot to do with interfaces.
So here's what…
The day has finally come. I've created my first art asset. A simple placeholder silhouette for my Corporate hierarchy tree.
I'm sure it's not much to any savvy artist, but it took me about an hour. I chose to go with Photoshop because of the myriad amounts of tutorials and help I can fin…
It took a few hours, but I finally got back up to speed from losing my entire scene from a crash. I now have backups and will be implementing some type of version control so I don't have this issue again.
One of the good things about this crash was that I had run into a wall on how to implem…
So, today, while going through my code, my computer crashed. It's an old computer from 2011 that I haven't the heart to replace. When I loaded up Unity, I got over 1000 errors, all talking about the GUI not being able to load. My scene was gone. I double clicked my scene, and it was empty.
I…
This week I've been working on bugs and doing a little refactoring.
I finally hooked up the scheduler to the economy. This actually made me realize I'm a much better coder than I was giving myself credit for. For instance, my old rescheduler code took strings in of the skillnames and then lo…
This week was about relaxing and designing. Two games I had been waiting on came out this week that got me absorbed, Anno 1800 and Weedcraft. I'm done playing both of them, but they both had some interesting design concepts that I enjoyed.
Anno 1800 has something called Expeditions. I absolu…
This week I focused on getting the player hooked up to interface with the economy. I've tested what I have with varying amounts of agents, and the numbers popped out about what I would expect, so it appears to be working. I need to capture more statistics later to make sure there's not "other" b…
So just a few minutes ago, I got my economy sim up and running. I really love C#. It allows me to do a lot of things I couldn't do in programming languages, or at least so cleanly.
I finished the code a week ago, but it was extremely rigid. For instance, I had farms able to produce goods, th…
This weekend was spent exclusively on my economic model. I spent a day planning out what I wanted to do. I wanted to replicate demand and supply, curves and market behavior.
At first I simply tried to replicate the curves explicitly, with quantity supplied, quantity demanded, price and equil…
I've been watching alot of videos on C# and the SOLID principles of coding. 3 weeks ago I had never coded in C#, and I've been learning swiftly. Last night I figured out Coroutines and how they work. I did not expect the rest of my code to run while the coroutine was running...I thought it was l…