A 2D tile-based sandbox game.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031
  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 = 32;
  7. static constexpr int CHUNK_WIDTH = 32;
  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. class ResourceManager;
  18. struct Context {
  19. Game &game;
  20. World &world;
  21. WorldPlane &plane;
  22. ResourceManager &resources;
  23. };
  24. }