与矩阵C#中的对象碰撞

时间:2017-06-21 11:03:18

标签: c#

我正在C#为学校创建Atari Breakout。但是我坚持与顶部的块碰撞。块是标签。球的y位置是yBall。球的x位置是xBall。

我的问题是:如何让球与所有棋盘碰撞并移除球碰撞的挡块? 这是我的代码:

LevelGenerator:

Traceback (most recent call last):
  File "setup.py", line 19, in <module>
    setup_requires=['py2app'],
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/Library/Python/2.7/site-packages/py2app-0.14-py2.7.egg/py2app/build_app.py", line 825, in run
    self._run()
  File "/Library/Python/2.7/site-packages/py2app-0.14-py2.7.egg/py2app/build_app.py", line 1040, in _run
    self.run_normal()
  File "/Library/Python/2.7/site-packages/py2app-0.14-py2.7.egg/py2app/build_app.py", line 1253, in run_normal
    o = __import__(m1, fromlist=[m2])
  File "/Library/Python/2.7/site-packages/PyQt5/uic/port_v3/ascii_upper.py", line 24, in <module>
    _ascii_trans_table = bytes.maketrans(b'abcdefghijklmnopqrstuvwxyz',
AttributeError: type object 'str' has no attribute 'maketrans'
holysordeiMac:Spider_reddit holysor$ 

提前致谢!!!

0 个答案:

没有答案