diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-21 23:23:16 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-21 23:23:16 +0200 |
commit | 63112267be277e38224b510ec5745421dd7d4917 (patch) | |
tree | ab3ae7990cb49d61382bd0cd225fbe53d329f4a0 /src/resources/spritedef.cpp | |
parent | 05ea95733e9ec89626e08989e0688e73d1408d3a (diff) | |
download | manaverse-63112267be277e38224b510ec5745421dd7d4917.tar.gz manaverse-63112267be277e38224b510ec5745421dd7d4917.tar.bz2 manaverse-63112267be277e38224b510ec5745421dd7d4917.tar.xz manaverse-63112267be277e38224b510ec5745421dd7d4917.zip |
Add diagonal animations.
New animation names: upleft, upright, downleft, downright
Tested atleast at mobs.
Diffstat (limited to 'src/resources/spritedef.cpp')
-rw-r--r-- | src/resources/spritedef.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp index dddee575f..edd7b6a74 100644 --- a/src/resources/spritedef.cpp +++ b/src/resources/spritedef.cpp @@ -334,6 +334,14 @@ SpriteDirection SpriteDef::makeSpriteDirection(const std::string &direction) return DIRECTION_RIGHT; else if (direction == "down") return DIRECTION_DOWN; + else if (direction == "upleft") + return DIRECTION_UPLEFT; + else if (direction == "upright") + return DIRECTION_UPRIGHT; + else if (direction == "downleft") + return DIRECTION_DOWNLEFT; + else if (direction == "downright") + return DIRECTION_DOWNRIGHT; else return DIRECTION_INVALID; } |