Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Lab06_Gravity_Collisions::GamePaint(RECT rect)
- {
- GAME_ENGINE->DrawBitmap(m_BmpLevelPtr, 0,0);
- GAME_ENGINE->SetColor(255, 0, 0, 150);
- GAME_ENGINE->FillHitRegion(m_HitLevelPtr);
- MATRIX3X2 matTranslate, matTransform;
- matTranslate.SetAsTranslate(m_ActorPos);
- GAME_ENGINE->SetTransformMatrix(matTranslate);
- GAME_ENGINE->DrawBitmap(m_BmpActorPtr, 0, 0);
- matTransform.SetAsIdentity();
- GAME_ENGINE->SetTransformMatrix(matTransform);
- GAME_ENGINE->FillHitRegion(m_HitActorVPtr);
- GAME_ENGINE->FillHitRegion(m_HitActorHPtr);
- GAME_ENGINE->SetColor(0,0,0);
- GAME_ENGINE->DrawString(String("Velocity is: ") + int(m_ActorVelocity.y), 200, 50);
- RECT2 clip = m_HitActorVPtr->CollisionTest(m_HitLevelPtr);
- }
Add Comment
Please, Sign In to add comment