SVG masks for Age of Empires II: Definitive Edition unique units
We create a div
with the unique unit as a background image. Inside this div
we inject the corresponding SVG with svg-inject (forked for stability reasons) and give the injected SVG a class of ours. From there on we can style the SVG as it would be inline.
Check the example folder. You will need a HTTP server to serve the files (e.g. python -m http.server
).
The svg masks in ./unique_units_masks are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (or see local copy). If you want to obtain a commercial license you can contact the author using the issues.
Age of Empires II © Microsoft Corporation.
Assets under ./unique_units_base were created under Microsoft's "Game Content Usage Rules" using assets from Age of Empires II. We are not endorsed by or affiliated with Microsoft.