diff --git a/game/src/Player.h b/game/src/Player.h index 14fb5d6..be0c642 100644 --- a/game/src/Player.h +++ b/game/src/Player.h @@ -25,6 +25,8 @@ typedef struct Player { Vector moveInput; int attackInput; + int facing; + Sprite* sprite; AnimationSprite* idle; @@ -55,7 +57,7 @@ RigidBody* PlayerGetRigidBody(Player* self); void PlayerOnCollision(Player* self, Collision collision); void PlayerOnOverlap(Player* self, Collider* other); -static long PlayerGetDepth(Player* self) { return -(int)(self->transform.position.y * 1000); } +static long PlayerGetDepth(Player* self) { return -10-(int)(self->transform.position.y * 1000); } impl_Drop_for(Player, DestroyPlayer