PyWeek - A demo that works better than the last one
I've patched a bunch of cocos so hopefully this version will work on more people's computers:stalk-2.zip
Move with WASD or arrows. Aim with mouse, shoot with LMB. No, there's nothing to shoot at yet.
Please let me know what you think.
— richard on 2010/03/30 03:28 of To-to-ro
Comments: (log in to comment)

By georgek on 2010/03/30 03:38:
Strange error:>C:\Python26\pythonw -u "run_game.pyw"
Traceback (most recent call last):
File "run_game.pyw", line 4, in <module>
main.main()
File "C:\Documents and Settings\george\My Documents\downloads\stalk-2\gamelib\main.py", line 11, in main
cocos.director.director.init(width=500, height=500, config=config)
File "C:\Documents and Settings\george\My Documents\downloads\stalk-2\cocos\director.py", line 346, in init
self.window = window.Window( *args, **kwargs )
File "C:\Documents and Settings\george\My Documents\downloads\stalk-2\pyglet\window\win32\__init__.py", line 131, in __init__
super(Win32Window, self).__init__(*args, **kwargs)
File "C:\Documents and Settings\george\My Documents\downloads\stalk-2\pyglet\window\__init__.py", line 512, in __init__
config = screen.get_best_config(config)
File "C:\Documents and Settings\george\My Documents\downloads\stalk-2\pyglet\canvas\base.py", line 139, in get_best_config
raise window.NoSuchConfigException()
pyglet.window.NoSuchConfigException
By georgek on 2010/03/30 03:45:
Sorry, no edit on comments and I posted a little hastily. I just edited out config=config in the director.init call, and it works fine. Great rail shooter concept! Really sweet visuals.By neko on 2010/03/30 04:06:
Looks interesting.By richard on 2010/03/30 04:44:
Ah, you probably can't do multisampling (anti-aliasing). I'll put in code to handle that.By objarni on 2010/03/30 06:02:
Looks cool! Reminds me of "Jack and the Beanstalk" for some reason ;)When the left mouse button is pressed repeatedly (aka shooting a lot), the movement of the aim (moving mouse around) seems impaired or jaggy.
By richard on 2010/03/30 07:06:
I think maybe that released version didn't include the on_mouse_drag handler ... if you hold the mouse button down and move the mouse does the target star move?By objarni on 2010/03/30 07:16:
If I hold down the mouse button, and move the mouse, the target star stays still.By richard on 2010/03/30 08:05:
Yep, that means version 2 didn't include the on_mouse_drag handler. The current version does so you won't have the same issue.