From ea8fb5426b0f065b4ef508bb33c2baf30df6b5a4 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 28 Feb 2021 17:58:15 -0500 Subject: Simplified "animation" map sprite parameter The filenames for these are fairly regular, and we're gonna want to abstract it away further later on anyway. --- src/map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map.cpp b/src/map.cpp index 7a3de78..0cf9402 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -88,7 +88,7 @@ Map::Map(std::string_view name) : name_(name) { } else if (property.getName() == "collisionHeight") { p.collisionSize.h() = property.getIntValue(); } else if (property.getName() == "animation") { - p.animationFilename = property.getStringValue(); + p.animationFilename = "../res/sprites/" + property.getStringValue() + "_anim.txt"; } else if (property.getName() == "animName") { p.animName = property.getStringValue(); } else if (property.getName() == "interactionScript") { -- cgit 1.4.1