Mario: destructible blocks
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ Mario::Mario(const std::shared_ptr< SDLPP::Renderer > &renderer) : SDLPP::Rectan
|
||||
addCollision(
|
||||
SDLPP::RectColider( 0.9, 0.1, 0.1, 0.8, MARIO_RIGHT_SIDE_DETECT ) );
|
||||
addCollision(
|
||||
SDLPP::RectColider( 0.21, 0, 0.65, 0.15, MARIO_TOP_DETECT ) );
|
||||
SDLPP::RectColider( 0.45, 0, 0.1, 0.15, MARIO_TOP_DETECT ) );
|
||||
setStatic( false );
|
||||
}
|
||||
void Mario::walkLeft() {
|
||||
|
||||
Reference in New Issue
Block a user