Sorry, Danny told me and I fixed it but I answered just him, not to the
list.
The problem is when calling vector components as .x, .y, .z (I'm using
version 3.2.9 and everything was working fine).
I've just changed that to [0], [1], [2].
The background issue is some kind of a stupid feature, I want to know when
the system is calculating and when it is waiting for user input.
Try with this new version, it's even funnier when it doesn't crash!!! XD
\\//
Que la suerza os acompañe
Pablo.
El 9 de junio de 2010 18:36, Davidmh <dav...@gm...> escribió:
> 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
> >
> >
>
|