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

123456789101112131415161718
  1. #pragma once
  2. #include <SFML/Graphics.hpp>
  3. #include "common.h"
  4. #include "Body.h"
  5. class Player {
  6. public:
  7. Player(Vec2 pos):
  8. body_(pos, Vec2(1, 1)) {}
  9. void draw(Win &win);
  10. void update(float dt);
  11. private:
  12. Body body_;
  13. };