Add fence to static worldgen #4

Merged
msrd0 merged 3 commits from fence-assets into main 2024-07-06 21:19:25 +00:00
6 changed files with 98 additions and 0 deletions
Showing only changes of commit db48e22b93 - Show all commits

View file

@ -0,0 +1,21 @@
<svg version="1.1" width="512" height="512" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"
stroke="black" stroke-width="1" fill="none">
<image x="0" y="0" width="64" height="64" href="grass.svg"/>
<!-- continuous upper line of the fence -->
<path d="M0,26 v4 h32 v-4 z" stroke="none" fill="saddlebrown"/>
<path d="M0,26 h32 m-32,4 h32"/>
<!-- continuous lower line of the fence -->
<path d="M0,34 v4 h32 v-4 z" stroke="none" fill="saddlebrown"/>
<path d="M0,34 h32 m-32,4 h32"/>
<!-- continuous upper line of the fence, vertical this time -->
<path d="M30,32 h4 v32 h-4 z" stroke="none" fill="saddlebrown"/>
<path d="M30,32 v32 M34,32 v32"/>
<!-- fence post -->
<path d="M28,40 v-16 l4,-4 l4,4 v16 z" fill="saddlebrown"/>
</svg>

After

Width:  |  Height:  |  Size: 757 B

View file

@ -0,0 +1,9 @@
<svg version="1.1" width="512" height="512" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"
stroke="black" stroke-width="1" fill="none">
<image x="0" y="0" width="64" height="64" href="grass.svg"/>
<image x="0" y="0" width="64" height="64" href="fence-bottom-left.svg"
transform="translate(32,0) scale(-1,1) translate(-32,0)"/>
</svg>

After

Width:  |  Height:  |  Size: 351 B

View file

@ -0,0 +1,20 @@
<svg version="1.1" width="512" height="512" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"
stroke="black" stroke-width="1" fill="none">
<image x="0" y="0" width="64" height="64" href="grass.svg"/>
<!-- continuous upper line of the fence -->
<path d="M0,26 v4 h64 v-4 z" stroke="none" fill="saddlebrown"/>
<path d="M0,26 h64 m-64,4 h64"/>
<!-- continuous lower line of the fence -->
<path d="M0,34 v4 h64 v-4 z" stroke="none" fill="saddlebrown"/>
<path d="M0,34 h64 m-64,4 h64"/>
<!-- left fence post -->
<path d="M12,40 v-16 l4,-4 l4,4 v16 z" fill="saddlebrown"/>
<!-- right fence post -->
<path d="M44,40 v-16 l4,-4 l4,4 v16 z" fill="saddlebrown"/>
</svg>

After

Width:  |  Height:  |  Size: 684 B

View file

@ -0,0 +1,21 @@
<svg version="1.1" width="512" height="512" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"
stroke="black" stroke-width="1" fill="none">
<image x="0" y="0" width="64" height="64" href="grass.svg"/>
<!-- continuous upper line of the fence -->
<path d="M0,26 v4 h32 v-4 z" stroke="none" fill="saddlebrown"/>
<path d="M0,26 h32 m-32,4 h32"/>
<!-- continuous lower line of the fence -->
<path d="M0,34 v4 h32 v-4 z" stroke="none" fill="saddlebrown"/>
<path d="M0,34 h32 m-32,4 h32"/>
<!-- continuous upper line of the fence, vertical this time -->
<path d="M30,0 h4 v32 h-4 z" stroke="none" fill="saddlebrown"/>
<path d="M30,0 v32 M34,0 v32"/>
<!-- fence post -->
<path d="M28,40 v-16 l4,-4 l4,4 v16 z" fill="saddlebrown"/>
</svg>

After

Width:  |  Height:  |  Size: 754 B

View file

@ -0,0 +1,9 @@
<svg version="1.1" width="512" height="512" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"
stroke="black" stroke-width="1" fill="none">
<image x="0" y="0" width="64" height="64" href="grass.svg"/>
<image x="0" y="0" width="64" height="64" href="fence-top-left.svg"
transform="translate(32,0) scale(-1,1) translate(-32,0)"/>
</svg>

After

Width:  |  Height:  |  Size: 348 B

View file

@ -0,0 +1,18 @@
<svg version="1.1" width="512" height="512" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"
stroke="black" stroke-width="1" fill="none">
<image x="0" y="0" width="64" height="64" href="grass.svg"/>
<!-- continuous upper line of the fence -->
<path d="M30,0 h4 v64 h-4 z" stroke="none" fill="saddlebrown"/>
<path d="M30,0 v64 M34,0 v64"/>
<!-- upper fence post -->
<path d="M28,24 h8 v-12 l-4,-4 l-4,4 z" stroke="none" fill="saddlebrown"/>
<path d="M30,16 v8 h-2 v-12 l4,-4 l4,4 v12 h-2 v-8 z"/>
<!-- lower fence post -->
<path d="M28,56 h8 v-12 l-4,-4 l-4,4 z" stroke="none" fill="saddlebrown"/>
<path d="M30,48 v8 h-2 v-12 l4,-4 l4,4 v12 h-2 v-8 z"/>
</svg>

After

Width:  |  Height:  |  Size: 683 B