Bullet patterns for a Japanese style 2d space shooter in Javascript