Skip to content

Instantly share code, notes, and snippets.

@mxashlynn
Last active September 21, 2024 22:44
Show Gist options
  • Save mxashlynn/e24cdb149d75d3926498e7293c73ec6a to your computer and use it in GitHub Desktop.
Save mxashlynn/e24cdb149d75d3926498e7293c73ec6a to your computer and use it in GitHub Desktop.
Game dev from the CLI.

To flatten in-place an image exported from Tiled, with GB Studio sprite background color:

magick mogrify in.png -background "#65ff00" -alpha off -flatten

To rename a tag already commited and pushed in git:

git tag new-name commit-hash-old-name-pointed-to
git tag -d old-name
git push origin new-name :old-name
git fetch --prune --prune-tags

To compare two folders on Windows 10:

robocopy folder1 folder2 /L More info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment