From 815aec62f8ae3a403e913559d5fe6138c8825007 Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Tue, 29 Jul 2025 11:50:57 +0300 Subject: Added background entity and asset system --- src/player.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/player.c') diff --git a/src/player.c b/src/player.c index d65b873..c8e3f7d 100644 --- a/src/player.c +++ b/src/player.c @@ -27,11 +27,11 @@ void UpdatePlayer(Entity* player, float deltaTime) { } void AddPlayer(float xpos, float ypos) { - Entity player; + Entity player = {0}; player.type = Player_Entity; player.position = (Vector2) {xpos, ypos}; - player.flags |= (ENTITY_PHYSICS_ACTIVE | ENTITY_VISIBLE); + player.flags |= (ENTITY_PHYSICS_ACTIVE); player.physicsCollider = (Rectangle) {0, 0, 100, 100}; @@ -40,4 +40,4 @@ void AddPlayer(float xpos, float ypos) { #endif AddEntity(&player); -} \ No newline at end of file +} -- cgit v1.2.3