Exemplo n.º 1
0
 def flamethrower(self):
     self.name = "flamethrower"
     self.displayName = "Flamethrower"
     self.damage = 0.5
     self.range = 300
     self.speed = 20
     self.firingSpeed = 10
     self.magSize = 100
     self.reloadTime = 10
     self.power = 6
     self.color = (252, 93, 25)
     self.type = damageTypes.get("fire")
     self.effect = "burning"
     self.effectDamage = 0.5
     self.effectDuration = 10
Exemplo n.º 2
0
 def plasmaCanone(self):
     self.name = "plasmaCanone"
     self.displayName = "Plasma Canone"
     self.damage = 10
     self.range = 500
     self.speed = 200
     self.firingSpeed = 300
     self.magSize = 8
     self.reloadTime = 300
     self.power = 20
     self.color = (64, 56, 201)
     self.type = damageTypes.get("plasma")
     self.effect = "shocked"
     self.effectDamage = 1
     self.effectDuration = 3
Exemplo n.º 3
0
 def sniper(self):
     self.name = "sniper"
     self.displayName = "Sniper"
     self.damage = 10
     self.range = 1000
     self.speed = 350
     self.firingSpeed = 330
     self.magSize = 5
     self.reloadTime = 330
     self.power = 3
     self.color = (100, 100, 100)
     self.type = damageTypes.get("physical")
     self.effect = None
     self.effectDamage = 0
     self.effectDuration = 0
Exemplo n.º 4
0
 def rifle(self):
     self.name = "rifle"
     self.displayName = "Rifle"
     self.damage = 2
     self.range = 650
     self.speed = 200
     self.firingSpeed = 40
     self.magSize = 30
     self.reloadTime = 40
     self.power = 2
     self.color = (100, 100, 100)
     self.type = damageTypes.get("physical")
     self.effect = None
     self.effectDamage = 0
     self.effectDuration = 0
Exemplo n.º 5
0
 def laserRifle(self):
     self.name = "laserRifle"
     self.displayName = "Laser Rifle"
     self.damage = 4
     self.range = 600
     self.speed = 400
     self.firingSpeed = 80
     self.magSize = 20
     self.reloadTime = 80
     self.power = 5
     self.color = (255, 87, 196)
     self.type = damageTypes.get("laser")
     self.effect = "burning"
     self.effectDamage = 1
     self.effectDuration = 2
Exemplo n.º 6
0
downTriangle = [py.Vector2(0, 0), py.Vector2(20, 0), py.Vector2(10, 10)]
upTriangle = [py.Vector2(0, 10), py.Vector2(20, 10), py.Vector2(10, 0)]

hudMode = 0
waveCooldown = 0
oldLevel = 0
maxChar = 0
time = 0
weaponIndex = 0
armorIndex = 0
baseSpeed = 150  # pixel/s
towerBaseCost = 10

# Weapon Types

electric = damageTypes.get("electric")
fire = damageTypes.get("fire")
physical = damageTypes.get("physical")
laser = damageTypes.get("laser")
plasma = damageTypes.get("plasma")

# Define Classes


class point:
    def __init__(self, pos):
        self.pos = pos

    def draw(self, offset):
        self.newPos = self.pos - offset
Exemplo n.º 7
0
 def electro(self):
     self.displayName = "Electric Armor"
     self.color = (64, 56, 201)
     self.type = damageTypes.get("electric")
     
Exemplo n.º 8
0
 def fire(self):
     self.displayName = "Fire Armor"
     self.color = (252, 93, 25)
     self.type = damageTypes.get("fire")
Exemplo n.º 9
0
 def physical(self):
     self.displayName = "Physical Armor"
     self.color = (100, 100, 100)
     self.type = damageTypes.get("physical")