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

Good night, and in case I don't see you, Good morning, and Good afternoon!
@salukļ¼Œaha, The Truman Show! I suddenly found that Jim Carrey should be the founder of internet celebrity :)
Yeah for sure. Jim escaped his artificial reality, and here we are, working hard to create them ;)
Hi, has anyone run this successfully on Linux? I changed the filenames to match case using the following command lines:


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?

@Cosmologicon ,Thanks for the feedback, I seldom use Linux and I did not why this happens, I am sure my code is OK, all that is caused by pyglet :) Just joking, I test my code in Linux through VM and it crashes either. I do not know how to solve it, maybe change my `pyglet ` directory into the latest pyglet version? I do not know... Sorry my project maybe only suitable for Windows, because I use a lot of `Windows` class, it is a windows game for sure! :)   
Yeah I couldn't run it on Mac either. I may swing back and try it on my windows box if I have time!