Work for Friday 6/2


  • Began working on creating aliens. Added them as a drawable class. Not sure if later we want different categories of aliens, or whether we just want to have different sprites within the alien class- in that case, I can add a parameter to the class later that specifies which sprite to use.
  • For now, since I'm only creating one enemy, I have a single creation statement. However, when I'm creating more, I think I'll loop to add them to a list (I don't know data structures in Python, so I'm not sure if there's any sort of 2D array I could use for each row), and increment the spacing each time by a variable so they're spaced like the actual game.
  • Have implemented loop system that creates all of the alien sprites onscreen. 
  • Still need to find a way to fix the aspect ratio of the game so that sprites don't scale.
  • I'm not sure what method to take for the scaling- port to iOS was added as a task to complete, and that has a much taller, narrower screen size than what I'm currently using. In that case, my original idea of simply having the user only input width or height and having the other scale wouldn't work, since a different ratio would be needed. In that case, I'd probably have to find a way to make only the x-size of all the sprites scale and then y-size respond to that, rather than the y-size of the screen.

Update: changed the size and spacing of aliens after checking what an actual space invaders game looks like.

Total time for today: 3 hours
Total time for week: 11 hours

Plan for next week includes:
  • Implementing movement for the aliens- should move to the far right one step at a time before lowering and moving to the far left
  • Implementing health for the aliens so that they can be destroyed by the bullets.


No comments:

Post a Comment