Tag Archives: scene

Adding assets to your 2D game in Unity

This video explains how to import assets into a 2D game project in Unity. Assets in your game will include items such as background images, character sprites, objects in your game scene, materials, and scripts that will control the game.

We will get started by adding a sky background, the ground, and a player object (ball). To add assets to your game, you simply drag and drop files directly into the Assets panel. Files you might like to add include images for backgrounds, spritesheets for characters, animations, sounds, and materials.

addassets

To see how this is done, watch the video below.

Next tutorial: Adding physics and colliders to your 2D game

Lighting in PlayCanvas

In this tutorial you will learn how to add and modify lighting in your game. You can use different types of lights and have multiple lights in any scenes to change the feel and atmosphere of the game. The three types of lights you can use are:

  • Directional light – light rays come from one direction
  • Point light – a sphere of light that shines in all directions
  • Spot light – a cone of light

Watch the video below to see how you can use lighting in your own PlayCanvas game.

Entities and materials in PlayCanvas

In this tutorial you will learn more about entities and how to modify a Box entity to make a ground or floor for your game’s scenes. You will also learn how to use materials to give 3D objects some colour and apply detailed patterns and textures using assets.

A repeating grass pattern image like the one shown in this tutorial can be downloaded from here.

Tip: You can do a Google Images search for textures and patterns using keywords such as “brick pattern tiled”, “repeat brick pattern” or “brick pattern seamless”.

Adding fog and lens flares to a scene in Unity

This video explains how to add fog and lens flares to your 3D game scene in Unity. Watch the video below and scroll down to see some of the sample fog and lens flare images.

Here are some examples of fog applied to a scene in Unity.

A light fog (in Scene mode).
A light fog (in Scene mode).
Thick fog (in Game mode).
Thick fog (in Game mode).

Here are some examples of lens flares in Unity.

A 50mm Zoom flare in Unity.
A 50mm Zoom flare in Unity.
A Sun Flare in Unity.
A Sun Flare in Unity.
A Small Flare in Unity.
A Small Flare in Unity.

Cameras in Unity

This tutorial explains how to add cameras to your 3D game project in Unity. Cameras allow you to see scenes from different views and you can also attach cameras to the players in your game so that they see different views eg. first person view. Scroll down to watch the video.

A camera setup with the Camera Preview in Unity.
A camera view in the game preview mode
A camera view in the game preview mode

 

Watch the video below to see how you can add cameras to your own game project.