|Making a game soon||Ben||9/7/12 7:35 PM|
Also, I'm open to suggestions for a game type that would be ideal to create in this time frame.
|Re: [pyjs-users] Making a game soon||C Anthony Risinger||9/9/12 11:20 PM|
On Fri, Sep 7, 2012 at 9:35 PM, Ben <compani...@gmail.com> wrote:i don't think this would be too difficult to implement -- i take it
you'd be using Canvas()? i don't have a tremendous amount of
experience with Canvas myself (though this is likely to change rather
soon), but i recently spent ~20min attempting to update the code for
the Asteroids game:
... and while the code/structure is not stellar it does serve as a
successful example of how such a game can be constructed.
pyjs will do a pretty good job of abstracting the "JS-y-ness" of it
all, but at the end of the day, you *are* running JS, so some
knowledge there definitely helps. we try to provide enough details
for effective debugging, but it's nowhere near perfect, and there are
times you may find it lacking. there are solid/fast ways to develop
using *real* python bindings [runners], but sadly, none currently
support Canvas :-(
at any rate, it sounds like an interesting project; should you decide
to pursue we'll be lurking around if you get stuck.
|Re: [pyjs-users] Making a game soon||Charles Law||10/9/12 10:35 PM|
If you're still looking at the game, I cleaned it up quite a bit. I was doing an experiment in MVC design, so the game engine is a lot easier to read and a lot more OO. Each object is now abstracted, and the canvas/pyjs code is separated from everything else.
I forked the repo on github and modified the code in my personal copy. I have a PR here for anyone that wants to check it out: