# wget Quake 
sudo apt install quakespasm
wget "https://archive.org/download/quake_dos/Quake.zip"
unzip Quake.zip

# Get TrenchBroom Map Editor
url="https://github.com/TrenchBroom/TrenchBroom/releases/download"
zip="$url/v2025.3/TrenchBroom-Linux-x86_64-v2025.3-Release.zip"
wget "$zip" -cO TrenchBroom.zip
unzip TrenchBroom.zip

# get Compile tools 
url="https://github.com/ericwa/ericw-tools/releases/download"
zip="$url/2.0.0-alpha10/ericw-tools-2.0.0-alpha10-Linux.zip"
wget "$zip" -cO ericw.zip 
unzip ericw.zip

# link quake executable to current directory
ln -s /usr/games/quakespasm quake

# run map Editor
./TrenchBroom.AppImage

"New Map"
"Quake"
"Standard"
"Open preferences"

# Compile Map
./qbsp id1/maps/mymap.map id1/maps/mymap.bsp



