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
+6
View File
@@ -13,6 +13,7 @@
#include "blocks/coinblock.hpp"
#include "blocks/mushroomblock.hpp"
#include "blocks/goombablock.hpp"
#include "blocks/turtleblock.hpp"
#include "mario.hpp"
#define CAN_BE_DESTROYED_FLAG 0x0000000000000001
@@ -322,6 +323,7 @@ const std::vector<uint64_t> possibleMods = {
const std::vector<uint64_t> possibleCharacters = {
MARIO_ID,
GOOMBA_ID,
TURTLE_ID,
};
const std::vector<LandType::Value> possibleLands = {
@@ -573,6 +575,10 @@ createBlockById(uint64_t id, int x, int y,
result = std::static_pointer_cast<MarioBlock>(
std::make_shared<GoombaBlock>(x, y, renderer));
break;
case TURTLE_ID:
result = std::static_pointer_cast<MarioBlock>(
std::make_shared<TurtleBlock>(x, y, renderer));
break;
#ifdef EDITOR
case DESTRUCTIBLE_MODIFIER_ID:
result = std::static_pointer_cast<MarioBlock>(