Mario: fix floor detect and top movement helper
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ Mario::Mario(const std::shared_ptr< SDLPP::Renderer > &renderer) : SDLPP::Rectan
|
||||
pauseAnimation();
|
||||
setMovement( 0, 0 );
|
||||
setMovementSpeed( 1 );
|
||||
auto bottom_detect = SDLPP::RectColider( 0.3, 1, 0.4, 0, MARIO_FLOOR_DETECT );
|
||||
auto bottom_detect = SDLPP::RectColider( 0.2, 1, 0.6, 0, MARIO_FLOOR_DETECT );
|
||||
bottom_detect.setMinHeight(1);
|
||||
addCollision(bottom_detect);
|
||||
addCollision(
|
||||
|
||||
Reference in New Issue
Block a user