diff --git a/macrovision.js b/macrovision.js index cce076c2..3e7d342a 100644 --- a/macrovision.js +++ b/macrovision.js @@ -109,7 +109,7 @@ function updateEntityElement(entity, element, zIndex) { element.style.left = position.x + "px"; element.style.top = position.y + "px"; - const pixels = math.divide(entity.views[view].height, config.height) * (canvasHeight - 100); + const pixels = math.divide(entity.views[view].height, config.height) * (canvasHeight - 50); const bonus = (entity.views[view].image.extra ? entity.views[view].image.extra : 1); element.style.setProperty("--height", pixels * bonus + "px"); diff --git a/media/attribution.js b/media/attribution.js index 21962a87..7247d701 100644 --- a/media/attribution.js +++ b/media/attribution.js @@ -1891,6 +1891,18 @@ const attributionData = { "danny-gryphon" ] }, + { + prefix: "./media/characters/danyel/", + files: [ + { name: "front.svg", source: "https://twitter.com/DanyelxDragon/status/1080540953683873792" } + ], + authors: [ + "danyelx" + ], + owners: [ + "danyelx" + ] + }, { prefix: "./media/characters/dayza/", files: [ @@ -6616,6 +6628,10 @@ const attributionData = { "name": "Timanth", "url": "https://www.furaffinity.net/user/timanth", }, + "danyelx": { + "name": "DanyelxDragon", + "url": "https://twitter.com/DanyelxDragon/", + }, } } diff --git a/media/characters/danyel/front.svg b/media/characters/danyel/front.svg new file mode 100644 index 00000000..04e7a1de --- /dev/null +++ b/media/characters/danyel/front.svg @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/presets/characters.js b/presets/characters.js index 792b1538..54474320 100644 --- a/presets/characters.js +++ b/presets/characters.js @@ -11722,7 +11722,7 @@ characterMakers["XGlidingDragonX"] = () => { name: "Front", image: { source: "./media/characters/x-gliding-dragon-x/front.svg", - extra: 870/670 * (1 / (1 - 0.03)), + extra: 860/690 * (1 / (1 - 0.03)), bottom: 0.03 } }, @@ -11819,6 +11819,40 @@ characterMakers["Rodger"] = () => { ) }; +characterMakers["Danyel"] = () => { + return makeCharacter( + "Danyel", + "Danyelx", + { + front: { + height: math.unit(6, "feet"), + weight: math.unit(150, "lb"), + name: "Front", + image: { + source: "./media/characters/danyel/front.svg", + extra: 1185/1123 * (1 / (1 - 0.05)), + bottom: 0.05 + } + }, + }, + [ + { + name: "Shrunken", + height: math.unit(0.5, "mm") + }, + { + name: "Micro", + height: math.unit(1, "mm"), + default: true + }, + { + name: "Upsized", + height: math.unit(5 + 5/12, "feet") + }, + ] + ) +}; + function makeCharacters() { const results = []; results.push({