MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / Display

Class Display

projects/Space Shooter/main.py:5–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4
5class Display:
6 pygame.init()
7 windows = pygame.display.set_mode((640, 480))
8 pygame.display.set_caption("Space Shooter")
9 clock = pygame.time.Clock()
10
11 background = pygame.image.load("background.png")
12 font = pygame.font.Font("SHPinscher-Regular.otf", 35)
13
14 spaceship = pygame.image.load("spaceship.png")
15 enemy_spaceship = pygame.image.load("enemy spaceship.png")
16 enemy_missile_craft = pygame.image.load("missile spaceship.png")
17 laser = pygame.image.load("bullet.png")
18 enemy_laser = pygame.image.load("enemy laser.png")
19 missile = pygame.image.load("missile.png")
20
21
22class Text:

Callers 15

objectsMethod · 0.70
objectsMethod · 0.70
__init__Method · 0.70
collision_boxMethod · 0.70
__init__Method · 0.70
objectsMethod · 0.70
collision_boxMethod · 0.70
backgroundMethod · 0.70
score_boardMethod · 0.70
insert_laserMethod · 0.70
fire_laserMethod · 0.70
enemies_movementMethod · 0.70

Calls 1

initMethod · 0.80

Tested by

no test coverage detected