diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-06 21:15:34 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-06 21:15:34 -0500 |
commit | 0e1e97da9e8937d19b0101dcc1f3a16e3db495b6 (patch) | |
tree | 64472e8e640bc9884a938106a49b87b43852aa75 /src/game.cpp | |
parent | cb7617344c3b7994cb40d6253a77dbfa3d3ff984 (diff) | |
download | tanetane-0e1e97da9e8937d19b0101dcc1f3a16e3db495b6.tar.gz tanetane-0e1e97da9e8937d19b0101dcc1f3a16e3db495b6.tar.bz2 tanetane-0e1e97da9e8937d19b0101dcc1f3a16e3db495b6.zip |
Added sound and animation changes to scripting
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 4ea7fd2..447b62a 100644 --- a/src/game.cpp +++ b/src/game.cpp | |||
@@ -1,8 +1,9 @@ | |||
1 | #include "game.h" | 1 | #include "game.h" |
2 | 2 | ||
3 | int Game::emplaceSprite() { | 3 | int Game::emplaceSprite(std::string alias) { |
4 | int id = sprites_.size(); | 4 | int id = sprites_.size(); |
5 | sprites_.emplace_back(); | 5 | sprites_.emplace_back(); |
6 | spriteIds_.push_back(id); | 6 | spriteIds_.push_back(id); |
7 | spritesByAlias_[alias] = id; | ||
7 | return id; | 8 | return id; |
8 | } | 9 | } |