-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstaticScreens.py
44 lines (39 loc) · 1.39 KB
/
staticScreens.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
import pygame
import Constants
class HomeScreen(pygame.sprite.Sprite):
def __init__(self):
super().__init__()
self.image = pygame.image.load("ressources/homescreen.png")
#self.image = pygame.transform.scale(self.image, (640, 360))
self.rect = self.image.get_rect()
self.rect.x = 0
self.rect.y = 0
class MapImage(pygame.sprite.Sprite):
def __init__(self):
super().__init__()
self.image = pygame.image.load("ressources/map.png")
self.rect = self.image.get_rect()
self.rect.x = 0
self.rect.y = 0
class GameOver(pygame.sprite.Sprite):
def __init__(self):
super().__init__()
self.image = pygame.image.load("ressources/gameover.png")
self.image = pygame.transform.scale(self.image, (1280, 720))
self.rect = self.image.get_rect()
self.rect.x = 0
self.rect.y = 0
class LowerBar(pygame.sprite.Sprite):
def __init__(self):
super().__init__()
self.image = pygame.image.load("ressources/Bar.png")
self.rect = self.image.get_rect()
self.rect.x = 0
self.rect.y = Constants.GAME_AREA_HEIGHT()
class NextEnnemy(pygame.sprite.Sprite):
def __init__(self):
super().__init__()
self.image = pygame.image.load("ressources/next.png")
self.rect = self.image.get_rect()
self.rect.x = 0
self.rect.y = 0