Skip to content

Billocap/Pathfinding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Path Finding

Typescript badge HTML badge

This is a project for studying algorithms and game design.

Running

To run this project you need to have node, npm or yarn installed.

Just download the code or clone the repo in the desired folder then on the project folder run npm install to install all the dependencies.

A node_modules folder should appear, after that run npm run build to build the project.

After building a dist folder with a js folder inside will appear in the project folder.

Example 1

Now create a new html file inside the dist folder.

Example 2

Then paste this code inside the body tag.

<canvas></canvas>
<p>mouse x: 0 mouse y: 0</p>
<script src="./js/index.js"></script>

You will need a server to run the html code, I recommend using the live server vscode extension.

Built With

Acknowledgments

The implementation of the path finding algorithm was based on the red blob games implementation.