Skip to content

Examples: Revamp the setup() methods #2123

@einarf

Description

@einarf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    examplesissues related to examples

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions