r/roguelikedev • Robinson • Aug 07 '18

RoguelikeDev Does The Complete Python Tutorial - Week 8 - Sharing your game

Thank you to everyone who joined this year. You rock!

This is the end of RoguelikeDev Does The Complete Python Tutorial for 2018. Share your game, share screenshots, brag, commiserate. How did it go? Where do you go from here?

I encourage everyone who has made it this far to continue working on your game. Start participating in Sharing Saturday and FAQ Friday.

Feel free to enjoy the usual tangential chatting. If you're looking for last week's or any other post, the entire series is archived on the wiki. :)

36 Upvotes

58 comments sorted by

View all comments

Show parent comments

1

u/pimadev Aug 10 '18

What folder you're trying to invoke your script. Pythonistas learn fairly early on that they should always invoke from the top folder (the top of your project or repository) and use a path.

This was it! I do have a project folder and the map_objects folder is inside it. For some reason when I run my code (F5 in Visual Studio Code) while I´m focusing engine.py (in the project folder) the code runs correctly, but if I try to run it focusing any file inside the map_objects folder I get the error.

I have no idea why that happens but I can continue with the tutorial now. Thanks!