martyna-nieckarz / GE1-2020-2021

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DT228/DT211/DT282/DT508 Games Engines 1 2020-2021

Video

Resources

Contact me

Previous years courses

Assessment Schedule

  • Week 5 - CA proposal & Git repo - 10%
  • Week 13 - CA Submission & Demo - 40%

Week 2 - Vectors

Lecture

Week 2 - Tank game, trigonometry & vectors

Lab

Learning Outcomes

  • Build a simple agent with perception
  • Develop computation thinking
  • Use trigonometry
  • Use vectors
  • Use the Unity API
  • Practice C#

Instructions

Today you will be making this:

YouTube

What is happening:

  • The red tank has a script attached that has radius and numWaypoints fields that control the generation of waypoints in a circle around it. It draws sphere gizmos so you can see where the waypoints will be.
  • The red tank will follow the waypoints starting at the 0th one and looping back when it reaches the last waypoint.
  • The red tank prints the messages using the Unity GUI system to indicate:
    • Whether the blue tank is in front or behind
    • Whether the front tank is inside a 45 degree FOV
    • Use the Unity reference to figure out what API's to call!

Week 1 - Introduction

Lecture

Learning Outcomes

  • Install Unity & git for Windows
  • Sign up for the class Facebook page
  • Find the Unity tutorials

Instructions

About

License:MIT License


Languages

Language:C# 73.3%Language:ShaderLab 26.7%