diff --git a/source/game/scripting/StarLuaAnimationComponent.hpp b/source/game/scripting/StarLuaAnimationComponent.hpp index 1ad99a4..0cbd280 100644 --- a/source/game/scripting/StarLuaAnimationComponent.hpp +++ b/source/game/scripting/StarLuaAnimationComponent.hpp @@ -66,6 +66,9 @@ LuaAnimationComponent::LuaAnimationComponent() { if (renderLayerName) renderLayer = parseRenderLayer(*renderLayerName); + if (auto image = drawable.part.ptr()) + image->transformation.scale(0.125f); + m_drawables.append({move(drawable), renderLayer}); }); animationCallbacks.registerCallback("clearLightSources", [this]() { diff --git a/source/game/scripting/StarLuaGameConverters.cpp b/source/game/scripting/StarLuaGameConverters.cpp index baae984..070048e 100644 --- a/source/game/scripting/StarLuaGameConverters.cpp +++ b/source/game/scripting/StarLuaGameConverters.cpp @@ -449,12 +449,7 @@ Maybe LuaConverter::to(LuaEngine& engine, LuaValue const& v) else if (auto poly = table->get>("poly")) drawable = Drawable::makePoly(poly.take(), color); else if (auto image = table->get>("image")) - drawable = Drawable::makeImage( - image.take(), - table->get>("screenSpace").value(false) ? 1.0f : 1.0f / TilePixels, - table->get>("centered").value(true), - Vec2F(), - color); + drawable = Drawable::makeImage(image.take(), 1.0f, table->get>("centered").value(true), Vec2F(), color); else return {}; // throw LuaAnimationComponentException("Drawable table must have 'line', 'poly', or 'image'");