2021-06-01 17:49:29 +02:00
|
|
|
//---
|
|
|
|
// entities: Objects that move around the map
|
|
|
|
//---
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "geometry.h"
|
|
|
|
|
|
|
|
struct entity {
|
|
|
|
/* Coordinates of the entity's hitbox center on the map */
|
|
|
|
map_coord_t x, y;
|
|
|
|
/* Entity's hitbox */
|
2021-06-01 21:30:05 +02:00
|
|
|
shape_t hitbox;
|
2021-06-01 17:49:29 +02:00
|
|
|
|
|
|
|
uint16_t color;
|
|
|
|
};
|