예제 #1
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     self.centerX = 450
     self.centerY = 220
     cnt = 0
     i = 0
     while i < math.pi * 2:
         self.stars.append(Star(self.centerX + 200 * math.sin(i),
                                self.centerY + 200 * math.cos(i), "red"))
         i += math.pi / 6
         self.stars.append(Star(self.centerX + 200 * math.sin(i),
                                self.centerY + 200 * math.cos(i), "red"))
         i += math.pi / 6
         cnt += 1
         if cnt == 2 or cnt == 4:
             self.stars.append(Star(self.centerX + 200 * math.sin(i),
                                    self.centerY + 200 * math.cos(i)))
         elif cnt == 1:
             self.stars.append(Star(self.centerX + 200 * math.sin(i),
                                    self.centerY + 200 * math.cos(i), "green"))
         else:
             self.stars.append(Star(self.centerX + 200 * math.sin(i),
                                    self.centerY + 200 * math.cos(i), "red"))
         i += math.pi / 6
예제 #2
0
파일: level15.py 프로젝트: jhasse/tudi
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = [MovingStar(170, 200, "red"), MovingStar(750, 440, "red")]
     for x in range(170, 750, 70):
         self.stars.append(Star(x, 280))
         self.stars.append(Star(x, 360))
     self.movingStars = self.stars[:2]
예제 #3
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     self.centerX = 600
     self.centerY = 230
     i = 0
     while i < math.pi * 2:
         self.stars.append(Star(self.centerX + 200 * math.sin(i),
                                self.centerY + 200 * math.cos(i), "green"))
         i += math.pi / 6
         self.stars.append(Star(self.centerX + 200 * math.sin(i),
                                self.centerY + 200 * math.cos(i), "red"))
         i += math.pi / 6
         self.stars.append(Star(self.centerX + 200 * math.sin(i),
                                self.centerY + 200 * math.cos(i), "red"))
         i += math.pi / 6
     self.stars1 = self.stars[::]
     self.centerX2 = 300
     self.centerY2 = 220
     i = 0
     while i < math.pi * 2:
         self.stars.append(Star(self.centerX2 + 200 * math.sin(i),
                                self.centerY2 + 200 * math.cos(i)))
         i += math.pi / 6
         self.stars.append(Star(self.centerX2 + 200 * math.sin(i),
                                self.centerY2 + 200 * math.cos(i)))
         i += math.pi / 6
         self.stars.append(Star(self.centerX2 + 200 * math.sin(i),
                                self.centerY2 + 200 * math.cos(i), "red"))
         i += math.pi / 6
     self.stars2 = self.stars[len(self.stars1):]
예제 #4
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = [Star(100, 200, "red"  ), Star(200, 200, "red"  ), Star(300, 200, "blue" ), Star(400, 200, "red"  ), Star(500, 200, "red"  ), Star(600, 200, "red"  ), Star(700, 200, ),
                   Star(100, 300, "red"  ), Star(200, 300, "green"), Star(300, 300, "red"  ), Star(400, 300, "green"), Star(500, 300, "red"  ), Star(600, 300, "red"  ), Star(700, 300, "red"  ),
                   Star(100, 400, "green"), Star(200, 400, "red"  ), Star(300, 400, "green"), Star(400, 400, "red"  ), Star(500, 400, "blue" ), Star(600, 400, "red"  ), Star(700, 400, "red"  )]
     for star in self.stars:
         star.x += 30
예제 #5
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = [Star(450, 440), Star(450, 360), Star(370, 360), Star(530, 360), Star(370, 280), Star(530, 280), Star(290, 280), Star(610, 280),
                   Star(290, 200), Star(610, 200),
                   Star(370, 200, "red"), Star(530, 200, "red"), Star(450, 280, "red"),
                   Star(370, 440, "red"), Star(530, 440, "red"), Star(610, 360, "red"), Star(290, 360, "red"),
                   Star(690, 280, "red"), Star(210, 280, "red")]
예제 #6
0
 def __init__(self):
     LevelBase.__init__(self)
     for x in range(170, 750, 70):
         if x != 450 and x != 520:
             self.stars.append(Star(x, 280))
             self.stars.append(Star(x, 360))
     self.stars += [MovingStar(250, 200, 400, 400), MovingStar(750, 440, 500, 300), MovingStar(485, 200, 485, 400)]
     self.movingStars = self.stars[-3:]
예제 #7
0
파일: level5.py 프로젝트: hyunyang-seo/tudi
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     for y in range(250, 450, 80):
         self.stars.append(Star(200, y, "blue"))
         self.stars.append(Star(280, y, "blue"))
         self.stars.append(Star(500, y, "red"))
         self.stars.append(Star(580, y, "red"))
예제 #8
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     for x in range(170, 770, 320):
         self.stars.append(Star(x, 410))
         self.stars.append(Star(x + 160, 400, "red"))
     for x in range(170, 770, 160):
         self.stars.append(Star(x, 190, "red"))
예제 #9
0
파일: level18.py 프로젝트: jhasse/tudi
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     for y in range(160, 450, 80):
         self.stars.append(Star(730, y, "red"))
     for x in range(380, 700, 80):
         self.stars.append(Star(x, 100))
         self.stars.append(Star(x, 180))
     self.boxes = [Box(280, 250, 380, 50)]
예제 #10
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     for y in range(-760, 450, 80):
         self.stars.append(Star(730, y, "red"))
     for x in range(40, 300, 80):
         self.stars.append(Star(x, -300, "blue"))
         self.stars.append(Star(x, -380))
     self.boxes = [Box(280, 280, 250, 30), Box(490, 60, 170, 30), Box(20, -150, 200, 30)]
예제 #11
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     for x in range(170, 770, 320):
         self.stars.append(Star(x, 400))
         self.stars.append(Star(x, 330, "blue"))
         self.stars.append(Star(x + 160, 400, "red"))
     for x in range(170, 700, 80):
         self.stars.append(Star(x, 200, "red"))
예제 #12
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = [MovingStarH(250, 200), MovingStarH(750, 440), MovingStarV(190, 190), MovingStarV(485, 400)]
     for x in range(310, 750, 70):
         if x != 450 and x != 520:
             self.stars.append(Star(x, 280))
             self.stars.append(Star(x, 360))
     self.movingStarsH = self.stars[:2]
     self.movingStarsV = self.stars[2:4]
예제 #13
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     for y in range(-160, 450, 80):
         self.stars.append(Star(730, y, "red"))
     for x in range(380, 700, 80):
         self.stars.append(Star(x, -300))
         self.stars.append(Star(x, -380))
     self.boxes = [Box(350, 300, 300, 50), Box(10, 70, 200, 50), Box(280, -150, 380, 50)]
예제 #14
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = [Star(170,190,"blue"), Star(170, 270, "red"), Star(170, 350, "red"), Star(170, 430, "red"),
                   Star(460, 350, "red"), Star(460, 430, "red"), Star(540, 350, "red"), Star(540, 430, "red"),
                   Star(380, 350, "green"), Star(380, 430, "green")]
     self.boxes = [Box(290, 245, 280, 30)]
     for y in range(-200, 300, 80):
         self.stars.append(Star(720, y, "red"))
     for x in range(320, 650, 80):
         self.stars.append(Star(x, 160))
예제 #15
0
파일: level9.py 프로젝트: hyunyang-seo/tudi
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     for y in range(270, 480, 80):
         self.stars.append(Star(250, y, "red"))
         self.stars.append(Star(650, y, "red"))
         self.stars.append(Star(330, y))
         self.stars.append(Star(410, y))
         self.stars.append(Star(490, y))
         self.stars.append(Star(570, y))
예제 #16
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = [Star(350, 200, "red"), Star(550, 200, "red"), Star(750, 200, "red")]
     for y in range(170, 440, 70):
         self.stars.append(Star(150, y))
         self.stars.append(Star(250, y))
         self.stars.append(Star(450, y))
         self.stars.append(Star(650, y))
     self.moveup = False
     self.movingStars = self.stars[:3]
예제 #17
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     for x in range(170, 770, 320):
         self.stars.append(Star(x, 400))
         self.stars.append(Star(x + 160, 400, "blue"))
     for x in range(170, 770, 160):
         self.stars.append(Star(x, 200, "red"))
     for y in range(200, 401, 100):
         self.stars.append(Star(750, y, "red"))
예제 #18
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = [Star(450, 220, "blue")]
     self.centerX = 450
     self.centerY = 220
     i = 0
     while i < math.pi * 2:
         self.stars.append(Star(self.centerX + 200 * math.sin(i),
                                self.centerY + 200 * math.cos(i), "red"))
         i += math.pi / 6
         self.stars.append(Star(self.centerX + 200 * math.sin(i),
                                self.centerY + 200 * math.cos(i)))
         i += math.pi / 6
예제 #19
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     for y in range(-360, 450, 80):
         self.stars.append(Star(730, y, "red"))
     for x in range(40, 650, 80):
         self.stars.append(Star(x, -300))
         self.stars.append(Star(x, -380, "green"))
     for x in range(40, 650, 80):
         self.stars.append(Star(x, -80, "green"))
         self.stars.append(Star(x, 0,))
     self.boxes = [Box(480, 280, 200, 30), Box(490, 60, 170, 30), Box(20, -170, 200, 30)]
     self.movingBox = self.boxes[1]
     self.moveLeft = True
예제 #20
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     for x in range(240, 650, 80):
         self.stars.append(Star(x, -500))
         self.stars.append(Star(x, -580, "green"))
     for x in range(240, 650, 80):
         self.stars.append(Star(x, 0, "red"))
         self.stars.append(Star(x, -80, "red"))
         self.stars.append(Star(x, -160, "red"))
         self.stars.append(Star(x, -240, "red"))
     self.boxes = [Box(80, 60, 100, 30), Box(300, -320, 100, 30), Box(80, -170, 100, 30),Box(80, 280, 100, 30), Box(500, 50, 30, 430) ]
     self.movingBoxes = self.boxes[:2]
     self.moveLeft = True
예제 #21
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = [Star(50, -75, "blue")]
     for x in range(240, 650, 80):
         self.stars.append(Star(x, -500))
     for x in range(240, 650, 80):
         self.stars.append(Star(x, -280, "red"))
     for y in range(-160, 50, 80):
         self.stars.append(Star(470, y, "red"))
     self.boxes = [Box(80, -350, 20, 40), Box(300, -350, 20, 40), Box(0, -30, 110, 30), Box(50, 280, 80, 30), Box(400, 50, 30, 430), Box(0, -150, 100, 30) ]
     self.movingBoxes = self.boxes[:2]
     self.moveLeft = True
     for x in range(500, 750, 80):
         for y in range(260, 430, 80):
             self.stars.append(Star(x, y, "blue"))
예제 #22
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     for x in range(150, 500, 70):
         self.stars.append(Star(x, 170, "blue"))
         self.stars.append(Star(x, 240))
     for x in range(500, 680, 70):
         self.stars.append(Star(x, 170, "red"))
         self.stars.append(Star(x, 240, "red"))
     for x in range(220, 500, 70):
         self.stars.append(Star(x, 350, "red"))
         self.stars.append(Star(x, 420, "red"))
     for x in range(500, 750, 70):
         self.stars.append(Star(x, 350))
         self.stars.append(Star(x, 420, "blue"))
예제 #23
0
파일: level1.py 프로젝트: hyunyang-seo/tudi
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
예제 #24
0
파일: level7.py 프로젝트: hyunyang-seo/tudi
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = [Star(280, 190, "red"), Star(480, 190, "red"), Star(680, 190, "red")]
     for x in range(170, 770, 80):
         self.stars.append(Star(x, 400))
예제 #25
0
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = [ Star(720, 190), Star(60, -180), Star(300, -1000, "blue"), Star(380, -1000, "blue"), Star(460, -1000, "blue"),
                    Star(750, -510, "red")]
     self.boxes = [ Box(770, -400, 20, 860), Box(700, 240, 70, 20), Box(400, 5, 70, 20), Box(0, -120, 250, 20), Box(0, -320, 140, 20),
                    Box(100, -520, 600, 20), Box(100, -720, 600, 20), Box(770, -1500, 20, 920) ]
예제 #26
0
파일: level3.py 프로젝트: hyunyang-seo/tudi
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     for x in range(170, 770, 160):
         for y in range(250, 430, 160):
             self.stars.append(Star(x, y, "blue"))
예제 #27
0
파일: level4.py 프로젝트: hyunyang-seo/tudi
    def __init__(self):
        LevelBase.__init__(self)
        self.stars = [Star(300, 300, "red"), Star(220, 400), Star(300, 400, "red"), Star(390, 400),
		              Star(550, 300, "red"), Star(470, 400), Star(550, 400, "red"), Star(640, 400),]
예제 #28
0
파일: level2.py 프로젝트: hyunyang-seo/tudi
 def __init__(self):
     LevelBase.__init__(self)
     self.stars = []
     for x in range(170, 650, 80):
         for y in range(250, 430, 80):
             self.stars.append(Star(x, y))
예제 #29
0
파일: level37.py 프로젝트: jhasse/tudi
 def __init__(self):
     LevelBase.__init__(self)
     for y in range(200, 450, 80):
         self.stars.append(Star(500, y, "red"))