Skip to content

Instantly share code, notes, and snippets.

@stylophone
stylophone / Astar.cs
Last active March 27, 2024 03:14
Unity C# implementation of A* algorithm
/*
Unity C# Port of Andrea Giammarchi's JavaScript A* algorithm (http://devpro.it/javascript_id_137.html)
Usage:
0 = walkable;
1 = wall;
int[][] map = new int[][]
{