Advertisement
viettiennguyen029

Moving Platform .h

May 30th, 2020
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #pragma once
  2. #include "GameObject.h"
  3.  
  4.  
  5. #define MOVING_PLATFORM_BBOX_WIDTH  32
  6. #define MOVING_PLATFORM_BBOX_HEIGHT 8
  7.  
  8. #define MOVING_PLATFORM_SPEED       0.02f
  9. class CMovingPlatform :public CGameObject
  10. {
  11. public:
  12.     CMovingPlatform();
  13.     virtual void Render();
  14.     virtual void Update(DWORD dt, vector<LPGAMEOBJECT>* coObjects);
  15.     virtual void GetBoundingBox(float& l, float& t, float& r, float& b);
  16.  
  17. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement