Skip to content

Commit

Permalink
Write grid A-star tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
spaaaacccee committed Nov 30, 2023
1 parent 200dbac commit 579df66
Show file tree
Hide file tree
Showing 7 changed files with 416 additions and 10 deletions.
10 changes: 9 additions & 1 deletion docs/2-get-visualiser.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ sidebar_position: 2

# Get Visualiser

[TODO]
Open the visualiser [here](https://path-visualiser.github.io/app/).

## Install Visualiser as a Progressive Web App

You can install the visualiser as a progressive web app, so that it runs in its own window.

## Standalone Builds

Check the [releases](https://github.com/path-visualiser/app/releases) page for a list of latest Windows and Linux releases.
294 changes: 294 additions & 0 deletions docs/5-tutorials/cross-example.trace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,294 @@
version: 1.0.5
render:
components:
tile:
- "$": rect
width: 1
height: 1
x: "{{$.event.x}}"
y: "{{$.event.y}}"
fill: "{{$.color[$.event.type]}}"
views:
main:
components:
- "$": tile
path:
pivot:
x: "{{$.event.x + 0.5}}"
y: "{{$.event.y + 0.5}}"
scale: 0.3
events:
- type: source
id: 96
x: 0
y: 0
- type: destination
id: 228
x: 4
y: 4
- type: expanding
id: 96
x: 0
y: 0
pId: 18446744073709552000
g: 5.65685
f: 0
- type: generating
id: 97
x: 1
y: 0
pId: 96
g: 6.24264
f: 1
- type: generating
id: 128
x: 0
y: 1
pId: 96
g: 6.24264
f: 1
- type: generating
id: 129
x: 1
y: 1
pId: 96
g: 5.65685
f: 1.41421
- type: expanding
id: 129
x: 1
y: 1
pId: 96
g: 5.65685
f: 1.41421
- type: closing
id: 96
x: 0
y: 0
pId: 18446744073709552000
g: 5.65685
f: 0
- type: expanding
id: 97
x: 1
y: 0
pId: 96
g: 6.24264
f: 1
- type: generating
id: 98
x: 2
y: 0
pId: 97
g: 6.82843
f: 2
- type: closing
id: 129
x: 1
y: 1
pId: 96
g: 5.65685
f: 1.41421
- type: closing
id: 96
x: 0
y: 0
pId: 18446744073709552000
g: 5.65685
f: 0
- type: expanding
id: 128
x: 0
y: 1
pId: 96
g: 6.24264
f: 1
- type: closing
id: 96
x: 0
y: 0
pId: 18446744073709552000
g: 5.65685
f: 0
- type: closing
id: 129
x: 1
y: 1
pId: 96
g: 5.65685
f: 1.41421
- type: generating
id: 160
x: 0
y: 2
pId: 128
g: 6.82843
f: 2
- type: closing
id: 97
x: 1
y: 0
pId: 96
g: 6.24264
f: 1
- type: expanding
id: 98
x: 2
y: 0
pId: 97
g: 6.82843
f: 2
- type: generating
id: 99
x: 3
y: 0
pId: 98
g: 7.41421
f: 3
- type: closing
id: 97
x: 1
y: 0
pId: 96
g: 6.24264
f: 1
- type: expanding
id: 160
x: 0
y: 2
pId: 128
g: 6.82843
f: 2
- type: closing
id: 128
x: 0
y: 1
pId: 96
g: 6.24264
f: 1
- type: generating
id: 192
x: 0
y: 3
pId: 160
g: 7.41421
f: 3
- type: expanding
id: 99
x: 3
y: 0
pId: 98
g: 7.41421
f: 3
- type: generating
id: 100
x: 4
y: 0
pId: 99
g: 8
f: 4
- type: generating
id: 131
x: 3
y: 1
pId: 99
g: 7.41421
f: 4
- type: closing
id: 98
x: 2
y: 0
pId: 97
g: 6.82843
f: 2
- type: generating
id: 132
x: 4
y: 1
pId: 99
g: 7.41421
f: 4.41421
- type: expanding
id: 132
x: 4
y: 1
pId: 99
g: 7.41421
f: 4.41421
- type: generating
id: 164
x: 4
y: 2
pId: 132
g: 7.41421
f: 5.41421
- type: closing
id: 99
x: 3
y: 0
pId: 98
g: 7.41421
f: 3
- type: expanding
id: 164
x: 4
y: 2
pId: 132
g: 7.41421
f: 5.41421
- type: closing
id: 132
x: 4
y: 1
pId: 99
g: 7.41421
f: 4.41421
- type: generating
id: 196
x: 4
y: 3
pId: 164
g: 7.41421
f: 6.41421
- type: expanding
id: 196
x: 4
y: 3
pId: 164
g: 7.41421
f: 6.41421
- type: closing
id: 164
x: 4
y: 2
pId: 132
g: 7.41421
f: 5.41421
- type: generating
id: 228
x: 4
y: 4
pId: 196
g: 7.41421
f: 7.41421
- type: generating
id: 195
x: 3
y: 3
pId: 196
g: 8.82843
f: 7.41421
- type: generating
id: 227
x: 3
y: 4
pId: 196
g: 8.82843
f: 7.82843
- type: end
id: 228
x: 4
y: 4
pId: 196
g: 7.41421
f: 7.41421
Binary file added docs/5-tutorials/load-grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 579df66

Please sign in to comment.