def setup_ground(self): """Creates collideable, invisible rectangles over top of the ground for sprites to walk on""" ground_rect1 = ground_step.Ground(0, 200, 2953, 60) ground_rect2 = ground_step.Ground(3048, 200, 635, 60) ground_rect3 = ground_step.Ground(3819, 200, 2735, 60) ground_rect4 = ground_step.Ground(6647, 200, 2300, 60) self.ground_group = pygame.sprite.Group(ground_rect1, ground_rect2, ground_rect3, ground_rect4)
def setup_ground(): """Creates collideable, invisible rectangles over top of the ground for sprites to walk on""" ground_rect1 = ground_step.Ground(0, 200, 1048, 24) ground_rect2 = ground_step.Ground(1088, 200, 239, 24) ground_rect3 = ground_step.Ground(1374, 200, 1022, 24) ground_rect4 = ground_step.Ground(2431, 200, 910, 24) ground_group = pygame.sprite.Group(ground_rect1, ground_rect2, ground_rect3, ground_rect4) return ground_group
def setup_pipes(self): """Create collideable rects for all the pipes""" pipe1 = ground_step.Ground(393, 170, 35, 30) pipe2 = ground_step.Ground(560, 155, 35, 45) pipe3 = ground_step.Ground(1973, 366, 83, 170) pipe4 = ground_step.Ground(2445, 366, 83, 170) pipe5 = ground_step.Ground(6989, 452, 83, 82) pipe6 = ground_step.Ground(7675, 452, 83, 82) self.pipe_group = pygame.sprite.Group(pipe1, pipe2, pipe3, pipe4, pipe5, pipe6)
def setup_pipes(): """Create collideable rects for all the pipes""" pipe1 = ground_step.Ground(395, 170, 35, 30) pipe2 = ground_step.Ground(560, 155, 35, 30) pipe3 = ground_step.Ground(688, 140, 30, 60) pipe4 = ground_step.Ground(863, 140, 30, 60) pipe5 = ground_step.Ground(2558, 170, 30, 30) pipe6 = ground_step.Ground(2816, 170, 30, 30) pipe_group = pygame.sprite.Group(pipe1, pipe2, pipe3, pipe4, pipe5, pipe6) return pipe_group
def setup_steps(): """Create collideable rects for all the steps""" step1 = ground_step.Ground(2097, 183, 16, 16) # 16 step2 = ground_step.Ground(2110, 167, 16, 32) step3 = ground_step.Ground(2126, 151, 16, 48) step4 = ground_step.Ground(2142, 135, 16, 64) step5 = ground_step.Ground(6001, 366, 40, 176) step6 = ground_step.Ground(6044, 408, 40, 40) step7 = ground_step.Ground(6087, 452, 40, 40) step8 = ground_step.Ground(6130, 495, 40, 40) step9 = ground_step.Ground(6345, 495, 40, 40) step10 = ground_step.Ground(6388, 452, 40, 40) step11 = ground_step.Ground(6431, 409, 40, 40) step12 = ground_step.Ground(6474, 366, 40, 40) step13 = ground_step.Ground(6517, 366, 40, 176) step14 = ground_step.Ground(6644, 366, 40, 176) step15 = ground_step.Ground(6687, 408, 40, 40) step16 = ground_step.Ground(6728, 452, 40, 40) step17 = ground_step.Ground(6771, 495, 40, 40) step18 = ground_step.Ground(7760, 495, 40, 40) step19 = ground_step.Ground(7803, 452, 40, 40) step20 = ground_step.Ground(7845, 409, 40, 40) step21 = ground_step.Ground(7888, 366, 40, 40) step22 = ground_step.Ground(7931, 323, 40, 40) step23 = ground_step.Ground(7974, 280, 40, 40) step24 = ground_step.Ground(8017, 237, 40, 40) step25 = ground_step.Ground(8060, 194, 40, 40) step26 = ground_step.Ground(8103, 194, 40, 360) step27 = ground_step.Ground(8488, 495, 40, 40) step_group = pygame.sprite.Group(step1, step2, step3, step4, step5, step6, step7, step8, step9, step10, step11, step12, step13, step14, step15, step16, step17, step18, step19, step20, step21, step22, step23, step24, step25, step26, step27) return step_group