-
Notifications
You must be signed in to change notification settings - Fork 0
/
enemies.py
45 lines (36 loc) · 1.2 KB
/
enemies.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import pygame
from base_classes import Enemy
class EasyEnemy(Enemy):
def __init__(self, *args):
super().__init__(*args)
self.image = pygame.image.load("images/enemies/EasyEnemy.png")
self.speed = 3
self.health = 1
self.score_value = 10
self.chance_to_drop = 1
class MediumEnemy(Enemy):
def __init__(self, *args):
super().__init__(*args)
self.image = pygame.image.load("images/enemies/MediumEnemy.png")
self.speed = 3
self.health = 3
self.chance_to_drop = 1
self.score_value = 50
class HardEnemy(Enemy):
def __init__(self, *args):
super().__init__(*args)
self.image = pygame.image.load("images/enemies/HardEnemy.png")
self.speed = 2
self.health = 5
self.chance_to_drop = 1
self.score_value = 100
class Boss(Enemy):
def __init__(self, *args):
super().__init__(*args)
self.image = pygame.image.load("images/enemies/Boss.png")
self.rect = self.image.get_rect()
self.rect.center = (self.main_game.screen_width / 2, 0)
self.speed = 1
self.health = 500
self.chance_to_drop = 1
self.score_value = 5000