Simon Ruderich 89b2660d69 Migrate Navigation AStar demo to TileMapLayer and perform various cleanups (#1208)
* navigation_astar: replace deprecated TileMap with TileMapLayer

* navigation_astar: use get_used_cells() instead of iterating over region

This also removes the confusing use of Tile.OBSTACLE. The tile enum is
mostly used for atlas coordinates but in this case it is compared with
the source id which only happens to be zero as well.

* navigation_astar: use constants for atlas coordinates

This makes it more obvious how to set cells in larger tilesets where the
second position is not zero.

It also removes the constant OBSTACLE which is unused since the last
commit.

* navigation_astar: mention get_used_rect()

Using it in this example is more complex (as the border has no cells)
but it's good to know.
2025-06-30 18:09:02 +02:00
2025-06-25 19:21:12 +02:00
2025-05-29 02:43:03 +02:00
2025-03-21 02:00:41 +01:00
2025-03-21 02:00:41 +01:00
2025-03-21 02:00:41 +01:00
2025-03-21 02:00:41 +01:00
2024-03-06 19:32:56 +01:00

Godot demo projects

Each folder containing a project.godot file is a demo project meant to be used with Godot Engine, the open source 2D and 3D game engine.

Godot versions

  • The master branch is compatible with Godot's master development branch (next 4.x release).
  • The 3.x branch is compatible with Godot's 3.x development branch (next 3.x release).
  • The other branches are compatible with the matching stable versions of Godot:
    • 4.2 branch for Godot 4.2.x.
    • 4.1 branch for Godot 4.1.x.
    • 4.0 branch for Godot 4.0.x.
    • 3.5 branch for Godot 3.5.x.
    • 3.4 branch for Godot 3.4.x.
    • 3.3 branch for Godot 3.3.x.
    • 3.2 branch for Godot 3.2.x.
    • 3.1 branch for Godot 3.1.x.
    • 3.0 branch for Godot 3.0.x.
    • 2.1 branch for Godot 2.1.x.

Importing all demos

To import all demos at once in the project manager:

  • Clone this repository or download a ZIP archive.
    • If you've downloaded a ZIP archive, extract it somewhere.
  • Open the Godot project manager and click the Scan button on the right.
  • Choose the path to the folder containing all demos.
  • All demos should now appear in the project manager.

Try the demos in your browser

Most of the demos are exported to GitHub Pages. They can be viewed here.

Note: The performance of Godot in a browser is lower than natively on desktop. For the best performance, consider downloading the demos.

License

Those demos are distributed under the terms of the MIT license, as described in the LICENSE.md file.

Description
No description provided
Readme 1.4 GiB
Languages
GDScript 89%
C# 9.4%
JavaScript 0.7%
GLSL 0.5%
Shell 0.2%
Other 0.2%