CodeX

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

Follow publication

Member-only story

Making a RTS game #51: Implementing a technology tree 2/3 (Unity/C#)

Let’s continue our RTS and keep working on our technology trees!

Mina Pêcheux
CodeX
Published in
14 min readMar 3, 2022

--

⬅️ Tutorial #50: Implementing a technology tree 1/3| TOC | Tutorial #52: Implementing a technology tree 3/3 ➡️

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

Last week, we started to implement the last big feature of “phase 1” of our RTS game: the ! We discussed the overall structure and we even created a simple example tech tree that was able to impact different other systems in our game: the purchase costs and the unit’s attack damage value.

But so far, we’ve had to do everything via our debug console, which is of course not the way to expose this info to the players! So, today, let’s continue working on our tech trees and see how to in a readable and intuitive manner. Then, we’ll also add a bit of logic to actually so that, when we reload a game session, we get back all of our unlocked techs :)

Displaying our tech tree in the UI and enabling research

Creating the panel and toggling it

--

--

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