A 2D tile-based sandbox game.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "common.h"
  3. #include "Body.h"
  4. #include "WorldPlane.h"
  5. namespace Swan {
  6. class Player {
  7. public:
  8. Player(Vec2 pos):
  9. body_(pos, SIZE, MASS) {}
  10. void draw(Win &win);
  11. void update(WorldPlane &plane, float dt);
  12. private:
  13. static const float FORCE;
  14. static const float FRICTION;
  15. static const float MASS;
  16. static const Vec2 SIZE;
  17. Body body_;
  18. };
  19. }