• Stars
    star
    563
  • Rank 79,150 (Top 2 %)
  • Language
    C#
  • License
    MIT License
  • Created about 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The code for my series of tutorials on how to make a real-time stategy (RTS) game in the well-know Unity game engine (with C# scripting)!

[Unity/C#] Making a RTS game

Mina Pêcheux • March 2021 - March 2022

thumbnail

📕 Discover the series as an ebook and get bonus material on Gumroad!

This repository contains the code for my on-going series of tutorials on how to make a real-time strategy (RTS) game in the well-known game engine Unity! Throughout this series of tutorials, I explore C# scripting for games, GUI building, event systems, behavior trees, sound optimization...


To run this project, make sure you play it from the "Core" scene! ;)

→ For more info, see Tutorial #41

demo

You can find the list of all tutorials on Medium, or right below:

Known issues

About installing / upgrading

The project was written in Unity 2020.3. This implies that, when loading it up with different recent versions of Unity, you'll need to "upgrade" the project. This usually goes without a hitch, but there is for now 2 bugs that have been spotted by the followers and I:

  • incorrect lighting: upgrading to some Unity 2020+ might lead to some strange lighting of the scene (because of pipeline render defaults and lighting settings changes). To get a similar lighting to the original project, make sure that you remove all baked lighting data, that all your (directional) lights are set to "Realtime" and that you ignore the environment lighting.

    To do so, open the Window > Rendering > Lighting panel, go to the "Environment" tab, and set the "Intensity Multiplier" variable to 0 both in the Environment Lighting and Environment Reflections sections.

  • FOV shader bug (thanks to @Oarcinae): upgrading to Unity 2019.4 might lead to unexpected behaviour for the FOV shader (because of pipeline render defaults changes); to fix the issue, you can try modifying the AlphaProjection.shader and comment out the line: #pragma exclude_renderers d3d11 gles (still an open issue #2, any help is welcome 🙂)

More Repositories

1

godot-tutorials

The code & assets for Godot/C# tutorials I published in video/text format on YouTube and Medium (🇬🇧 + 🇫🇷).
C#
170
star
2

UnityTutorials-BehaviourTrees

The code for a short tutorial on how to create a simple guard AI using behaviour trees in Unity/C# (in text or video format)!
C#
91
star
3

unity-tutorials

The code for Unity/C# tutorials I published in video format on YouTube (🇬🇧 + 🇫🇷).
C#
55
star
4

BlenderPlugins

Various little Blender Python plugins!
Python
52
star
5

Ebook-Unity-AIProgramming

Demo Unity/C# project (code + assets) for my ebook: "Boost your Unity/C#: AI Programming"
C#
40
star
6

UnityTutorials-Hacknslash

The code for my series of tutorials on how to make a hack'n'slash game in the famous Unity game engine (with C# scripting)!
C#
34
star
7

UnityTutorials-FiniteStateMachines

The code for a short tutorial on finite state machines and how to use them for basic 2D physics-based player movement in Unity/C# (in text or video format).
C#
33
star
8

UnityTutorials-ProceduralAnimations

The code for a short tutorial on procedural animations and how to create them thanks to the Animation Rigging package in Unity/C# (available in text format).
C#
28
star
9

py-sound-viewer

A basic sound visualizer in Python, to transform an audio file in a little movie!
Python
16
star
10

ShaderJourney

The code for my series of articles on how to create various VFX or rendering styles in Unity by writing up your own shaders!
ShaderLab
15
star
11

UnityTutorials-PhysicalProjectiles

The code for a short tutorial on how to make a simple physics-based 3D cannon in Unity/C# (in text or video format)!
C#
12
star
12

UnityTutorials-GizmosDebugging

The code for a short tutorial on debugging and editing game data visually in Unity/C# thanks to custom gizmos tools! (in text or video format).
C#
11
star
13

UnityTutorials-BasicPatrolSystem

The code for a short tutorial on how to create a basic waypoints-based patrol system in Unity/C# (in text or video format)!
C#
9
star
14

Unity-UnitTestingPong

A sample Unity Pong game to show how to do basic unit testing with the Test Framework package, with a CI/CD integration thanks to Codemagic.
C#
9
star
15

UnityTutorials-UnitTesting

The code for a short tutorial on how to implement basic unit testing in Unity/C# using the Unity Test Framework (in text or video format)!
C#
8
star
16

UnityTutorials-SmoothSceneTransitions

The code for a short tutorial on animation-based smooth scene transitions for both visuals and audio in Unity/C# (in text or video format).
C#
8
star
17

UnityTutorials-NoisesProceduralGeneration

The code for a short tutorial on how to use math noises to generate heightmaps procedurally and apply them on terrains in Unity/C# (in text or video format).
C#
6
star
18

UnityTutorials-MixamoAnimations

The code for a short tutorial on how to use free animations from Mixamo to quickly setup a simple player in Unity/C# (in text or video format)!
C#
6
star
19

godot-quick-tutorials

The code & assets for Godot/C# tutorials I published in video/text format on YouTube and Medium (🇬🇧 + 🇫🇷).
C#
6
star
20

UnityTutorials-EventsAndBroadcasting

The code for a short tutorial on Unity events and how to use them to make a broadcast messaging system and decouple systems in Unity/C# (in text or video format).
C#
5
star
21

unity-quick-tutorials

The code & assets for Unity/C# tutorials I published in video format on YouTube (🇬🇧).
ShaderLab
3
star
22

simplefempy

A basic Python library for problem solving with the Finite Elements Method
Python
2
star
23

Unity-SuperJump

A sample Unity platformer to show how to do basic webhook triggering/auto-publish for a CI/CD integration thanks to Codemagic.
C#
2
star
24

Unity-IcoPop

C#
2
star
25

ShapeBrowser

ShaderLab
2
star
26

rangen-name

Rangen is a suite of random generators and procedural generation tools; rangen-name focuses on name generation.
JavaScript
2
star
27

Godot-Codemagic_Tutorial2D

GDScript
1
star
28

codemagic-demo-unity-2021

C#
1
star
29

codemagic-demo-unity-2020

C#
1
star
30

Medusa

A small encoding/decoding Python lib.
Python
1
star