From b6d56bde939fb1e6150f02817385610995ac7bc4 Mon Sep 17 00:00:00 2001 From: "Christopher P. Brown" Date: Mon, 21 Aug 2023 09:40:12 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README | 65 +++++++++++++++++ doc/graphviz.md | 134 ++++++++++++++++++++++++++++++++++++ doc/imagemagick.md | 25 +++++++ doc/typst.md | 28 ++++++++ README.md => horse/horse.md | 0 5 files changed, 252 insertions(+) create mode 100644 README create mode 100644 doc/graphviz.md create mode 100644 doc/imagemagick.md create mode 100644 doc/typst.md rename README.md => horse/horse.md (100%) diff --git a/README b/README new file mode 100644 index 0000000..94fa6ec --- /dev/null +++ b/README @@ -0,0 +1,65 @@ +# HORSE GAME + +this directory holds all of the horse family of sports horse games + + +## CONTENTS + +``` +$ tree -d -L 1 + +. +├── 9k00 +├── assets +├── horse +├── on-the-brink +├── onepager +└── play + +7 directories +``` + +1. **9k00**: Electric Zine Maker[0] one-page folding version. Published in Tilde Town Zine Issue 6[1] and on mastodon[2] + +2. **assets**: various image assets used in various versions + +3. **horse**: the original sports horse that was published to dozensanddragons[3] + +4. **on-the-brink**: official sports horse expansion pack number 1. published on dozensanddragons[4] and on itch.io[5] + +5. **onepager**: one page version of sports horse published on itch[6] and submitted to the onepage jam 2023[7] + +6. **play**: actual play + +[0]: https://alienmelon.itch.io/electric-zine-maker +[1]: http://tilde.town/~zine/issues/6/html/ +[2]: https://tiny.tilde.website/@dozens/109411765114212437 +[3]: https://dozensanddragons.neocities.org/44 +[4]: https://dozensanddragons.neocities.org/47 +[5]: https://dozens.itch.io/horses-on-the-brink +[6]: https://dozens.itch.io/horse +[7]: https://itch.io/jam/one-page-rpg-jam-2023/entries + +Not shown here: + +1. official sports horse generator: https://dozensanddragons.neocities.org/45 + +2. sports horse devlog: https://dozensanddragons.neocities.org/46 + +## COLOPHON + +Tools used to create all this horse stuff includes but is not limited to: + +- Typst: layout and typesetting for pdfs + +- a mishmash of markdown, m4, and pandoc: turning words into blog posts + +- Electric Zine Maker: creating surreal zines + +- Imagemagick: all kinds of image processing and gif making + +- photomosh.com + +- gimp: image editing and composition + +- graphviz / neato: turning text into svg graphs diff --git a/doc/graphviz.md b/doc/graphviz.md new file mode 100644 index 0000000..b7116de --- /dev/null +++ b/doc/graphviz.md @@ -0,0 +1,134 @@ +# GRAPHVIZ + +sketchviz is a handy tool: + +https://sketchviz.com/new + +Here is the dot notation for the locations in horses on the brink: + +``` +graph { + rankdir = LR + + s [ label = "Stables" ] + t [ label = "Racetrack" ] + p [ label = "Pasture" ] + v [ label = "Vet" ] + w [ label = "The Old Watering Hole" ] + + w -- p -- s -- t + s -- v +} +``` + + +in vim you can visually select the lines and + +``` +:w !neato -Tsvg > graph.svg` +``` + +to create the image. + +(neato is a good "spring loaded" layout engine for non directional graphs) + +or if you want to replace the lines with svg, +visually select the lines and + +``` +:!neato -Tsvg +``` + +I'll do this, copy the resulting svg to a buffer, and then `u` to undo +so I can paste the svg somewhere in the document while retaining the original dot info. + + + + + + + + + + +s + +Stables + + + +t + +Racetrack + + + +s--t + + + + +v + +Vet + + + +s--v + + + + +p + +Pasture + + + +p--s + + + + +w + +The Old Watering Hole + + + +w--p + + + + + + + +if you install `graph-easy` from CPAN then you can use a limited subset of dot to make unicode box art! + + +``` +[ The Old Watering Hole ] -- [ Pasture ] -- [ Stables ] -- [ Racetrack ], [ Vet ] +``` + +visually select and: + +``` +:!graph-easy --as=boxart +``` + + +``` +┌───────────────────────┐ ┌─────────┐ ┌─────────┐ ┌───────────┐ +│ The Old Watering Hole │ ─── │ Pasture │ ─── │ Stables │ ─── │ Racetrack │ +└───────────────────────┘ └─────────┘ └─────────┘ └───────────┘ + │ + │ + │ + ┌─────────┐ + │ Vet │ + └─────────┘ +``` diff --git a/doc/imagemagick.md b/doc/imagemagick.md new file mode 100644 index 0000000..a5a15b8 --- /dev/null +++ b/doc/imagemagick.md @@ -0,0 +1,25 @@ +# how to imagemagick + +quick dozens write this shit down before you forget + +resize an image + +: `convert -resize 800 in.png out.png` + +do a watermark + +: `composite -compose multiply -gravity center -geometry +0+0 watermark.png page.png out.png` + +convert pdf pages to individual png (accounting for weird transparency stuff) + +: `convert pages.pdf -quality 50 -background white -alpha remove -alpha off pages.png` + +gif shit + +: `convert -delay 2 -loop 0 *.jpg -layers Optimize out.gif` + +: `convert file.gif frames.png` + +dither and reduce colors + +: `convert image.png -quality 70 +dither -remap netscape: out.png` diff --git a/doc/typst.md b/doc/typst.md new file mode 100644 index 0000000..fe200c5 --- /dev/null +++ b/doc/typst.md @@ -0,0 +1,28 @@ +# TYPST + +typst is like 90% there + +excellent for laying out a document + + +## BLOCKERS + +1. Can't currently change page margin by calculating page location. e.g.: + + ``` + #show page: it => { + locate(loc => { + if counter(page).at(loc).at(0) == 1 { + set page(margin: 4cm) + } else { + set page(margin: 1cm) + } + }) + it + } + ``` + + this doesn't work. which is too bad. I wanted the title on the + first page to be full bleed left, right, and top. Eventually I + just gave up on this and decided that what I had was good enough + diff --git a/README.md b/horse/horse.md similarity index 100% rename from README.md rename to horse/horse.md