Skip to content

A Godot Engine 4.3 example project demonstrating how to build a multi-layered navigation map using the built-in NavigationServer2D

License

Notifications You must be signed in to change notification settings

ewylson/multi-layer-navigation-example

Repository files navigation

Multi-Layer Navigation Example

A Godot Engine 4.3 example project demonstrating how to build a multi-layered navigation map using the built-in NavigationServer2D. Different enemy types (ground and flying) share a single navigation map by assigning navigation region layers based on obstacle tiles.

How It Works

This project demonstrates two approaches to using different navigation layers for regions within a single navigation map:

  1. Creating navigation regions manually in code
  2. Automatically generating navigation regions from a tileset and updating their layers

The first approach

Advantages:

  • Full control over the creation process of navigation regions
  • Navigation regions are created with the correct layers from the start
  • The navigation map is updated only once when the regions are added

Disadvantages:

The second approach

Advantages:

Disadvantages:

  • The navigation map is updated twice: once when the regions are created, and again when their layers are modified

Credits

This project uses custom node icons based on the open-source icon set from Phosphor Icons.

Phosphor is a flexible and open-source icon family for interfaces, diagrams, presentations — whatever, really.
Licensed under the MIT License.

License

This project is dedicated to the public domain under the Unlicense.

About

A Godot Engine 4.3 example project demonstrating how to build a multi-layered navigation map using the built-in NavigationServer2D

Topics

Resources

License

Stars

Watchers

Forks