Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error trying to run #3

Open
Mxrcos585 opened this issue Feb 11, 2023 · 1 comment
Open

error trying to run #3

Mxrcos585 opened this issue Feb 11, 2023 · 1 comment

Comments

@Mxrcos585
Copy link

I keep getting this error code, any recommendations?
Screenshot 2023-02-10 at 9 15 15 PM

@eeshawn11
Copy link

It's hard to tell without seeing the rest of your code and import statements, but it seems you may not be calling the Level class correctly in Line 9. You are using the same name "level" for both the object and class, so you may want to change to:

# creating Level object
level = Level(level_map, screen)

If you wrote the code yourself while following the tutorial, consider using "Level" instead when you're defining your class, following the pep8 convention of CamelCase for Class names.

Hope this helps, otherwise you could share more of your code for troubleshooting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants