Sitemap
CodeX

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

Member-only story

Making a RTS game #15: Adding a minimap and fog of war 3/3 (Unity/C#)

9 min readJun 17, 2021

--

⬅️ Tutorial #14: Adding a minimap and fog of war 2/3| TOC | Tutorial #16: Introducing a sound system 1/2 ➡️

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

These past few weeks, we’ve been working on the minimap and the fog of war systems for our RTS game. They allow us to get a bird’s-eye view of the terrain and to distinguish unexplored, already explored and in-sight areas. We have a little UI indicator to better materialise the part of the map currently in view of the main camera and some game parameters to easily change the settings of the fog of war.

In this final part, we’re going to wrap this up by adding some final touches:

  • a mechanism for direct camera “teleportation” when we click on the minimap
  • a small “fade-in” effect on units FOV so we transition a bit from dark to light when we place a building or create a character unit
  • conditional rendering for the scene objects depending on their type and on whether they are…

--

--

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