Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.02 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.02 KB

Not Cool

Here are some pathfinding algorithms for TIC-80.

They're not COOOOOOOOOOOOOOOOOL.

Demo

Demo

Usage

  1. Run TIC-80.

  2. Choose an algorithm and place xxx.lua by your current working directory.

  • a-star.lua - A* Search
  • bfs.lua - Breadth First Search
  • bi-dir-bfs.lua - Bidirectional BFS
  • dfs.lua - Depth First Search
  • dijkstra.lua - Dijkstra's Algorithm
  • gbfs.lua - Greedy Best First Search
  • ida-star.lua - Iterative Deepening A*
  • iddfs.lua - Iterative Deepening DFS
  1. Add dofile('xxx.lua') to the first line of code editor.

  2. Import sprites from sprites.gif.

  3. Import map from world.map, or draw it yourself.

  4. Run cartridge.

Key Map

Action Key
Control "C" Z
Control "L" X
Up Up Arrow
Down Down Arrow
Left Left Arrow
Right Right Arrow