Game Dev Notes #2 – Snowboarder

These are notes from the Complete C# Unity Game Developer 2D Udemy Course

Profiles

Unity comes with lots of existing packages that contain default profiles. We can override them by going to assets -> create -> 2D -> Sprite Shape Profile. Then we can click and drag onto the Profile section in the inspector. That will let us use the sprite profile we created instead.

When we create a new sprite profile, we can click on it and drag an actual sprite to the Sprites section of the profile.

Cinemachine

Install Cinemachine from the Unity package manager. It will auto-add it to the main camera.

Click on the virtual camera it created and change “Body” to “Framing Transposer”. Then choose what to “Follow”

Sprites

You can create an “empty” parent object and click and drag sprites underneath it. Children’s position is then relative to their parent.

Collision

We can add a Surface Effector (2D) to our floor which will create a “conveyor belt” movement. We need to make sure it is attached to the edge collider by selecting “Used by Effector.”

For our main object that is interacting with the surface, we want to change the rigid body Collision Detection to “Continuous”

“Rigid Bodies” are the things that physics are acted against in unity.

Scene Managing

We can import `UnityEngine.SceneManagement` to manage scene stuff.

Particles

Two parts:

  • emitter: the object that emits particles
  • particles: the actual particles

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s