[Intro to Python as a First Language] Pokemon gamedev finale! Bringing it together. Modules!
In this, our most advanced episode so far (at least, at the time of writing), we look at our classes and continue to explore inheritance. Mostly, we make fun improvements to our game by using everything that we've learned so far, including adding new characters, new moves, and adding an experience and level-up system.
New in this episode is the idea of writing our own modules that we can import. By moving most of our 'class' definitions to other files (modules), we can make our game code much easier to navigate. By the end of this stream, we've got a Python file JUST for Pokemon types and another JUST for Pokemon moves, which means that our pokemon_day_6.py can be much trimmer and easier to scroll through.
Naturally, when discussing modules and importing, we also discuss namespaces and their importance!
I hope that you all enjoyed this series. We'll be continuing with a brand new series, returning to the VERY basics of day 1 programming. In it, we're going to look at creating a simple adventure game, in the tradition of ZORK, using Python.
As always, if you have any questions, feel free to ask me here in the YouTube comments, or on Twitch, Discord, wherever. You can also download generously-commentated copies of this stream's (and other streams') code over at http://github.com/vencabot/intro_to_python !
Keep the good times rolling at https://www.patreon.com/vencabot
Watch the show live at https://www.twitch.tv/vencabot
Hang with us on Discord using https://discordapp.com/invite/Y2tETWA
Keep up-to-date at https://twitter.com/vencabot