CodeX

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

Follow publication

Member-only story

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

Today, let’s finish refactoring our RTS construction process!

Mina Pêcheux
CodeX
Published in
6 min readNov 25, 2021

--

⬅️ Tutorial #37: Using workers to construct buildings 2/3 | TOC | Tutorial #39: Boosting our game scene ➡️

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

In the last two episodes, we worked on refactoring our building construction process so that, on the ground, we have .

So far, we’ve done the core logic and we’ve improved the visual a bit by having the building change shape throughout construction and even adding some VFX. Today, we’ll wrap this up by and .

Replacing the basic ratio with a per-building construction time

Up to this point, we’ve been working exclusively with 0–1 ratios. It was nice because it made it easy to evaluate whether a construction was finished, en route, what kind of mesh we should be showing, etc.

However, it is sort of for a real game. In particular, it means that no…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

--

--

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