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.

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