Compare commits

...

2 commits

Author SHA1 Message Date
816f871fa3
Update README 2020-09-13 00:43:13 +01:00
e49ff1c70d
maze: use sh to be more portable 2020-09-13 00:41:57 +01:00
2 changed files with 9 additions and 2 deletions

View file

@ -9,7 +9,7 @@ Now has a 3d mode!
Current blog posts about this project:
- [Language Review: Lua](https://starbeamrainbowlabs.com/blog/article.php?article=posts/070-Language-Review-Lua.html) (2D maze generator)
- [3D mazes with Lua, OpenSCAD, and Blender](#coming-soon) (coming soon!)
- [3D mazes with Lua, OpenSCAD, and Blender](#coming-soon) (https://starbeamrainbowlabs.com/blog/article.php?article=posts/429-lua-blender-mazes.html)
![Some renders in Blender with cycles of the output of the 3D maze generator](https://starbeamrainbowlabs.com/blog/images/20200831-mazes/mazes-small.png)
@ -64,6 +64,13 @@ lua main.lua maze3d_openscad -w 15 -h 15 -d 17 -f 15x15x17.scad
openscad -o 15x15x17.stl 15x15x17.scad
```
Users who have sh (Bash works too) installed can use the `maze` wrapper script instead:
```bash
./maze maze3d_openscad -w 15 -h 15 -d 17 -f 15x15x17.scad
./maze maze -w 25 -h 25
```
![(Horizontal line)](https://starbeamrainbowlabs.com/blog/images/20200831-mazes/hr.png)
## Contributing

2
maze
View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
cd "$(dirname "$(readlink -f "$0")")" || { echo "Error: Failed to cd to script directory" >&2; exit 1; };
exec lua main.lua "${@}";