Merge pull request #25 from q526933815/master

Update 图形用户界面和游戏开发.md
pull/41/head
骆昊 2019-05-04 10:17:51 +08:00 committed by GitHub
commit d4b6a8aeb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ class Ball(object):
if distance < self.radius + other.radius \ if distance < self.radius + other.radius \
and self.radius > other.radius: and self.radius > other.radius:
other.alive = False other.alive = False
a self.radius = self.radius + int(other.radius * 0.146) self.radius = self.radius + int(other.radius * 0.146)
def draw(self, screen): def draw(self, screen):
"""在窗口上绘制球""" """在窗口上绘制球"""