From 75031038c8f043a87eeb0fa1f6bfd8d64feca59f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Fri, 27 Aug 2021 12:44:02 +0200 Subject: [PATCH] working on CM collider --- source/item.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/item.cpp b/source/item.cpp index 473ae72..85dc016 100644 --- a/source/item.cpp +++ b/source/item.cpp @@ -92,7 +92,7 @@ void Item::init(Uint8 value, float x, float y, LTexture *texture, SDL_Renderer * mPosY = PLAY_AREA_TOP - mHeight; mVelX = 0.0f; mVelY = -0.1f; - mAccelY = 0.15f; + mAccelY = 0.1f; mSprite->setAnimationNumFrames(0, 4); mSprite->setAnimationFrames(0, 0, 32 * 0, 16 * 2, mWidth, mHeight); mSprite->setAnimationFrames(0, 1, 32 * 1, 16 * 2, mWidth, mHeight); @@ -101,7 +101,7 @@ void Item::init(Uint8 value, float x, float y, LTexture *texture, SDL_Renderer * //mSprite->setSpriteClip(mSprite->getAnimationClip(0, 0)); mSprite->setPosX(mPosX); mSprite->setPosY(mPosY); - mCollider.r = mWidth / 2; + mCollider.r = 10; shiftColliders(); break;