Changing Lighting | Unity Tutorial

Lighting is a crucial part of game development. In this tutorial, we will look at several ways to change the lighting of your game in Unity. If you are a beginner and want to learn how to build virtual reality games, check out our Unity 3D course

The lighting in your game can set the tone of the scene and provide useful information for your players. Unity’s default light is Directional Light. Rays extend from Directional Light in all directions. When a ray hits an object, a shadow will project on the floor.

Ambient Intensity

One way to change a game’s lighting is to change the Scene’s Ambient Intensity. Select Directional Light. Deselect its Light component in the Inspector. Go to Window > Lighting.

The Lighting window will appear. Select the Scene tab. Here you can change the value of the “Ambient Intensity” slider. The appearance of the Scene will change depending on the value.

Set Ambient Intensity to 1. Close the Lighting window. Change the position of Directional Light in any axis. Notice that the intensity of the Scene’s light and the shadows do not change. This is because Directional Light is so far away that no matter where it is located, the projection will be the same.

However, changing Directional Light’s rotation does change the Scene’s lighting. Select the Rotation tool in the top left. In the Scene, move the circles around Directional Light. The appearance of the shadows in the Scene will change.

Rotating the Directional Light is like moving the sun. Pointing the light completely above the floor makes the Scene dark, as though it were nighttime. Set the Rotation values to 50 -30 0 for now.

Spot Light

There are other kinds of lights. In the Light component in the Inspector, change the Type to Spot. Spot is a spotlight that is rendered to point at a certain area. You can change the range of the spotlight (how far it points), its angle (how wide its is), and its intensity.

The spotlight can feature an element in the Scene. For instance, we can point the spotlight at Cube to give attention to it. You can also change the color of the spotlight, such as to blue to give a sense of mystery, or to red for danger.

Point Light

Another type of light is Point, shown in the next image. The Point light is a light bulb. It is a point that projects light in every direction.

Zoom out in the Scene. You will see a yellow dome, which represents the range of the Point light. You can decrease the Point light’s range to make the dome smaller.

There are many other properties that you can alter to change your game’s lighting, so stay curious, and experiment in the Inspector. To learn more about Unity, check out our Unity 3D course, where you build 30 virtual reality games!

Learn to Code in Python | New Course Release

Learn to code. Right here, right now.

If you’ve always wanted to learn to code, our new Python course is the place to start. In this course, you learn how to code in the Python 3.5 programming language. Even if you have never coded before, you can learn how to use Python.

Python is easy to understand and can be used for many different environments. Cross-platform apps and 3D environments are often made in Python.

Our Python course teaches you the foundations of coding in Python. This course does not assume any level of experience and is therefore perfect for beginners!

The course covers basic programming concepts for people who have never programmed before. You will learn key topics in Python and coding in general, including variables, loops, and classes. By the end of the course, you will know how to handle input, output, and errors.

To learn how to use Python, we will create our own functioning Blackjack game! In this game, a player will receive cards, submit bets. Python will keep track of the player’s score.

You will be able to use the practical examples in the Python course to make your own apps and environments. Python is a popular programming language that is useful to know because of its versatility. Let’s get started!

Build tvOS Apps for the Apple TV | New Course Release

Code for the Apple TV.

Do you want to build your own apps for the Apple TV? Whether you have or have not ever developed for iOS, you can learn the fundamentals of making apps for tvOS with our NEW Apple TV course.

Our Apple TV course begins by covering the fundamentals of the Swift programming language. This course does not assume any level of experience and is therefore perfect for beginners! If you have never coded before, you will learn basic programming concepts.

You will learn how to use Xcode to design and code apps. If you have experience developing for iOS or macOS, the Apple TV course will give you a head start into developing for tvOS.

Throughout the tutorials, you will build – from scratch – three functional tvOS apps:

Quiz App – Create a multiple-choice quiz. Learn how to add buttons and keep track of a user’s score.

Dialogue Tree App – Create a chat bot. A user will be able to have a conversation with a computer character.

Interactive Story App – Create a choose-your-own adventure game. A user will be able to make choices to continue their character’s story.

By the end of the Apple TV course, you will have three functioning apps that you can easily modify to fill in your own content. Your own apps will be up-and-running in no time!


The Ultimate iOS 10, Xcode 8 Development Book. Build 30 Apps!

Over 700 pages. This is the largest iOS and Swift book ever released.

Have you always wanted to create your own iOS app? Mammoth Interactive has written a new book just for you: The Ultimate iOS 10, Xcode 8 Developer Book.

Even if you have never coded before, you can learn how to build an app from scratch using Xcode. The Ultimate iOS 10, Xcode 8 Developer Book takes you step-by-step through designing, coding, and testing different iOS applications.

The code in The Ultimate iOS 10, Xcode 8 Developer Book is easy to follow along with. The book’s numerous screenshots ensure that no learner is left behind.

The Ultimate iOS 10, Xcode 8 Developer Book contains three parts:

Playground – In Part 1, you learn the foundations of Xcode using Swift 3.0’s Playground. The Playground is the perfect place to test code in real-time. We use the Playground to introduce important Xcode topics, including: variables, statements, functions and loops.

UI Elements – Apps are made up of User Interface (UI) elements. In Part 2, you create Projects to test common UI elements, including labels, buttons, and text fields. With code, you learn to implement the objects to give them functionality.

Example Apps – In Part 3, we create several functioning apps. To build an app, we design its layout and implement its functionality. You learn how to test your apps by running them in the Simulator.

If you are a beginner, The Ultimate iOS 10, Xcode 8 Developer Book is the perfect book to learn the foundations of developing for iOS. We use practical examples that you will be able to reference when building your own apps. Your first app will be up-and-running in no time!

Build a Super MARLO Runner Clone in Unity and Blender

Build an epic 3D game.

Do you want to make your own 3D game? We have the course for you. In our new Super MARLO Runner course, you can learn the foundations of making a 3D game. In these tutorials, you will build a Super MARLO Runner game in Unity3D – from scratch.

The Super MARLO Runner course does not assume any prior knowledge. It is perfect for beginners. In fact, the course begins with an introduction to Unity for those who have never used it before.

This course is unique because you will make your own 3D art, models, and textures in Blender. You will learn how to integrate the art into Unity.

You will learn every step it takes to design a game from start to finish. The Super MARLO Runner course teaches you how to:

  • Create characters and make them move
  • Draw speed blocks and enemies
  • Add power-ups and finish lines
  • Develop the background and interface
  • Design and fine-tune a level

When you complete the Super MARLO Runner course, you will have a functioning runner game. You will be able to build upon the game to add your own project ideas! Ready to begin?