symp
symp
  • Space Invaders

    See on Github

    Class

    Com Sci 227
    Java

  • Date

    2019, November

  • Time Taken

    3 Days

Info

For this project I was supplied the outline code containing engine, artwork, and ship interface. I was responsible for writing methods to translate the enemy fleet as well as implement the interfaces for all the ships. The most challenging part was implementing the shoot method for the multi shooter ship because multiple projectiles need to be drawn. Another challenge I had to overcome was to do with translating the enemy fleet. Specifically checking to see if the rightmost or leftmost enemy ship was out of bounds. In this case the fleet needed to be translated down and its direction reversed. The solution was simply iterating through the ships in the direction that would inherently return the left or rightmost ship.