소스 검색

fix particle spawn position

Tim Strasser 2 년 전
부모
커밋
fac9bd1691
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      includes/particle.c

+ 2 - 2
includes/particle.c

@@ -43,8 +43,8 @@ void particle_tick(PARTICLE* const particles, SCIENTIST* const scientists, int*
 void spawn_random_particles(PARTICLE* const particles, BARRY* const barry) {
     for(int i = 0; i < PARTICLES_MAX; i++) {
         if(particles[i].point.y <= 0) {
-            particles[i].point.x = barry->point.x + (rand() % 7) - 3;
-            particles[i].point.y = barry->point.y;
+            particles[i].point.x = barry->point.x + (rand() % 4);
+            particles[i].point.y = barry->point.y + 14;
             break;
         }
     }