Skip to content

whichxjy/not-cool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Pathfinding algorithms for TIC-80

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages