Sitemap
CodeX

Everything connected with Tech & Code. Follow to join our 1M+ monthly readers

Member-only story

Making a RTS game #36: Using workers to construct buildings 1/3 (Unity/C#)

15 min readNov 11, 2021

--

⬅️ Tutorial #35: Improving unit navigation & adding unit formations 2/2 | TOC | Tutorial #37: Using workers to construct buildings 2/3 ➡️

📕 Get the ebook and bonus material on Gumroad!
🚀 Find the code of this tutorial series on my Github!

In the last two episodes, we mostly focused on the character units. In this new tutorial, we are going to slightly shift the focus to both characters and buildings…

So far, we’ve been placing buildings directly and instantly on the ground, as “all-mighty god-like players”. It’s pretty neat and some strategy games work like this (again, the Industry Giant series is a good example), but most RTS are a bit different: instead, you have a builder/worker unit that can construct buildings over a short period of time.

Today and in the next tutorials, we’re going to refactor our building placement scheme to incorporate this logic. In this first part, we’ll focus on implementing the core logic; then, in the upcoming weeks, we’ll improve the visual and take care of various…

--

--

Mina Pêcheux
Mina Pêcheux

Written by Mina Pêcheux⁠

I’m a solo game dev & content creator. I love to make and talk about games (and also 3D and music)! Find me at: https://minapecheux.com :)

CodeX
CodeX

Published in CodeX

Everything connected with Tech & Code. Follow to join our 1M+ monthly readers