- Using Finder, look in your Downloads folder.
- Double-click the
Spell-Quest-master.zip
file. - Look inside the newly extracted
Spell-Quest-master
folder. - Two-finger click the
start.command
file (or on therestart.command
file if you want to restore your game from the beginning.) - Select 'Open' from the newly opened context menu.
- This will open a terminal running the Spell-Quest game. Start reading the instructions! (Press Cmd++ to increase the size of the window. Use the arrow keys or u/d to move up and down.)
A Windows setup requires the most work, but it won't require you to do anything dangerous or technically challenging. It consists of:
- Installing "Windows Subsystem for Linux (WSL)" from the Microsoft Store
- Starting your WSL terminal for the first time and creating a user account
- Downloading and extracting the "Spell Quest" zip file.
Step one: install WSL
- Press the "Windows" key; type "store"; click on "Microsoft Store"
- Search for "Ubuntu"; click on it
- Click on Get or Download or Install
- (Sign in to your Microsoft account if necessary)
Step two: set up your Ubuntu environment
- Press the "Windows" key; type "Ubuntu"; click on "Ubuntu." (Ubuntu is one flavour of Linux. It has more "help" pages online than other flavours.)
- A terminal will appear. It will say it's installing. Wait for a few minutes.
- The terminal will prompt you to enter a username. Pick a username and enter it.
- The terminal will prompt you to enter a password. The password will NOT appear as you type it. Just go ahead and type it, then hit Enter.
- Re-enter the same password to continue.
- Remember this password. When the Linux (Ubuntu) terminal asks you for your password in future, this is the password that it will want.
Step three: extract the Spell-Quest zip file
- Open File Explorer
- Open "Downloads"
- Click on "Spell-Quest-master.zip"; click "Extract"; click "Extract all"; approve the destination path.
- Open "File Explorer"
- Navigate to where you extracted the Spell-Quest files from
Spell-Quest-master.zip
(by default, this would be in Downloads > Spell-Quest-master - Double-click on the
start
file that has a gear icon. (Its true name isstart.bat
, but Windows tends to hide the filename's extension.) - (If prompted for a password, it's because the system wants to install dependencies. Type the password that you decided when you created a user in step 4 of set up your Ubuntu environment, described above. As before, the password will NOT appear as you type it. Just type it and hit Enter.)
In your terminal:
# If this is your first time setting up the game,
# make sure you have the dependencies installed:
sudo apt install -y python unzip wget curl openssl
cd Downloads # or wherever you downloaded the zip file
unzip Spell-Quest-master.zip
Spell-Quest-master/start.sh
1 | 2 | 3 | |
---|---|---|---|
Transmutation | mv, rm, rmdir, chmod | cut, sort, head, tail | sed |
Teleportation | cd, ln, mv | ssh, scp, sftp, sshfs | |
Divination | ls, pwd, cat, man, read | find, grep, less | |
Conjuration | mkdir, curl, wget, seq, cp | ||
Illusion | echo, alias, printf | ||
Obfuscation | base64 | openssl | gpg |
- tab-completion
- pipe
|
- redirects
>>
,>
,<
,<<<
for
loopswhile
loopsif ...; then ...; fi
.
/..
/~
- variables
- regular expressions
- capturing groups with
sed
- subshell
32-bit has bgra pixels
ffmpeg -i src.png dst.bmp
https://commons.wikimedia.org/wiki/Category:Drawings_of_unicorns https://en.wikipedia.org/wiki/BMP_file_format
# Get bytes 10-13 as uint. it should be the offset of the bmp body
xxd -s 10
od -j 10 -N 4 -t d4 # unsigned 4-byte int, skip ahead 10 bytes