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/11/19
Drop the Cube

Press space to drop the cube!

This covers:

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

CODE PLAY
1/23/19
Launch Something

Hold space to charge, release to shoot!

This covers:

  • Conditional statements
  • Chaning variables with input
  • Triggers and OnTriggerEnter
  • Moving Game Objects
  • Grouping GameObjects

CODE PLAY
2/6/19
Spinning Snowball Cube

Hold space to charge, release to shoot!

This covers:

  • Creating Prefabs
  • Instantiating Prefabs
  • Assigning random colors and scale
  • Movement with transform's forward vector
  • Basic user interface and button events

CODE PLAY
2/13/19
Mike's Exercise 4

This covers everything in the topics list from exercise 4:

CODE PLAY
2/20/19
Flight Simulator

This example introduces terrains and also reviews most of what we've covered in class including:

  • Forward movement
  • Triggers
  • Important and configuring models with colliders (and triggers)
  • Instantiating prefabs
  • Launching projectiles
  • Updating UI with things like 'score'

CODE PLAY
2/27/19
Basic 3D Platformer

This example introduces:

  • ProBuilder
  • CharacterController
  • simulating gravity
  • Animation and the Animator

CODE PLAY
2/27/19
Clicking on Units and UI

This example demonstrates:

  • Clicking on Game Objects
  • Creating a GameManager that updates UI elements (updated from any script)
  • Creating UI elements that respond to game state
  • UI Layout (look at the Unity scene file in the MouseAndUI unitypackage)

CODE PLAY
3/27/19
Timed Events with Coroutines

This example demonstrates:

  • Using coroutines
  • Using UI elements to present dialogue between characters
  • Creating a 'fade in' effect

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/24/19 Rube Goldberg Machine Exercise sent via email
2.1 1/31/19 Setting up your development environment with Unity and Github Setup Instructions
2.2 1/31/19 Launch Something! link
3 2/6/19 Roll a Something link
4 2/20/19 Putting it all together link
5 2/27/19 Flight Simulator link
6 3/6/19 3D Platformer link
- 3/20/19 (Near complete playtest)
3/27/19 (Polished submission)
Midterm link
7 4/3/19 Cutscenes link
- 5/7/19 (with sub-deadlines) Final Project: A Complete Game with a Theme link

Syllabus

Office Hours

Friday 2-3:30pm

Link to Syllabus