Skip to content

Lacosst0/pathfinding-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pathfinding Playground

Visualizer for pathfinding algorithms

Visualizer for pathfinding algorithms powered by WASM. You can use ANY language (supported by WIT) to generate API bindings, run your pathfinding algorithm and see how it works

image

Technologies

How to use

  1. Clone the repository
  2. Use wit-bindgen to generate bindings for your language
  3. Compile into .wasm with WIT support
  4. Run this project with cargo run
  5. Select algorithm

Controls

Mouse:

  • Left click - Place walls
  • Right click - Remove walls
  • Middle click - Move camera
  • Scroll wheel - Zoom
  • Left click drag on goals - move goals

Goals:

  • Fox - start position
  • Flag - end position

TODO

✅ Decouple visual representation from actual data (for map)
✅ Hot-reloading

  1. Pre-compiled binaries
  2. More examples
  3. Detect if path is actually valid
  4. See TimelineActions in realtime
  5. Confetti!
  6. load_map in wit
  7. Animate fox
  8. Coins as more goals

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages