From: Davidmh <dav...@gm...> - 2010-06-09 16:36:46
|
It is crashing. When my ball reachs one of the ends of the table, it returns: G:\Descargas>stadium.py Traceback (most recent call last): File "G:\Descargas\stadium.py", line 141, in <module> bola=Disparo(bola,dt,maxposx,maxposz,FR,FRBB,FRBW) File "G:\Descargas\stadium.py", line 103, in Disparo i.vel.x-=change.x AttributeError: 'numpy.ndarray' object has no attribute 'x' Further, while the ball is moving, the background switches to white, and returns to black when stops. I am executing it on WXP. I agree with you: it is funny. :) David. 2010/6/9 Pablo García Corzo <ozr...@gm...>: > Hi all! > This is a small toy for playing some kind of special billiard... a stadium > billiard. > The code is not very elegant, but the resulting game is quite fun! > The rules are simple, you just have to point and shoot kicking all the > balls. > Maybe it is something attractive for the "user-contributed programs" > section. > > \\// > Que la suerza os acompañe > Pablo. > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |