Creating a little world
Now that we have a little player character, let’s create a world for them to inhabit! In this section, we’ll flesh out the arena in which the player has to battle challenging foes.
Changing the background color
Let’s start simple by changing the background color for our arena. We can easily do this from the project settings:
- Navigate to Rendering | Environment in the project settings:
Figure 6.25 – Finding Default Clear Color under Rendering > Environment in the project settings
- Set the Default Clear Color setting to an appropriate color. I chose
#e0bf7b
because it looks like sand or dried-up mud:
Figure 6.26 – Picking a color using the color selection tool
With this nice color in place, let’s add some features, such as boulders and walls, to our arena.
Adding Polygon2D boulders
Now that we have a ground for the player character...