# -*- coding: utf-8 -*-
"""
Created on Mon Apr 28 2020
@author: Cassio (chmendonca)
Description: This class was created as a container to the game characteristics
and configurations
"""
from random import randint

class Settings():
    """A class that have all configurations of the game"""
    
    def __init__(self):
        """Initialize the game configs"""
        #Screen configuration
        self.screen_width = 1200
        self.screen_height = 680
        self.bg_color = (0,20,50)
        
        #Hero configuration
        #Increase of ship speed to 1.5 pixels instead of 1
        #self.hero_speed_factor = 1.5
        self.hero_limit = 3
        
        #Syringes (bullets) configuration
        #self.bullet_speed_factor = 1
        self.bullets_allowed = 5
        
        #Covids configuration
        self.covid_vertical_speed_factor = 1
        #The value of the movement is negative because it is increasing
        #   from the right to the left
        #self.covid_horizontal_speed_factor = -10
        #The pandemy direction equals 1 means to the bottom; -1 means to the top
        # The randint ensures an randomly direction when starting the game
        #if randint(0,1) == 1:
        #    self.pandemy_direction = 1
        #else:
        #    self.pandemy_direction = -1

        #The rate that increases the game speed
        self.speedup_scale = 1.1
        
        self.initialize_dynamic_settings()

    def initialize_dynamic_settings(self):
        """Initializes the configurations that increase during the game"""
        self.hero_speed_factor = 1.5
        self.bullet_speed_factor = 1
        self.covid_horizontal_speed_factor = -10
        self.alien_points = 50
        #The pandemy direction equals 1 means to the bottom; -1 means to the top
        # The randint ensures an randomly direction when starting the game
        if randint(0,1) == 1:
            self.pandemy_direction = 1
        else:
            self.pandemy_direction = -1

    def increase_speed(self):
        """Increase the speed configurations"""
        self.covid_horizontal_speed_factor *= self.speedup_scale
        self.bullet_speed_factor *= self.speedup_scale
        self.hero_speed_factor *= self.speedup_scale
c9baccb09e5ac57daef9000707807c94034c59e4
<mask token>


class Settings:
    <mask token>

    def __init__(self):
        """Initialize the game configs"""
        self.screen_width = 1200
        self.screen_height = 680
        self.bg_color = 0, 20, 50
        self.hero_limit = 3
        self.bullets_allowed = 5
        self.covid_vertical_speed_factor = 1
        self.speedup_scale = 1.1
        self.initialize_dynamic_settings()
    <mask token>
    <mask token>

<mask token>


class Settings:
    <mask token>

    def __init__(self):
        """Initialize the game configs"""
        self.screen_width = 1200
        self.screen_height = 680
        self.bg_color = 0, 20, 50
        self.hero_limit = 3
        self.bullets_allowed = 5
        self.covid_vertical_speed_factor = 1
        self.speedup_scale = 1.1
        self.initialize_dynamic_settings()

    def initialize_dynamic_settings(self):
        """Initializes the configurations that increase during the game"""
        self.hero_speed_factor = 1.5
        self.bullet_speed_factor = 1
        self.covid_horizontal_speed_factor = -10
        self.alien_points = 50
        if randint(0, 1) == 1:
            self.pandemy_direction = 1
        else:
            self.pandemy_direction = -1

    def increase_speed(self):
        """Increase the speed configurations"""
        self.covid_horizontal_speed_factor *= self.speedup_scale
        self.bullet_speed_factor *= self.speedup_scale
        self.hero_speed_factor *= self.speedup_scale

<mask token>


class Settings:
    """A class that have all configurations of the game"""

    def __init__(self):
        """Initialize the game configs"""
        self.screen_width = 1200
        self.screen_height = 680
        self.bg_color = 0, 20, 50
        self.hero_limit = 3
        self.bullets_allowed = 5
        self.covid_vertical_speed_factor = 1
        self.speedup_scale = 1.1
        self.initialize_dynamic_settings()

    def initialize_dynamic_settings(self):
        """Initializes the configurations that increase during the game"""
        self.hero_speed_factor = 1.5
        self.bullet_speed_factor = 1
        self.covid_horizontal_speed_factor = -10
        self.alien_points = 50
        if randint(0, 1) == 1:
            self.pandemy_direction = 1
        else:
            self.pandemy_direction = -1

    def increase_speed(self):
        """Increase the speed configurations"""
        self.covid_horizontal_speed_factor *= self.speedup_scale
        self.bullet_speed_factor *= self.speedup_scale
        self.hero_speed_factor *= self.speedup_scale

<mask token>
from random import randint


class Settings:
    """A class that have all configurations of the game"""

    def __init__(self):
        """Initialize the game configs"""
        self.screen_width = 1200
        self.screen_height = 680
        self.bg_color = 0, 20, 50
        self.hero_limit = 3
        self.bullets_allowed = 5
        self.covid_vertical_speed_factor = 1
        self.speedup_scale = 1.1
        self.initialize_dynamic_settings()

    def initialize_dynamic_settings(self):
        """Initializes the configurations that increase during the game"""
        self.hero_speed_factor = 1.5
        self.bullet_speed_factor = 1
        self.covid_horizontal_speed_factor = -10
        self.alien_points = 50
        if randint(0, 1) == 1:
            self.pandemy_direction = 1
        else:
            self.pandemy_direction = -1

    def increase_speed(self):
        """Increase the speed configurations"""
        self.covid_horizontal_speed_factor *= self.speedup_scale
        self.bullet_speed_factor *= self.speedup_scale
        self.hero_speed_factor *= self.speedup_scale

# -*- coding: utf-8 -*-
"""
Created on Mon Apr 28 2020
@author: Cassio (chmendonca)
Description: This class was created as a container to the game characteristics
and configurations
"""
from random import randint

class Settings():
    """A class that have all configurations of the game"""
    
    def __init__(self):
        """Initialize the game configs"""
        #Screen configuration
        self.screen_width = 1200
        self.screen_height = 680
        self.bg_color = (0,20,50)
        
        #Hero configuration
        #Increase of ship speed to 1.5 pixels instead of 1
        #self.hero_speed_factor = 1.5
        self.hero_limit = 3
        
        #Syringes (bullets) configuration
        #self.bullet_speed_factor = 1
        self.bullets_allowed = 5
        
        #Covids configuration
        self.covid_vertical_speed_factor = 1
        #The value of the movement is negative because it is increasing
        #   from the right to the left
        #self.covid_horizontal_speed_factor = -10
        #The pandemy direction equals 1 means to the bottom; -1 means to the top
        # The randint ensures an randomly direction when starting the game
        #if randint(0,1) == 1:
        #    self.pandemy_direction = 1
        #else:
        #    self.pandemy_direction = -1

        #The rate that increases the game speed
        self.speedup_scale = 1.1
        
        self.initialize_dynamic_settings()

    def initialize_dynamic_settings(self):
        """Initializes the configurations that increase during the game"""
        self.hero_speed_factor = 1.5
        self.bullet_speed_factor = 1
        self.covid_horizontal_speed_factor = -10
        self.alien_points = 50
        #The pandemy direction equals 1 means to the bottom; -1 means to the top
        # The randint ensures an randomly direction when starting the game
        if randint(0,1) == 1:
            self.pandemy_direction = 1
        else:
            self.pandemy_direction = -1

    def increase_speed(self):
        """Increase the speed configurations"""
        self.covid_horizontal_speed_factor *= self.speedup_scale
        self.bullet_speed_factor *= self.speedup_scale
        self.hero_speed_factor *= self.speedup_scale