Make Goomba hitbox larger
This commit is contained in:
@@ -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, 0.25, 0.1, 0.6, NPC_LEFT_SIDE_DETECT));
|
||||||
addCollision(
|
addCollision(
|
||||||
SDLPP::RectColider(0.9, 0.25, 0.1, 0.6, NPC_RIGHT_SIDE_DETECT));
|
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));
|
NPC_TOP_DETECT));
|
||||||
#ifndef EDITOR
|
#ifndef EDITOR
|
||||||
setMovement(-0.19, 0);
|
setMovement(-0.19, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user