diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-28 17:58:15 -0500 | 
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-28 17:58:15 -0500 | 
| commit | ea8fb5426b0f065b4ef508bb33c2baf30df6b5a4 (patch) | |
| tree | a3a72aad85e74044c914185754ae8e736776a3f9 /src | |
| parent | 1cb8cc47c64009999f054f42f6815b05ccfc305c (diff) | |
| download | tanetane-ea8fb5426b0f065b4ef508bb33c2baf30df6b5a4.tar.gz tanetane-ea8fb5426b0f065b4ef508bb33c2baf30df6b5a4.tar.bz2 tanetane-ea8fb5426b0f065b4ef508bb33c2baf30df6b5a4.zip  | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/map.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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) { | |||
| 88 | } else if (property.getName() == "collisionHeight") { | 88 | } else if (property.getName() == "collisionHeight") { | 
| 89 | p.collisionSize.h() = property.getIntValue(); | 89 | p.collisionSize.h() = property.getIntValue(); | 
| 90 | } else if (property.getName() == "animation") { | 90 | } else if (property.getName() == "animation") { | 
| 91 | p.animationFilename = property.getStringValue(); | 91 | p.animationFilename = "../res/sprites/" + property.getStringValue() + "_anim.txt"; | 
| 92 | } else if (property.getName() == "animName") { | 92 | } else if (property.getName() == "animName") { | 
| 93 | p.animName = property.getStringValue(); | 93 | p.animName = property.getStringValue(); | 
| 94 | } else if (property.getName() == "interactionScript") { | 94 | } else if (property.getName() == "interactionScript") { | 
