-
Book Overview & Buying
-
Table Of Contents
Game Development with Godot 4 and C#
By :
The previous chapter brought life to our game via pathfinding – this is where we created dynamic movement by adding wandering NPCs to our World scene and learned how to utilize both the NavigationServer and NavigationAgent nodes in Godot.
In this chapter, we’ll discover how Godot uses lighting and explore its lighting nodes. We’ll spend some time creating two different types of lighting in our scene: directional and omnidirectional (omni) lighting. Light, of course, cannot exist without darkness, so we’ll be exploring some of the shadow (occluding) nodes that are available in Godot. We’ll also create a day/night cycle for our World scene to show the passage of time in our game.
Lighting is an important component when it comes to developing games. It adds ambiance and sets the tone of a given space. It also adds details and depth to the environment and is often incorporated as a game mechanic. Whether by tracking...