We should really declare all variables with types in __init__ while setup() should attempt to reuse these types as much as possible. This mans type hinting and code completion will work across a wide variety of editors. We also teach the users to do a proper "reset".
In addition we should probably write a doctring for the setup() method explaining its purpose also stressing that it's not a part of arcade (window / view), but something optional we do do support resetting the game / view.
Possibly renaming setup() to reset() would make more sense.
We should really declare all variables with types in
__init__whilesetup()should attempt to reuse these types as much as possible. This mans type hinting and code completion will work across a wide variety of editors. We also teach the users to do a proper "reset".In addition we should probably write a doctring for the
setup()method explaining its purpose also stressing that it's not a part of arcade (window / view), but something optional we do do support resetting the game / view.Possibly renaming
setup()toreset()would make more sense.