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
@@ -62,6 +62,7 @@ void MarioVisitor::visit(const SDLPP::RenderObject &obj) {
_instant_death = true;
break;
case GOOMBA_ID:
case TURTLE_ID:
if (from != MARIO_FLOOR_DETECT && from != MARIO_ENEMY_DETECT) {
_death = true;
} else if (from == MARIO_FLOOR_DETECT || from == MARIO_ENEMY_DETECT) {