correct fire bullet speed

dev
Milang 3 years ago
parent e6ed094095
commit 4ed9222790
  1. 4
      src/bullet.c

@ -25,9 +25,9 @@ void bullet_throw()
bullets[i].b.x=mario.p.x;
bullets[i].b.y=mario.p.y+8;
if (last_vx_sign==0)
bullets[i].b.vx=-6;
bullets[i].b.vx=-9; //speed = 9
else
bullets[i].b.vx=6;
bullets[i].b.vx=9;
bullets[i].b.vy=0;
bullets[i].p1=last_vx_sign;
return;

Loading…
Cancel
Save