DemoProductions / shmup

3 stars 2 forks source link

initial weapon script #46

Closed ghost closed 8 years ago

ghost commented 8 years ago

attached to player or enemy game objects

flip40 commented 8 years ago

I think we should keep bullettime as part of the Weapon class, not Bullet (and maybe rename to refireRate or something). My thought on it is that the Bullet only cares what to do once it has been fired, but the Weapon determines how (and what kind of) Bullet is fired. For example if we had a Shotgun Weapon, it could fire Bullets in a spread (or Missiles...), but the same Missile and Bullet could also be used in a Machine Gun Weapon, which fires a single Bullet, but very rapidly.

ghost commented 8 years ago

Yeah that makes more sense. Will make that change and try and squash these commits into one

ghost commented 8 years ago

Also moved bullet delay into weapon (since it may vary based on weapon? Change depending on our game).

flip40 commented 8 years ago

Yeah, those two should go together (bullettime is the actual counter that goes to bulletdelay). Merging...