Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Navigation AStar Hexagonal demo #1085

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m21-cerutti
Copy link

@m21-cerutti m21-cerutti commented Jul 9, 2024

Demo for showing how to use AStar2D with hexagonal map with minimal code.

With full debug :
image

Works with v4.2.2.stable.official [15073afe3].

2d/navigation_astar_hexagonal/player.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/player.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/player.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/map.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/map.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/debug/debug_astar.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/map.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/map.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/debug/debug_astar.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/debug/debug_astar.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/map.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/map.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/map.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/map.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/map.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/map.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/debug/debug_astar.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/debug/debug_astar.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/debug/debug_astar.gd Outdated Show resolved Hide resolved
2d/navigation_astar_hexagonal/debug/debug_astar.gd Outdated Show resolved Hide resolved
AStar hexagonal pathfinding
Format corrections with A Thousand Ships <[email protected]> review
Corrections format with  external linter

```yml
default_install_hook_types: [pre-commit]
repos:

-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.5.0
    hooks:
    -   id: check-added-large-files
    -   id: check-case-conflict
    -   id: check-merge-conflict
    -   id: end-of-file-fixer
    -   id: trailing-whitespace
    -   id: check-json
    -   id: check-symlinks

-   repo: https://github.com/Scony/godot-gdscript-toolkit
    rev: 4.2.2
    hooks:
        - id: gdlint
          exclude: .*screenshots/
        - id: gdformat
          exclude: .*screenshots/

```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants