GAME 615 - Game Development!

Learn the basics of programming using the Unity Game Engine.

Instructor Mike Treanor

Examples

Most examples from class will be annotated and posted here. Remember to look carefully at the comments in the code. To quickly look at the code, just look through the Unity project in the GitHub repository. To integrate the project into another Unity project, download and import the .unitypackage file. In your own Unity project, go to Assets > Import Package > Custom Package...

1/18/23
Drop the Cube

Press space to drop the pizza!

This covers:

  • Changing a shape's color
  • Rigidbodies
  • Loading models from poly.pizza

CODE PLAY
1/25/23
Launch Pizza Steve!

Press space to drop the pizza!

This covers:

  • Changing a shape's color on collision
  • Rigidbodies
  • Basic input

CODE PLAY
2/1/23
Pizza Steve Collecting Coins

This covers:

  • Directional input
  • The Translate and Rotate functions
  • Triggers
  • Prefabs
  • Tags

CODE PLAY
2/8/23
Banana Car Confetti and Counting Collisions

This covers:

  • Instantiating Prefabs
  • Displaying variable info in a UI
  • A simple plane flying in a circle
  • The Translate and Rotate functions
  • Triggers
  • Prefabs
  • Tags

CODE PLAY
2/15/23
Intro to Building Levels/Terrains

This covers:

  • Terrains (and textures)
  • ProBuilder Basics
  • Particle Effect Basics
  • Unity's First Person Starter Asset

CODE PLAY
2/22/23
Inter-GameObject Communication and Clicking on GameObjects

This covers:

  • Using a GameManager script to centralize variables and UI updates
  • Navigation AI using Unity's NavMesh
  • Collecting stuff using triggers

CODE PLAY
2/22/23
Minimum Midterm Example

This covers:

  • Responding to player input
  • Having objects move around
  • Writing to code to respond to when certain objects collide
  • Displaying dynamic information on the screen
  • Using the Unity Hierarchy to configure game object's pivot and forward vector
  • Creating prefabs via code

CODE PLAY
3/22/23
Basic Animations

This covers:

  • Changing animations via code
  • Using a CharacterController to get smooth movement when colliding with walls/slopes
  • Using a meter UI element that is updated via code

CODE PLAY
3/29/23
Selecting a Unit and Populating UI

This covers:

  • Isometric camera
  • Selecting one Unit at a time
  • Populating UI with information (such as a name)
  • 1st coroutine example

CODE PLAY
4/12/23
Basic 2d Platformer and Tilemap

This covers:

  • Basic 2d platformer controls
  • Tilemap
  • Cinemachine Basics

CODE PLAY

Exercises

All exercises are designed to allow you to demonstrate proficiency in various aspects of game programming. As you code, you should also adhere to the code standards demonstrated in the examples, and that I demonstrate in class.

# Due Date Title Link
1 1/25/23 Rube Goldberg Machine Exercise sent via email
1.5 1/25/23 Setting up your development environment with Unity and Github Setup Instructions
2 2/1/23 Exercise 02 - Launch Something! link
3 2/8/23 Exercise 03 - Somewhere fun to collect things link
4 2/15/23 Exercise 04 - Simple Flight Simulator link
5 2/22/23 Exercise 05 - Collect Stuff Inside a Building! link
6 3/1/23 Exercise 06 - Race to Collect! link
7 3/8/23 Midterm link
8 3/22/23 Basic Animations in Unity link
8 3/29/23 User Interface link
9 Multiple Deadlines Final Project link

Syllabus

Link to Syllabus