Skip to content

Instantly share code, notes, and snippets.

@terrehbyte
Created January 8, 2018 18:45
Show Gist options
  • Save terrehbyte/e7088bf1ebf69764c6763498eae9ecd7 to your computer and use it in GitHub Desktop.
Save terrehbyte/e7088bf1ebf69764c6763498eae9ecd7 to your computer and use it in GitHub Desktop.

Scripting and Core Concepts

Closed

1. Game Expansion

Take some time to expand upon your game level and build out your level more. Add some new ramps, bridges, platforms, or anything else you can think of to let your player explore your environment.

Hint
Remember, you can make it easier to move around and snap objects together by holding the v key as you move it around to snap them along their vertices.

2. Score Decreasing Pickup

Add some pickups to your level that will decrease the player's score rather than increasing it. You should distinguish these pickups from the regular pickups in some way so players can learn to avoid them!

Open

1. Health Hazard

Create a health hazard that decreases the health of the player when the player comes into contact with it.

This means that you'll need to add a variable or something to track the health value of the player.

2. Health Pickup

Create a health pickup that increases the health of the player when the player comes into contact with the pickup.

You should be able to configure each pickup to have different amounts of health.

3. Sprint and Stamina

Modify the player to add an ability for them to move faster by sprinting. The sprinting should be controlled by a stamina value.

  • The player should be able to sprint as long as they have stamina.
  • The stamina should decrease when they are sprinting and moving.
  • The stadmina should increase when they are not sprinting or moving.

4. Spinning Hazard

Add a spinning block or pole to your level that can push the player around. It should be able to push the player if the player is in the way as it spins.

You'll likely want to introduce this in locations where there is a tight corridor or a precarious bridge that the player might fall off of if pushed.

This should be driven by a new component that's attached to to the obstacle's GaneObject in the scene.

Challenge

1. Pickup Collection Noise

Find a way to play a noise when the player picks up a score pickup.

This helps reinforce the positive interaction between the player and the pickup, thus encouraging the player to seek out more pickups.

2. Jump Ability

Add a way for the player to jump!

Once you've added this, you'll want to introduce gaps and holes in the level that the player will have to jump over in order to traverse.

3. Hello World - C#

Visit the Microsoft C# Quick Start and follow some of the tutorials. Using C# in a standalone context is different from how it's used in Unity and is an important skill to be comfortable with.

You should also be able to use C# in isolation as well; Unity will likely not be the only environment you program C# code in.

4. Ditching VS for VS Code

Consider using a different tool such as Visual Studio Code for authoring your game scripts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment