Няма описание

settings.py 544B

1234567891011121314151617181920
  1. class Settings():
  2. """A class to store all settings for Alien Invasion."""
  3. def __init__(self):
  4. """Initialize the game's settings."""
  5. # Screen settings.
  6. self.screen_width = 1200
  7. self.screen_height = 800
  8. self.bg_color = (230, 230, 230)
  9. # Ship settings.
  10. self.ship_speed_factor = 1.5
  11. # Bullet settings.
  12. self.bullet_speed_factor = 1
  13. self.bullet_width = 3
  14. self.bullet_height = 15
  15. self.bullet_color = 60, 60, 60
  16. self.bullets_allowed = 3