Exercise 5: Collect Stuff Inside a Building!

GAME 615 - American University

Description

The following exercise is designed to give you practice using a handful of tools for creating more immersive worlds: Terrains, ProBuilder, Player Controller Starter Assets, and Particle Effects. It is to be completed with a partner and your github repository should be called game615-spring2023-05.

Create a simple game where the player searches a building's interior for a number of items to collect. Outside of the building is a mountain range that you can see through several "windows".

Requirements

  1. Use either the first of third person starter asset from the Unity Asset Store.
  2. When the collectable is collected, a particle effect should be instantiated where the collision happened (i.e. instantiate a prefab of a particle effect that is destroyed after a short amount of time)
  3. Use point lights to customize the lighting of the interior
  4. The number of items collected should be displayed on the screen (with a custom font)
  5. The walls of the interior should have some color applied to them (using ProBuilder Vertex Colors)
  6. There needs to be at least one stair case that leads to a higher level in your building
  7. There needs to be windows on some of the walls where you can see the mountain range outside (created with a textured terrain). In order to create windows, you will need to cut the walls (or use the subdivide face tool), and delete faces in the shape you want the windows to be in.

(optional) Challenge

Create a jump scare where the player collides with an unseen trigger, and something starts moving forward (presumably toward the player at the time of collision).

Hint: you can have the scary thing have an if statement wrapped around the "move forward" code within its Update function. The condition of the if statement can be a bool variable initially set to false. In the OnTriggerEnter function, you can set the variable to true.

Potentially Useful Notes

Terrains

ProBuilder

Starter Assets

Particle Effects

Configuring your project

Name your repository "game615-spring2023-05"

Make sure to set your Unity and Github projects correctly. BE EXTRA REALLY SUPER CERTAIN THAT YOUR GITIGNORE FILE IS CONFIGURED CORRECTLY AND PLACED IN YOUR UNITY PROJECT FOLDER (the same one as assets)

Building your Project for the Web

Submission

Turn in this assignment via your properly named GitHub repository. Each submission must be accompanied by a README.md file that contains your name, the name of your collaborators, and a link to a playable version of your game (i.e. a WebGL build). Also include any other information you think may be relevant (e.g. how to play if it isn't obvious).

Also, as part of your submission process, you must complete this form. In the form there is a place to link your repository - this is where I will look to see your submission.

Sample Code

CODE PLAY