Sitemap
CodeX

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

Member-only story

Making an RTS game #10: Moving the camera (Unity/C#)

10 min readMay 13, 2021

--

⬅️ Tutorial #9: Implementing character units and skills | TOC | Interlude #2: Refactoring the event system ➡️

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

In this episode, we’ll talk a bit about graphical projections and camera set up, and then we’ll do some user input handling and reuse the notion of coroutines we saw last time.

At the end of this tutorial, we’ll be able to move the camera with the mouse or the keyboard, and to zoom in and out:

Press enter or click to view image in full size

Note: the trees and rocks in this movie and the following screenshots are free assets I found in the Unity Asset store, taken from the low-poly tree and rock packages by BrokenVector.

Video games are displayed on 2D screens. So, as they started to put more and more 3D objects in our games…

--

--

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