Skip to content

Commit

Permalink
Add katana and castle glyphs
Browse files Browse the repository at this point in the history
  • Loading branch information
Perlkonig committed Jan 31, 2025
1 parent e6d3798 commit 7606a6e
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
Binary file modified contact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion contact.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions src/sheets/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,30 @@ sheet.glyphs.set("cannon-town", (canvas: SVGContainer) => {
return group;
});

sheet.glyphs.set("castle-solid", (canvas: SVGContainer) => {
const sym = canvas.symbol();
sym.polygon("490.292,206.918 490.292,223.389 470.426,222.2 470.426,205.159 445.158,202.911 445.158,220.692 421.903,219.321 421.903,200.833 392.126,198.184 392.126,217.541 364.55,215.884 364.55,195.745 328.973,192.567 328.973,246.543 512,246.543 512,208.847")
.attr("data-playerfill", true)
.fill("#000");
sym.polygon("328.973,367.491 512,339.487 512,255.401 328.973,255.401")
.attr("data-playerfill", true)
.fill("#000");
sym.polygon("147.474,220.489 119.871,222.139 119.871,202.782 90.104,205.438 90.104,223.899 66.845,225.298 66.845,207.489 41.595,209.737 41.595,226.805 21.711,227.988 21.711,211.517 0,213.445 0,251.121 183.048,251.121 183.048,197.165 147.474,200.323")
.attr("data-playerfill", true)
.fill("#000");
sym.polygon("0,344.085 183.048,372.076 183.048,260.006 0,260.006")
.attr("data-playerfill", true)
.fill("#000");
sym.polygon("294.164,151.59 270.14,151.59 270.14,130.385 241.871,130.385 241.871,151.59 217.844,151.59 217.844,130.385 189.575,130.385 189.575,179.858 198.058,179.858 217.844,179.858 241.871,179.858 270.14,179.858 294.164,179.858 322.435,179.858 322.435,151.59 322.435,130.385 294.164,130.385")
.attr("data-playerfill", true)
.fill("#000");
sym.path("M195.759,372.076l17.517,4.333c28.062,6.941,57.393,6.941,85.455,0l17.521-4.333V192.574H195.759V372.076z M245.402,223.722h21.202v40.277h-21.202V223.722z")
.attr("data-playerfill", true)
.fill("#000");
sym.viewbox(-1, 129.385, 514, 253.23);
return sym;
});

sheet.glyphs.set("circle", (canvas: SVGContainer) => {
const group = canvas.symbol();
const border = 15;
Expand Down Expand Up @@ -491,6 +515,30 @@ sheet.glyphs.set("humpback", (canvas: SVGContainer) => {
return symbol;
});

sheet.glyphs.set("katanas", (canvas: SVGContainer) => {
const sym = canvas.symbol();
sym.path("M37.895,37.511c-2.133-1.492-3.155-2.271-5.113-3.878c-0.32,0.472-0.693,0.936-1.135,1.347c-0.291,0.269-0.604,0.507-0.928,0.728c-0.229,0.156-0.463,0.285-0.699,0.414c2.154,1.818,3.285,2.696,5.652,4.377c0.881,0.586,2.121,0.377,2.729-0.459C39.011,39.206,38.765,38.077,37.895,37.511z")
.attr("data-playerfill", true)
.fill("#000");
sym.path("M31.782,32.547c0.033-0.051,0.074-0.1,0.107-0.152c0.25-0.4,0.463-0.803,0.612-1.186c0.173-0.443,0.284-0.846,0.345-1.147c0.062-0.298,0.072-0.493,0.072-0.493s-0.195,0.012-0.492,0.073c-0.302,0.06-0.703,0.171-1.148,0.344c-0.514,0.2-1.061,0.509-1.592,0.886c-0.164-0.121-0.334-0.229-0.496-0.353c-2.02-1.533-3.941-3.176-5.788-4.896c-0.734,0.761-1.491,1.512-2.267,2.252c2.012,1.867,4.131,3.617,6.371,5.213c-0.318,0.479-0.58,0.964-0.757,1.422c-0.172,0.445-0.282,0.848-0.342,1.148c-0.062,0.299-0.072,0.494-0.072,0.494s0.195-0.01,0.494-0.072c0.302-0.059,0.705-0.17,1.149-0.342c0.375-0.146,0.769-0.365,1.162-0.613c0.222-0.141,0.444-0.279,0.662-0.444c0.307-0.233,0.607-0.481,0.885-0.759C31.111,33.498,31.472,33.026,31.782,32.547z")
.attr("data-playerfill", true)
.fill("#000");
sym.path("M4.691,7.622c0.175,0.265,0.354,0.535,0.537,0.811c3.65,5.515,7.659,10.931,12.23,15.783c0.758-0.724,1.513-1.472,2.262-2.241c-3.486-3.659-6.683-7.6-9.646-11.707C9.209,9.069,8.465,7.886,7.751,6.812C6.412,5.091,5.1,3.437,3.619,1.793C3.317,1.458,2.185,0.58,2.094,0.102C2.096,0.111,2.266,1,2.722,2.495C3.22,4.128,3.646,6.241,4.691,7.622z")
.attr("data-playerfill", true)
.fill("#000");
sym.polygon("38.248,0 38.244,0.006 38.657,0.084")
.attr("data-playerfill", true)
.fill("#000");
sym.path("M9.184,34.981c-0.442-0.411-0.815-0.875-1.135-1.347c-1.958,1.608-2.981,2.386-5.114,3.878c-0.867,0.566-1.113,1.693-0.506,2.529c0.374,0.514,0.988,0.791,1.611,0.791c0.388,0,0.78-0.108,1.118-0.334c2.367-1.68,3.498-2.558,5.653-4.375c-0.235-0.129-0.47-0.258-0.7-0.414C9.788,35.489,9.473,35.25,9.184,34.981z")
.attr("data-playerfill", true)
.fill("#000");
sym.path("M22.688,24.942c4.859-5.033,9.082-10.718,12.916-16.509c0.183-0.276,0.361-0.547,0.537-0.811c1.045-1.381,1.47-3.494,1.969-5.127c0.457-1.496,0.627-2.384,0.628-2.393c-0.091,0.479-1.224,1.356-1.525,1.691c-1.481,1.644-2.793,3.297-4.132,5.019c-0.714,1.074-1.458,2.258-2.322,3.457c-3.16,4.379-6.582,8.569-10.342,12.429c-0.743,0.762-1.502,1.51-2.273,2.245c-2.065,1.968-4.22,3.845-6.503,5.578c-0.162,0.123-0.331,0.233-0.495,0.353c-0.532-0.377-1.08-0.686-1.592-0.885c-0.444-0.174-0.847-0.285-1.148-0.345c-0.298-0.062-0.493-0.073-0.493-0.073s0.011,0.195,0.073,0.493c0.059,0.302,0.171,0.703,0.344,1.147c0.149,0.383,0.363,0.785,0.613,1.186c0.032,0.053,0.073,0.102,0.107,0.153c0.311,0.478,0.672,0.95,1.094,1.374c0.277,0.277,0.577,0.525,0.884,0.759c0.217,0.165,0.441,0.304,0.663,0.444c0.393,0.248,0.786,0.467,1.162,0.613c0.445,0.172,0.848,0.283,1.149,0.342c0.298,0.062,0.494,0.072,0.494,0.072s-0.01-0.195-0.072-0.494c-0.059-0.301-0.17-0.705-0.342-1.148c-0.178-0.457-0.438-0.943-0.758-1.419c2.511-1.79,4.865-3.775,7.093-5.898C21.186,26.457,21.947,25.709,22.688,24.942z")
.attr("data-playerfill", true)
.fill("#000");
sym.viewbox(1.094, -1, 38.645, 42.832);
return sym;
});

sheet.glyphs.set("meeple", (canvas: SVGContainer) => {
const group = canvas.symbol();
const meeple = group.group();
Expand Down

0 comments on commit 7606a6e

Please sign in to comment.