gardym/testinvaders — pull request #4 by distributedlife (2012-05-25 12:06:38+00:00)
Title: Welcome tidy with side effects

...to stop using initial_direction; introduced left and right variables to reduce magic co-efficient; changed swarm toggle direction to be based on a conditional rather than maths; changed invader constructor to stop getting initial_velocity; made swarm construction use more local vars to spell it out; changed can_shoot_countdown to be rand*20 rather than 20-rand*20; tidied up what I could in welcome.js; grouped like statements; deleted the tests around staggered bullets as we never actually enforce it; we just make a test cause it to happen;