-
Notifications
You must be signed in to change notification settings - Fork 0
/
gameover.py
43 lines (31 loc) · 1.01 KB
/
gameover.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
#-------------------------------------------------------------------
# Project: Zom-botapacolyse
# Name: gameover.py
# Purpose: After death, game over
#
# Authors: Michael Simon, Matt Hahn, Tim Richter
# Main Author: Michael Simon
#
# Created: 02/14/13
# Copyright: (c) Michael Simon 2012
# License: GSL
#-------------------------------------------------------------------
import pygame, math
class GameOver():
# Attributes or Variables
# surface
# rect
# screenWidth
# screenHeight
# Methods or Functions
def __init__(self, image, position, screenSize):
self.surface = pygame.image.load(image)
self.rect = self.surface.get_rect()
self.radius = self.rect.width/2
self.place(position)
self.screenWidth = screenSize[0]
self.screenHeight = screenSize[1]
def __str__(self):
pass
def place(self, position):
self.rect = self.rect.move(position)