A 2D tile-based sandbox game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. };