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.

Chunk.h 204B

123456789101112131415161718
  1. #pragma once
  2. #include "common.h"
  3. #include "Tile.h"
  4. namespace Swan {
  5. class Chunk {
  6. public:
  7. int x_;
  8. int y_;
  9. Tile::TileID tiles_[CHUNK_HEIGHT][CHUNK_WIDTH];
  10. void clear();
  11. void draw(Win &win);
  12. };
  13. }