DEV Community

Discussion on: Shooting Bullets in JavaScript - Game Dev

Collapse
 
taposhbarman profile image
Taposh-Barman

That's nice.Can you ensure me the logic about the movement of bullets?
I tried this way as below :
if(bullet.y<0) then bullet.y=heady_of_plane;
But the problem is if the heady_of_plane is very near at 0 position ,the velocity of bullets is increased.. That's exactly not what i am expecting.