Implemented a simple collision hash table.

This commit is contained in:
Zed A. Shaw 2024-10-25 22:31:09 -04:00
parent dbc2a10933
commit 743f906bc7
7 changed files with 174 additions and 1 deletions

View file

@ -15,10 +15,13 @@
#define PLAYER_TILE "☺"
#define ENEMY_TILE "Ω"
struct Point {
size_t x = 0;
size_t y = 0;
bool operator==(const Point& other) const {
return other.x == x && other.y == y;
}
};
struct Room {