I used a counter to check how many steps they already have done. After 8 steps I said go down(getY() -1) and then move 18 steps ahead and move down again.
I had all 3 alien types as a subclass of AlienAnimated. In this "upperclass" I wrote one method with the mentioned counter. All subclasses just uses this "move();" method in the act()
Recent Comments | Show All
2012/3/8
Aka Karasu Kuroi presents Space Invaders
2012/3/8
Aka Karasu Kuroi presents Space Invaders