diff options
author | BoredGuy <osome3717@gmail.com> | 2025-07-29 11:50:57 +0300 |
---|---|---|
committer | BoredGuy <osome3717@gmail.com> | 2025-07-29 11:50:57 +0300 |
commit | 815aec62f8ae3a403e913559d5fe6138c8825007 (patch) | |
tree | 3041d4b8a843c05a4da02e66d5e2f63e1e713b72 /src/player.c | |
parent | 9e1627c229d8d094c7b55751d82db9d3579a16e1 (diff) |
Added background entity and asset system
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 +} |