Space Invaders (Part 20/34)

  • 3
  • Locked
We'll create the nextFrame method in the Ship class to switch to the next animation frame. It sets the matrix field to the next animation frame, if possible. We'll extend the functionality of the draw method by overriding it so that it calls the superclass's method for drawing and the nextFrame met
You can't complete this task, because you're not signed in.
Comments (1)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Justin Smith
Level 38 , Greenfield, USA, United States
5 December 2021, 13:11
Conditions have an error here. It says "The nextFrame() method must not do anything if frameIndex is greater than or equal to the number of frames in the frames list." However, what they really mean is "except for increasing frameIndex by 1", as evidenced by the solution.