Goodbye to pyweek and goodnight to myself :)
Well, several hours ago, I tend to use tomorrow to carefully polish my game , but due to some reason. I have to finish my pyweek work tonight. This is my 6th pyweek, how time flies! I know I am quite quite young in pyweek, Tee would laugh :)I read other people's diary, some game seemed quite awesome, I couldn't wait to check your code, especially Ivan :)
OK, just say something about my game, my game is awesome too :) It is a multi window game, it is .....(well, I think I should let the game speak to itself)
OK, good night to myself, good luck to you guys! :)
(log in to comment)
Comments
for n in a b c d e f g ; do mv resources/sound/${n}4.wav resources/sound/`echo $n | tr abcdefg ABCDEFG}`4.wav ; done
for n in a b c d e f g ; do mv resources/sound/${n}5.wav resources/sound/`echo $n | tr abcdefg ABCDEFG}`5.wav ; done
But now I get the following error:
christopher@earthbound:~/Downloads/pyweek26-master$ python3 compiano.py
pygame 1.9.5.dev0
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "compiano.py", line 4, in <module>
main()
File "/home/christopher/Downloads/pyweek26-master/data/main.py", line 45, in main
pyglet.app.run()
File "/home/christopher/Downloads/pyweek26-master/pyglet/app/__init__.py", line 138, in run
event_loop.run()
File "/home/christopher/Downloads/pyweek26-master/pyglet/app/base.py", line 142, in run
self._run()
File "/home/christopher/Downloads/pyweek26-master/pyglet/app/base.py", line 154, in _run
timeout = self.idle()
File "/home/christopher/Downloads/pyweek26-master/pyglet/app/base.py", line 275, in idle
redraw_all = self.clock.call_scheduled_functions(dt)
File "/home/christopher/Downloads/pyweek26-master/pyglet/clock.py", line 346, in call_scheduled_functions
item.func(now - item.last_ts, *item.args, **item.kwargs)
File "/home/christopher/Downloads/pyweek26-master/data/components.py", line 19, in update
self.current_scene.update(dt)
File "/home/christopher/Downloads/pyweek26-master/data/scenes.py", line 23, in update
w.update(dt)
File "/home/christopher/Downloads/pyweek26-master/data/components.py", line 70, in update
x,y = self.get_location()
File "/home/christopher/Downloads/pyweek26-master/pyglet/window/xlib/__init__.py", line 584, in get_location
self._get_root(),
File "/home/christopher/Downloads/pyweek26-master/pyglet/window/xlib/__init__.py", line 461, in _get_root
byref(attributes))
ctypes.ArgumentError: argument 2: <class 'TypeError'>: wrong type
I don't understand the error. Any help?
saluk on 2018/10/26 22:33:
Good night, and in case I don't see you, Good morning, and Good afternoon!