Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit 1eef0ba

Browse files
Relative Conversion Command Documentation
Created documentation files for Relative conversion commands absolute-to-relative grid-to-relative image-to-relative
1 parent 3e4af3f commit 1eef0ba

File tree

6 files changed

+73
-16
lines changed

6 files changed

+73
-16
lines changed

changelog.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
# Changelog
22

3-
**./info/%subfolder%/readme.md**
4-
* "Return to index" now links back to the project root.
5-
6-
---
7-
83
**./info/commands/**
9-
* Added line break between 'Usage' and 'Example' for individual commands.
10-
11-
---
12-
13-
**./info/input-types/image-config.md**
14-
* Recompiled 'Properties' table definition code.
15-
* Full instead of compact.
4+
* Created new files for Relative conversion commands:
5+
* absolute-to-relative.md
6+
* grid-to-relative.md
7+
* image-to-relative.md
8+
* Added links to new command files inside readme.md
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## absolute-to-relative
2+
**Usage:** `maze absolute-to-relative [options] <input-absolute> [output-path]`
3+
**Example:** `maze absolute-to-relative ./examples/absolute/input.txt ./output.txt -r`
4+
5+
Takes an existing Absolute definition text file, parses it into a graph, and outputs a Relative definition text file.
6+
7+
**Options:**
8+
| Argument | Description | Default |
9+
|--------------------------|---------------------------------------------------------------------|---------|
10+
| -r --replace | Specifies whether existing files will be replaced. | False |
11+
| -i --ignore-parse-errors | Ignores or corrects non-fatal errors when parsing input text files. | False |
12+
13+
**Note:** If no output path is specified, the output file will be created in the program folder named `relative.txt`
14+
15+
---
16+
17+
[Commands List](./readme.md)

info/commands/grid-to-relative.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## grid-to-relative
2+
**Usage:** `maze grid-to-relative [options] <input-grid> [output-path]`
3+
**Example:** `maze grid-to-relative ./examples/grid/input.txt ./output.txt -r`
4+
5+
Takes an existing Grid definition text file, parses it into a graph, and outputs a Relative definition text file.
6+
7+
**Options:**
8+
| Argument | Description | Default |
9+
|--------------------------|---------------------------------------------------------------------|---------|
10+
| -r --replace | Specifies whether existing files will be replaced. | False |
11+
| -i --ignore-parse-errors | Ignores or corrects non-fatal errors when parsing input text files. | False |
12+
13+
**Note:** If no output path is specified, the output file will be created in the program folder named `relative.txt`
14+
15+
---
16+
17+
[Commands List](./readme.md)

info/commands/image-to-relative.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## image-to-relative
2+
**Usage:** `maze image-to-relative [options] <input-image> [output-path]`
3+
**Example:** `maze image-to-relative ./examples/image/small.png ./output.txt -r`
4+
5+
Takes an existing Image file, parses it into a graph, and outputs a Relative definition text file.
6+
7+
**Options:**
8+
| Argument | Description | Default |
9+
|--------------------------|-------------------------------------------------------------------------------------------------------------|---------|
10+
| -r --replace | Specifies whether existing files will be replaced. | False |
11+
| -i --ignore-parse-errors | Ignores or corrects non-fatal errors when parsing input image files. | False |
12+
| --load | Specifies the file path of an existing image configuration file. If this is blank, no file will be loaded. | |
13+
| --save | Specifies the name of a saved image configuration file. If this is blank, no file will be saved. | |
14+
| --wall | The hex colour of wall pixels in the target image. | #000000 |
15+
| --floor | The hex colour of floor pixels in the target image. | #FFFFFF |
16+
| --tolerance | The percentage difference allowed when checking image pixel colours. | 0 |
17+
| --size | The approximate size of a maze tile in pixels. | 10 |
18+
| -x --start-x | The approximate X location of the first tile. | 0 |
19+
| -y --start-y | The approximate Y location of the first tile. | 0 |
20+
21+
**Note:** If no output path is specified, the output file will be created in the program folder named `relative.txt`
22+
23+
---
24+
25+
[Commands List](./readme.md)

info/commands/readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
* [grid-to-absolute](./grid-to-absolute.md)
1010
* [image-to-absolute](./image-to-absolute.md)
1111
* [image-to-grid](./image-to-grid.md)
12+
* [absolute-to-relative](./absolute-to-relative.md)
13+
* [grid-to-relative](./grid-to-relative.md)
14+
* [image-to-relative](./image-to-relative.md)
1215
* [test-export](./test-export.md)
1316

1417
---

summary.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Summary
22

3-
**Version:** 1.0.22
3+
**Version:** 1.0.23
44

55
**Date:** 2021-03-31
66

7-
**Title:** Document Formatting Fixes
7+
**Title:** Relative Conversion Command Documentation
88

99
**Description:**
1010

11-
Fixed minor formatting errors in the documentation that
12-
occurred while migrating from GitLab to GitHub.
11+
* Created documentation files for Relative conversion commands
12+
* absolute-to-relative
13+
* grid-to-relative
14+
* image-to-relative

0 commit comments

Comments
 (0)