Mario: end of level logic

This commit is contained in:
2022-09-23 16:46:50 +02:00
parent 6211e8c756
commit 3437aa6b47
8 changed files with 88 additions and 23 deletions
+3
View File
@@ -204,6 +204,7 @@ PoleTopBlock::PoleTopBlock(int x, int y,
: MarioBlock(x, y, renderer, g_terrain_texture, POLE_TOP_SRC, false) {
ensureCollision();
setId(POLE_TOP_ID);
setBouncable(false);
}
PoleBottomBlock::PoleBottomBlock(int x, int y,
@@ -212,11 +213,13 @@ PoleBottomBlock::PoleBottomBlock(int x, int y,
false) {
ensureCollision();
setId(POLE_BOTTOM_ID);
setBouncable(false);
}
FlagBlock::FlagBlock(int x, int y, std::shared_ptr<SDLPP::Renderer> &renderer)
: MarioBlock(x, y, renderer, g_terrain_texture, FLAG_SRC, false) {
setId(FLAG_ID);
setBouncable(false);
}
StepBlock::StepBlock(int x, int y, std::shared_ptr<SDLPP::Renderer> &renderer)