working on CM collider

This commit is contained in:
2021-08-27 12:44:02 +02:00
parent 70324570c8
commit 75031038c8

View File

@@ -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;