Mario: add turtle enemy
This commit is contained in:
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user