Here are some pathfinding algorithms for TIC-80.
They're not COOOOOOOOOOOOOOOOOL.
-
Run TIC-80.
-
Choose an algorithm and place
xxx.lua
by your current working directory.
a-star.lua
- A* Searchbfs.lua
- Breadth First Searchbi-dir-bfs.lua
- Bidirectional BFSdfs.lua
- Depth First Searchdijkstra.lua
- Dijkstra's Algorithmgbfs.lua
- Greedy Best First Searchida-star.lua
- Iterative Deepening A*iddfs.lua
- Iterative Deepening DFS
-
Add
dofile('xxx.lua')
to the first line of code editor. -
Import sprites from
sprites.gif
. -
Import map from
world.map
, or draw it yourself. -
Run cartridge.
Action | Key |
---|---|
Control "C" | Z |
Control "L" | X |
Up | Up Arrow |
Down | Down Arrow |
Left | Left Arrow |
Right | Right Arrow |