Uh oh!
There was an error while loading. Please reload this page.
Expose Camera2D in arcade's top level namespace - #2055
Conversation
DigiDuncan
commented
Apr 8, 2024
Good idea. We have other "core" objects exposed (Text, Window, View, Sprite) and this makes sense to have. You want more complex cameras, dig into |
c7a991e to
2623830Compareeinarf
commented
Apr 10, 2024
It does make sense historically, but I'm a little bit conflicted here. Should we not try to slim down the arcade module when possible? It already contains so much. |
DigiDuncan
commented
Apr 11, 2024
I would say our most important objects (and most accessible ones) should be top-level. Camera2D, Text, Window, View, Sprite, Sound, etc. The more advanced or specialized versions (PerspectiveProjector, or BasicSprite, etc.) can be accessed in their sub-modules. |
pushfoo
commented
Apr 15, 2024
@einarf
The current custom viewport options for
I think we should flip
|
2623830 to
58bdfcdComparepushfoo
commented
Apr 16, 2024
The recent commits pushed:
|
einarf
commented
Apr 16, 2024
Might also be a good idea to update imports in examples here? |
Yep. I think this might wait till after the following:
From what I remember of trying to test something like this locally, it also caused some havoc when trying to build doc in certain cases. That may have been due to trying to squeeze cameras into the current doc build system clumsily and in a rush. I'll revisit this PR in the coming days after the above. |
einarf
commented
Apr 23, 2024
Maybe we should just merge this quick to at least get the |
pushfoo
commented
Apr 23, 2024
TL;DR: It might actually be very broken despite tests seeming to pass. I haven't it recently and so I don't remember the details, but there was at some point a wall of red in build output related to this. From what I remember:
I was going to wait until the following are in place:
|
pushfoo
commented
Jun 3, 2024
This is redundant and additional work needs to be done before we're able to get the doc generating. That's WIP, so closing this. |
Changes
TL;DR: Enable
arcade.Camera2Dandfrom arcade import Camera2DCamera2D+ supporting classes toarcade/__init__.pyCamera2D+ supporting classes toarcade.__all__Why