def create_cat(self):
inertia = pymunk.moment_for_circle(1, 0, 14, (0, 0))
self.cat_body = pymunk.Body(1, inertia)
self.cat_body.position = 800, 200
self.cat_shape = pymunk.Circle(self.cat_body, 30)
self.cat_shape.color = THECOLORS["orange"]
self.car_shape.elasticity = 1.0
self.cat_shape.angle = 0.5
self.space.add(self.cat_body, self.cat_shape)
评论列表
文章目录