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.

common.h 516B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "Vector2.h"
  3. namespace Swan {
  4. static constexpr int TILE_SIZE = 32;
  5. static constexpr int TICK_RATE = 20;
  6. static constexpr int CHUNK_HEIGHT = 64;
  7. static constexpr int CHUNK_WIDTH = 64;
  8. static constexpr int PLACEHOLDER_RED = 245;
  9. static constexpr int PLACEHOLDER_GREEN = 66;
  10. static constexpr int PLACEHOLDER_BLUE = 242;
  11. using TilePos = Vec2i;
  12. using ChunkPos = Vec2i;
  13. class Game;
  14. class World;
  15. class WorldPlane;
  16. class Win;
  17. struct Context {
  18. Game &game;
  19. World &world;
  20. WorldPlane &plane;
  21. };
  22. }