Exercise 3: Somewhere fun to collect things

GAME 615 - American University

This exercise is to be completed with a partner

Your github repository should be called game615-spring2023-03

Description

For this exercise, you will create a small game where the player controls some a 3d model that needs to collect one object, and avoid another. For example, a rocket ship might try to collect fuel and avoid asteroids. Or a person might try to "eat" (collect) a sandwich and avoid a bee or something.

Something unique must happen when the player collides with each type of object. For example, perhaps the person might grow larger when they collide with the sandwich, and might move slower when they collide with the bee.

Finally, your partner and you should challenge yourself to make the game have a win and lose conditions (i.e. a goal). How you choose to design and implement that is up to you, but try to only make use of the sort of thing we have covered in class already. One example might be that the player only has a certain amount of time to collect all of the desirable objects or they are destroyed. Or perhaps the player is always moving forward, but their fuel is constantly depleting, and there is collectable fuel everywhere. The goal of the game might be to survive (not run out of fuel) for a certain amount of time. As a simple thing to try, perhaps you can just say the player wins if they collect a certain number of the good items.

Implementation Requirements and Tips

Configuring your project

Name your repository "game615-spring2023-03"

Make sure to set your Unity and Github projects correctly

Getting the Sample Project Loaded into Your Project

To integrate the project into another Unity project, download and import the .unitypackage file located at the "CODE" link below. In your own Unity project, go to Assets > Import Package > Custom Package...

Once you do this, all of the assets from the sample project will be loaded into your project. Double click the "scene" file (the one with the Unity logo) to actually open up the sample game.

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, as part of your submission process, you must complete this form.

Sample Code

CODE PLAY