Lurker News
I've seen some interests in (simulation) video games here on HN so I thought I'd share a short version of our story.

More than 6 years ago, me and my friend from university were playing around with an idea of making a game we always wanted to play. We worked on it on weekends but the progress was quite slow, especially due to so many dead ends and wasted effort.
Eventually however, we solidified our direction and decided to take the risk to resign from our well paid SWE jobs and work on it full time. It took more than a year but yesterday we have finally released it on Steam: https://store.steampowered.com/app/1594320/Captain_of_Indust...
I am still not sure if this was a good decision financially, but unlike in a corporate environment, I am so much happier working on a product that I can put my love into and see people enjoy it, see my direct impact, and be able to make big decisions (although this also adds a lot of stress).
I also quite enjoy the added SWE challenges. I had to write so many complex algorithms (path-finding, logistics, serialization, ...) and optimize things down to bits (shaders, compression of in-memory data, ...) that were rarely required by my corp job.
Anyhow, this is getting a little long, feel free to ask any questions, I will do my best to answer them.

Comments (279) 95 threads

Show all comments

Showing thread 2 of 95

japhib1 reply#
Looks awesome! Congrats on the release, and it seems like you're getting a pretty good reception so far as well.

A few questions:
1. How did you get all the assets for your game? Did you make them yourselves? I also work on games as a hobby, but I'm no artist so I struggle to get things looking as good as this game.
2. How did you decide to use Unity for your game engine? Did you consider any others, and if so, what was the deciding factor?
3. How did you organize your code in Unity, especially on a big, multi-year project like this? I find Unity scenes and prefabs get messy really fast. The only way around this I've found is to avoid using the scene/prefab stuff as much as possible and just focus on doing stuff with code instead. But I'd love to hear any strategies you have.
4. (Probably most related to the art question) How did you decide to make the game 3d? It just seems a lot more difficult than 2d so it seems like indies tend to avoid 3d when possible. And it definitely seems possible for a top-dow-view strategy game.

iliketrains3 replies#
Thank you!

1. All 3D assets and music was done by our contractors. All paid work. On average, one model is probably around $500.
2. C#. We both were familiar with it and it is a great language. Lots of nice features, easy to work with, lots of tools, less error prone (looking at you C++), has reflection (very helpful for serialization and code gen), and if you know what you are doing, it can be very performant (avoid allocations, use structs, etc).
3. Great question, yeah, our project is separated to code and graphics. All code is in separate project completely decoupled from Unity. Unity just gets a compiled DLL. Unity has only assets that are referenced by string paths. We also have a separate projects for "data", where all the game entities are instantiated and filled with data. Core project has just functionality with no data. The entire game is one "scene" in Unity, we manage everything internally (like main menu vs. game).
4. We started in 2D, but it seemed "lame", not good looking. Very quickly we started prototyping in 3D and that felt better. Especially the dynamic terrain and mining.

hoten1 reply#
So what exactly is the utility of Unity in this setup then?
iliketrains3 replies#
It is basically a big rendering library, providing C# APIs for rendering and sound. It also packages all assets, and can be used as editor.
mentos3 replies#
Awesome, I’ve been developing with Unreal since 2014 recently checked out C# support with UnrealCLR it’s very basic but probably enough to create an API between your game code and Unreal. Really curious to know what level of granularity your API is at?

Continue this thread — 3 replies

cloudmike#
Very interesting. Like the sibling comment, I'm also curious about your API for this.

I've been using Unity in a similar way but with Luau (a gradually typed Lua by Roblox) for the API. It's been very educational to treat Unity as a box like this, and I've been making the Luau API very high-level, often following Roblox patterns (more coarsely grained).
As a side-effect of this separation, it's also refreshing to have the option to make everything work with other engines.

digitalmouse#
Reminds of flashpunk and flixel
devortel1 reply#
> On average, one model is probably around $500.

That's a pretty impressive budget, there must be hundreds of models in the game.

davnn1 reply#
On a related note, how did you fund the development over such a long timeframe?

Continue this thread — 1 reply

hahamrfunnyguy1 reply#
It sounds like you had several different contractors working on it, so what steps did you take to ensure a consistent art style?
iliketrains#
Yes, multiple, three stayed with us for more than a year and are mentioned in Credits.

Initially, we asked them to do things "realistically", but not looking too brand new. Eventually, we had a good set of models that we could use as a style reference. We had to redo some models that were not fitting the style and we still have a list of models to improve.
One thing that we learned early is that all models need to have a common scale, otherwise details like doors look bad when scaled differently on each model. We have established a metric system, each tile in game is 2x2 m, all railings are 1m tall, all doors are 2m, etc.
Now we have a doc with all our notes regarding style and rules that we share with new artists.