def __init__(self): Scene.__init__(self, gravity=9.8, timestep=0.0165 / 4, frame_skip=4) self.score_left = 0 self.score_right = 0 self.ball_x = 0 # Add by xian, record information self.score_board = {"left": {"oppo_miss_start": 0, "oppo_slow_ball": 0, "oppo_miss_catch": 0, "oppo_double_hit": 0, "not_finish": 0}, "right": {"oppo_miss_start": 0, "oppo_slow_ball": 0, "oppo_miss_catch": 0, "oppo_double_hit": 0}, }
def __init__(self): Scene.__init__(self, gravity=9.8, timestep=0.0165 / 4, frame_skip=4) self.score_left = 0 self.score_right = 0