From 0e1e97da9e8937d19b0101dcc1f3a16e3db495b6 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 6 Feb 2021 21:15:34 -0500 Subject: Added sound and animation changes to scripting --- src/game.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') 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 @@ #include "game.h" -int Game::emplaceSprite() { +int Game::emplaceSprite(std::string alias) { int id = sprites_.size(); sprites_.emplace_back(); spriteIds_.push_back(id); + spritesByAlias_[alias] = id; return id; } -- cgit 1.4.1