added debugging logs for player collision

This commit is contained in:
Sara 2023-10-08 23:10:27 +02:00
parent 4e966b42a8
commit 878b4c5595

View file

@ -1,4 +1,5 @@
#include "player.h"
#include "debug.h"
void player_spawn(Player* self, Vector at) {
self->transform.position = at;
@ -12,6 +13,10 @@ void player_update(Player* self, float dt) {
}
void player_collision(Player* self, Collision hit) {
LOG_INFO("AAAAA %p", hit.other.data);
}
Sprite* player_get_sprite(Player* self) {
return self->sprite;
}