CodeX

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

Follow publication

Member-only story

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

Let’s keep working on our RTS — today, we’ll see how to change the building construction process to use worker units!

Mina Pêcheux
CodeX
Published in
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 , 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 .

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…

--

--

CodeX
CodeX

Published in CodeX

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

Mina Pêcheux
Mina Pêcheux

Written by Mina Pêcheux

I’m a freelance full-stack web & game developer. I’m passionate about topics like CGI, music, data science and more! Find me at: https://minapecheux.com :)

No responses yet

Write a response