-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStage.py
More file actions
31 lines (24 loc) · 822 Bytes
/
Stage.py
File metadata and controls
31 lines (24 loc) · 822 Bytes
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
from graphics import Image,Point,Rectangle
from physics2 import *
from graphics import Image,Point,Rectangle
class Stage(object):
def __init__(self, window):
self.pos1 = Point(0, 0)
self.pos2 = Point(0, 0)
self.platform1 = None
self.hb = None
def regStage(self,window):
background = Image(Point(600,400),"ImagesAndSprites/StartScreen.gif")
background.draw(window)
self.platform1 = Image(Point(600,675),"ImagesAndSprites/blue.gif")
self.platform1.draw(window)
self.pos1 = Point(400,700)
self.pos2 = Point(800,700)
def getPos1(self):
return self.pos1
def getPos2(self):
return self.pos2
def regStageCreateHB(self):
self.hb = hitbox(self.platform1,0)
def getHB(self):
return self.hb