Finally, a buildable source tree

This commit is contained in:
Neale Pickett 2023-03-11 18:53:21 -07:00
commit 983dae9b9f
26 changed files with 301 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
out/

5
Makefile Executable file
View File

@ -0,0 +1,5 @@
all:
./build.sh
clean:
rm -rf out

60
build.sh Executable file
View File

@ -0,0 +1,60 @@
#! /bin/sh -e
cvt () {
out=${1%.svg}.png
[ -f $out ] || inkscape -o $out $1 > /dev/null
}
mkdir -p out
for i in src/card-treasure*.svg; do
echo "=== $i"
base=$(basename $i .svg)
cp $i out/
cvt $i out/$base.png
done
while read name; do
echo "=== $name"
fn=${name%% *}
echo " - card"
svg=out/card-room-front-$fn.svg
sed "s/Hydroponics/$name/" src/card-room-front.svg > $svg
cvt $svg
echo " - tile front"
svg=out/tile-front-$fn.svg
sed "s/Hydroponics/$name/" src/tile-front.svg > $svg
cvt $svg
echo " - tile back"
svg=out/tile-back-$fn.svg
sed "s/Hydroponics/$name/" src/tile-back.svg > $svg
cvt $svg
done << EOD
Airlock
Gym
Kitchen
Lounge
Chem Lab
Radio Room
Hydroponics
Botany Lab
Rec Room
Lavatory
Galley
Pantry
Sick Bay
Workshop
Storage
Control Room
Filter Room
Green Quarters
Orange Quarters
Electronics
Cargo Bay
Dog Room
Alien Exam Room
Coal Cart
EOD

52
src/board-map.svg Normal file
View File

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<svg width="4250px" height="2950px" viewBox="0 0 4250 2950" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com">
<defs>
<bx:grid x="0" y="0" width="50" height="50"/>
</defs>
<rect x="-550" y="-2699.999" width="400" height="500.002" style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 0, 255);" rx="27.286" ry="27.286" transform="matrix(-1, 0, 0, -1, 0, 0)"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" y="1500" width="400" height="400" rx="37.795" ry="37.795" x="800"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" y="1050" width="400" height="400" rx="37.795" ry="37.795" x="800"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="1350" y="250.002" width="200" height="199.999" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="1250" y="1500" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="1250" y="1050" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="1700" y="1050" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="1250" y="600" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="1250" y="1950" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="1700" y="1950" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="2150" y="1950" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="2600" y="1949.999" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="2150" y="1500" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="1700" y="1500" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="2600" y="1500" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="2150" y="1050" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="2600" y="1050" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="2150" y="600" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="1700" y="600" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="2600" y="600" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="3050" y="1050" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="2150" y="2400" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="1700" y="2400" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="1700" y="150" width="400" height="400" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="2150" width="400" height="400" rx="37.795" ry="37.795" y="150.001"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" width="200" height="199.999" rx="37.8" ry="37.8" x="1350" y="2500"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="2700" y="2500.001" width="200" height="199.999" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="2700" y="250.002" width="200" height="199.999" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="3050" y="1500" width="400" height="400" rx="37.795" ry="37.795"/>
<rect y="-2700.001" width="400" height="500.001" style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(255, 0, 0);" rx="27.286" ry="27.286" transform="matrix(-1, 0, 0, -1, 0, 0)" x="-1100"/>
<rect x="-3550" y="-2699.999" width="400" height="500.002" style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(255, 0, 0);" rx="27.286" ry="27.286" transform="matrix(-1, 0, 0, -1, 0, 0)"/>
<rect x="-4100" y="-2699.999" width="400" height="500.002" style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 0, 255);" rx="27.286" ry="27.286" transform="matrix(-1, 0, 0, -1, 0, 0)"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="3800" y="850.001" width="200" height="199.999" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="3800" y="1750.001" width="200" height="199.999" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="3800" y="1450.001" width="200" height="199.999" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="3800" y="1150.001" width="200" height="199.999" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="150" y="1700" width="100" height="100" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="150" y="1550" width="100" height="100" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="150" y="1400" width="100" height="100" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="150" y="1250" width="100" height="100" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="150" y="1850" width="100" height="100" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="150" y="950" width="100" height="100" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="150" y="1100" width="100" height="100" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="150" y="800" width="100" height="100" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="150" y="650" width="100" height="100" rx="37.795" ry="37.795"/>
<rect style="stroke-width: 5px; stroke-dasharray: 9; fill: rgb(0, 255, 0);" x="150" y="500" width="100" height="100" rx="37.795" ry="37.795"/>
</svg>

After

Width:  |  Height:  |  Size: 7.1 KiB

64
src/board.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 57 KiB

10
src/card-room-back.svg Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<svg viewBox="150 2199.997 400 500.002" width="400" height="500.002" xmlns="http://www.w3.org/2000/svg">
<defs>
<radialGradient gradientUnits="userSpaceOnUse" cx="-350" cy="-2449.998" r="200" id="gradient-0" spreadMethod="pad">
<stop offset="0" style="stop-color: rgb(141, 191, 205);"/>
<stop offset="1" style="stop-color: rgb(65, 112, 125);"/>
</radialGradient>
</defs>
<rect x="-550" y="-2699.999" width="400" height="500.002" style="stroke: rgb(0, 0, 0); stroke-width: 10px; paint-order: fill; fill: url(#gradient-0);" rx="27.286" ry="27.286" transform="matrix(-1, 0, 0, -1, 0, 0)"/>
</svg>

After

Width:  |  Height:  |  Size: 658 B

8
src/card-room-front.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 348 KiB

BIN
src/card-treasure-back.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<svg viewBox="150 2199.997 400 500.002" width="400" height="500.002" xmlns="http://www.w3.org/2000/svg">
<defs>
<radialGradient gradientUnits="userSpaceOnUse" cx="-350" cy="-2449.998" r="200" id="gradient-0" spreadMethod="pad">
<stop offset="0" style="stop-color: rgb(205, 147, 141);"/>
<stop offset="1" style="stop-color: rgb(125, 65, 101);"/>
</radialGradient>
</defs>
<rect x="-550" y="-2699.999" width="400" height="500.002" style="stroke: rgb(0, 0, 0); stroke-width: 10px; paint-order: fill; fill: url(#gradient-0);" rx="27.286" ry="27.286" transform="matrix(-1, 0, 0, -1, 0, 0)"/>
</svg>

After

Width:  |  Height:  |  Size: 658 B

BIN
src/card-treasure-green.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 348 KiB

BIN
src/card-treasure-leg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

13
src/card-treasure-leg.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 351 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 349 KiB

BIN
src/card-treasure-tape.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 350 KiB

BIN
src/card-treasure-white.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 348 KiB

BIN
src/orbitron.ttf Normal file

Binary file not shown.

8
src/tile-back.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 348 KiB

8
src/tile-front.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 348 KiB