Mario: end of level logic
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user