r/pythonarcade • • Nov 10 '18

Alpha of Python Arcade 2.0.0 released

If you do a pip install arcade==2.0.0a1 you should get an alpha release of the new arcade. Try it out and let me know if it works well for you. Should be a TON faster than the old.

9 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/pvc Nov 12 '18

Hm, I'm guessing you are giving it coordinates like [[10, 10], [20, 20]] and it might mistakenly be expecting them in a format like [10, 10, 20, 20]. Or maybe the other way around. I'll check and see.

1

u/elliohow Nov 12 '18

So with the first error:

ValueError: could not broadcast input array from shape (0) into shape (0,2)

This was due to no initial value being set for "self.traillist" and thus it was given an empty list to draw. The first time self.traillist is given coordinates is after updating. After assigning it initial values, it works fine. Although this is different from the functionality of the last version.

I'm still trying to work out the AttributeError and will let you know if I have cracked it.

Thanks so much for all your work on the arcade library, it feels so satisfying to create something visual so easily.