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

WorldPlane.h 306B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <vector>
  3. #include "common.h"
  4. #include "Chunk.h"
  5. namespace Swan {
  6. class WorldPlane {
  7. public:
  8. std::vector<Chunk> chunks_;
  9. int max_chunk_x_ = 0;
  10. int min_chunk_x_ = 0;
  11. int max_chunk_y_ = 0;
  12. int min_chunk_y_ = 0;
  13. void draw(Win &win);
  14. void update(float dt);
  15. void tick();
  16. };
  17. }