Sherwoodwt / SpaceGame

Just a Space game written in Java
1 stars 0 forks source link

Movement Animation #16

Closed Sherwoodwt closed 8 years ago

Sherwoodwt commented 8 years ago

Description

As a corner reference already exists, it would be cool to draw the corners of the ship as white dots (as done when testing corner rotation) and have them fade away after a number of updates. This will show ship movement.

Requirements

  1. New Class (vapor trail?... even though there is no vapor in space... who cares, it will be cool).
  2. Class stored similar to bullet in Ship class.
  3. Each update (or a few if that is too many) add a new VaporTrail to the list with coordinates at each corner point.
  4. VaporTrail update counts from 0 to a MAX, once at MAX update returns DEAD and they are removed from the list like bullets.
  5. Each update VaporTrail is drawn at a faded color closer to black (Starting at white, by the way).
Sherwoodwt commented 8 years ago

Not 100% happy with the result. Commit that included this referenced card #17 instead.

Works fine and looks as it is supposed to, but just doesn't have the effect that I want. May change later but for now it will work. I will come back to this card.

Sherwoodwt commented 8 years ago

Idea. Ship movement is easier to see with new images. Missles can have vapor trail effect to keep effect but limit its usage. Too much vapor trail is obnoxious.