python - Pysdl2 stuck in tutorial -
i have been doing tutorial http://pysdl2.readthedocs.org/en/latest/tutorial/pong.html , stuck in create world part of tutorial (i appreciate if can wrap or give me source code tutorial seem not understand airplanes properly, appreciate source code if possible because me understand whole thing , not have come every step stuck in )
here wrote far got in adding game world part:
(here picture of code because code sample thing didnt work correctly)
, here error
traceback (most recent call last):
file "c:/path/file.py", line 50, in
sys.exit(run()) file "c:/path/file.py", line 30, in run
spriterenderer = softwarerenderer(window) nameerror: name 'window' not defined
i appreciate , if possible source tutorial
the source tutorial in examples directory pysdl2 installation. me, in
/usr/local/lib/python2.7/site-packages/sdl2/examples/pong.py trying recreate example following instructions difficult. want @ finished tutorial without installing pysdl2, here a link source
Comments
Post a Comment