diff options
author | UnavailableDev <ggwildplay@gmail.com> | 2023-03-13 17:10:11 +0100 |
---|---|---|
committer | UnavailableDev <ggwildplay@gmail.com> | 2023-03-13 17:10:11 +0100 |
commit | 30eca8d3bd03c1efe52f2432c4b6b0c842fffa2d (patch) | |
tree | 988cb8dc3f400d76fb659733f9d5236b927d747a /src/engine/entity.c | |
parent | 506b1d11e6006e44de5b888eb342eb9dbed58d2c (diff) |
demo.c clean up
Diffstat (limited to 'src/engine/entity.c')
-rw-r--r-- | src/engine/entity.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/entity.c b/src/engine/entity.c index 152cf1d..153e7e1 100644 --- a/src/engine/entity.c +++ b/src/engine/entity.c @@ -28,19 +28,19 @@ void hh_solve_collision(vec2 pos_environment, hh_entity* entity){ return; printf("BONK!/n"); - // if (entity->vec.y > 0){ + // if (entity->vel.y > 0){ // entity->pos.y = MAX(entity->pos.y,pos_environment.y); - // entity->vec.y = 0; + // entity->vel.y = 0; // } else { // entity->pos.y = MIN(entity->pos.y,pos_environment.y); - // entity->vec.y = 0; + // entity->vel.y = 0; // } - // if (entity->vec.x <= 0){ + // if (entity->vel.x <= 0){ // entity->pos.x = MIN(entity->pos.x,pos_environment.x-16); - // entity->vec.x = 0; + // entity->vel.x = 0; // } else { // entity->pos.x = MAX(entity->pos.x,pos_environment.x+16); - // entity->vec.x = 0; + // entity->vel.x = 0; // } } |