mapcreator git · master
SDL3 2.5D game and engine using assets, with map editor
C++ 99.3%git clone https://git.christianimmanuel.de/sdl-graphics/mapcreator.gitwget https://git.christianimmanuel.de/sdl-graphics/mapcreator/archive/mapcreator.tar.gzUpdate smaller character collider with
src/character/character.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/character/character.cpp b/src/character/character.cpp index 9519f10..57a0098 100644 --- a/src/character/character.cpp +++ b/src/character/character.cpp @@ -49,10 +49,10 @@ Character::Init(SDL_Renderer* renderer) { tile_size = 64; height = 48; width = 16; - collider.w = 6; - collider.h = 6; + collider.w = 3; + collider.h = 3; collider.x = (tile_size/2 - collider.w/2); - collider.y = tile_size - collider.h - 14; + collider.y = tile_size - collider.h - 15; collider_world.x = x + collider.x + collider.w * 0.5f; collider_world.y = y + collider.y + collider.h * 0.5f; spawn_point = {collider_world.x, collider_world.y};