Make Goomba hitbox larger
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
zv0n 2022-06-21 08:52:21 +02:00
parent c8e749a145
commit b98d283d09

View File

@ -20,7 +20,7 @@ GoombaBlock::GoombaBlock(int x, int y,
addCollision(SDLPP::RectColider(0, 0.25, 0.1, 0.6, NPC_LEFT_SIDE_DETECT));
addCollision(
SDLPP::RectColider(0.9, 0.25, 0.1, 0.6, NPC_RIGHT_SIDE_DETECT));
addCollision(std::make_shared<SDLPP::RectColider>(0.5, 0, 0.2, 0.15,
addCollision(std::make_shared<SDLPP::RectColider>(0.35, 0, 0.3, 0.15,
NPC_TOP_DETECT));
#ifndef EDITOR
setMovement(-0.19, 0);