A 2D tile-based sandbox game.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Body.h 270B

12345678910111213141516171819
  1. #pragma once
  2. #include <SFML/Graphics.hpp>
  3. #include "common.h"
  4. class Body {
  5. public:
  6. Vec2 force_ = { 0, 0 };
  7. Vec2 vel_ = { 0, 0 };
  8. Vec2 pos_;
  9. Vec2 size_;
  10. Body(Vec2 pos, Vec2 size):
  11. pos_(pos), size_(size) {};
  12. void outline(Win &win);
  13. void update(float dt);
  14. };