Mario: add turtle enemy

This commit is contained in:
2023-03-10 16:45:26 +01:00
parent fd96a1c2cc
commit f0182cf4d4
10 changed files with 35 additions and 1 deletions
+1
View File
@@ -371,6 +371,7 @@ SceneStruct mainGameScene(const std::string &level_path) {
moving_objects.push_back(mario);
std::unordered_set<int> moving_object_ids = {
GOOMBA_ID,
TURTLE_ID,
};
for (auto &obj : scene->getObjects(moving_object_ids)) {
moving_objects.push_back(std::dynamic_pointer_cast<MarioBlock>(obj));