Creating a Pokémon inspired RPG in Python & Pygame

  Рет қаралды 43,225

Clear Code

Clear Code

Күн бұрын

Thanks to Brilliant for the support, you can find them here: brilliant.org/ClearCode/
A RPG that is inspired by Pokemon and Final Fantasy in Python. We will use pygame-ce to create it and in the process you will learn database management, ui design and how to handle a really complex project.
Find/support me on other channels
Patreon - / clearcode
Twitter - / clear_coder
Discord - / discord
Shoutout to Scarloxy for creating the graphics: / scarloxy
Project files:
github.com/clear-code-project...
drive.google.com/drive/folder...
Timestamps:
00:00:00 - Intro
00:02:51 - Overworld setup
00:53:29 - Overworld animations
01:23:30 - Character setup
01:54:17 - Overworld finish (collisions, grass & drawing order)
02:45:43 - Dialog system
03:59:57 - Level transitions
04:20:07 - Monster index
06:28:08 - Battle setup
07:28:38 - Battle ui
08:47:22 - Battle logic
10:18:26 - Finishing up (Evolution, sound, more transitions)

Пікірлер: 241
@ClearCode
@ClearCode 2 ай бұрын
If you enjoy this type of content please consider supporting me on Patreon www.patreon.com/clearcode Making these videos takes a lot of time and money to pay artists so any support is appreciated
@Lansamatv
@Lansamatv Ай бұрын
you can do the same for godot
@SashoSuper
@SashoSuper Ай бұрын
​@@Lansamatvindeed, but godot is a game engine, while python is primarily used for machine learning, computer vision etc, so basically everything learned here can be applied in other spheres of python development.
@nullgator8073
@nullgator8073 2 ай бұрын
The art for this is crazy good for a "tutorial" game. Someone poured their heart and soul into these
@ClearCode
@ClearCode 2 ай бұрын
You can find the artist here: scarloxy.itch.io/mpwsp01
@ApprenticePL
@ApprenticePL 2 ай бұрын
"429, too many requests", aww, happy, hope some those people accessing the website turn into this person's clients! 😄
@--Zeke--
@--Zeke-- 2 ай бұрын
​@@ApprenticePLGet rid of the stuff after the / and it works for now :)
@mahmoudshihab
@mahmoudshihab Ай бұрын
To ensure I’m not going to get sued, let’s call it “Monster Hunter” Capcom: *Clears Throat*
@subarunatsuki1902
@subarunatsuki1902 Ай бұрын
They are pretty chill with copyright or atleast better than Nintendo
@vadvenurt
@vadvenurt 2 ай бұрын
Oh shit. Another tutorial from my favourite code teacher. Can't wait to spend another month doing another tutorial.
@maxfrischdev
@maxfrischdev Ай бұрын
😂😂😂
@3ler4never
@3ler4never 2 ай бұрын
I love your tutorials, please dont stop making them. Looking forward to recreating this one
@denisehub1174
@denisehub1174 2 ай бұрын
Oh, I was checking your channel for a fun pygame to make was not expecting a new video to drop. Truly an amazing tutorial.
@FlyiingFairy
@FlyiingFairy 2 ай бұрын
I'm so looking forward to the turn-based logic part, thank you so much for all the amazing tutorials.
@anthonydrakefordshadow
@anthonydrakefordshadow 2 ай бұрын
Your older tutorials are giving my game dev dreams life, thanks ❤
@tredecillion3207
@tredecillion3207 Ай бұрын
Man, you not only made me learn python, but you created a passion for programming and game development as a whole. Your tutorials are awesome, thank you so much for all the effort you put into them
@MustafaTuncay..
@MustafaTuncay.. 2 ай бұрын
OMG! It looks perfect. I really like your tutorials and I am so excited for that. It looks awesome.
@kolyamovchan8465
@kolyamovchan8465 2 ай бұрын
This channel is one of the best! Clearest tutorial and explanation by far!😀 Keep going!
@shauryagupta3644
@shauryagupta3644 2 ай бұрын
Yay I've been waiting for this one! Time to code em all :P
@ronaldocouves988
@ronaldocouves988 2 ай бұрын
The GOAT posted another masterpiece. Thanks a lot for your help!
@zeksy7989
@zeksy7989 Ай бұрын
You're my go-to for learning python further now, keep up the good work man, much appreciate the hard work you put into these videos. I don't usually comment on videos but again coming across quality content like this one isn't quite easy.
@quantum_hg3299
@quantum_hg3299 2 ай бұрын
Thankyou very much For providing these tutorials for free to the community ❤❤
@IOSALive
@IOSALive 2 ай бұрын
Clear Code, I loved this video so much, I had to hit the like button!
@bob4361
@bob4361 2 ай бұрын
THIS WAS EXACTLY WHAT I NEEDED ❤
@nandoPluister
@nandoPluister Ай бұрын
Thanks! I've added this to my watch later and will follow it as soon as I have the time!
@1just_josh421
@1just_josh421 2 ай бұрын
I love your pygame projects keep it up please there so good
@111-Czarny
@111-Czarny 2 ай бұрын
This is crazy. Thank You so much ❤
@BinBin-jl2lg
@BinBin-jl2lg 2 ай бұрын
Wow! This is the most awesome pygame project, I've ever seen.
@Zuarin
@Zuarin 2 ай бұрын
This looks incredible 🤩
@KellenBegin
@KellenBegin 2 ай бұрын
awesome, Im starting today and will hopefully finish within a week
@ali-r8263
@ali-r8263 Ай бұрын
I'm learning a lot! Thank you sir truly!
@AdityaYadav-jg9xw
@AdityaYadav-jg9xw 2 ай бұрын
man this will be a master piece. too excited
@HoRRoRlets
@HoRRoRlets 2 ай бұрын
Man...This is amazing. Many Many Thanks...
@derekplus
@derekplus 2 ай бұрын
11 hour tutorial. Perfect 👌
@RossiGiova
@RossiGiova 2 ай бұрын
I love watching your videos, you are really good as a teacher
@gsdealer7691
@gsdealer7691 2 ай бұрын
Can`t believe this tutorial is all for free ... you are amazing
@evannwen4730
@evannwen4730 2 ай бұрын
Wow! This is amazing
@tichalagaming7853
@tichalagaming7853 2 ай бұрын
Thank you sir 🙏 I can't appreciate this stuff enough ❤❤
@SuperSunshine321
@SuperSunshine321 2 ай бұрын
He has done it again, absolutely amazing!
@bepositive271
@bepositive271 2 ай бұрын
Definitely gonna follow it
@--Zeke--
@--Zeke-- 2 ай бұрын
He's back!! Working my way through the Godot course rn, but might binge this just for fun too :)
2 ай бұрын
Truly amazing!
@johnb6714
@johnb6714 23 күн бұрын
I love your tutorials, absolutely amazing!!
@ClearCode
@ClearCode 23 күн бұрын
thank you so much, your support helps me a lot to make more :)
@zashgamming7506
@zashgamming7506 2 ай бұрын
So amazing❤
@ZihadJoy
@ZihadJoy 2 ай бұрын
the only hard working guy who makes me want to code in python again
@emperor8716
@emperor8716 2 ай бұрын
check out dafluffypotato too. he makes some insane stuff in pygame.
@Akiel0202
@Akiel0202 2 ай бұрын
The timing!
@uniroo8795
@uniroo8795 2 ай бұрын
My dream is to create a Pokemon game with Python combining multiple regions having go through Ash adventure. Have followed Zelda en Beginner video. This is unbelievable so magnificent the work you put in creating top tier tutorial videos. I am stoked to see this one!!! You are a Legend!!!
@verstrahlt1907
@verstrahlt1907 2 ай бұрын
amazing work, beautiful game, great realization, interesting beings
@pichuelanewman7135
@pichuelanewman7135 2 ай бұрын
Man i love your videos ❤
@thepeeps191
@thepeeps191 2 ай бұрын
The goat is back again!
@novialriptide
@novialriptide 2 ай бұрын
The end result looks beautiful.
@lukaLondaridze
@lukaLondaridze 2 ай бұрын
🎉🎉🎉🎉🎉 I hope this one succseeds greatly!
@mariosoriano4650
@mariosoriano4650 2 ай бұрын
The GOAT is back with another banger
@kaiseraugustus1393
@kaiseraugustus1393 2 ай бұрын
It is interesting, how I am being enjoyed watching this video, although I do have no intention for the near future to develop any game at all nor in Python specifically :D Great job there
@Filipe_Seixas
@Filipe_Seixas 2 ай бұрын
Você é uma inspiração para mim cara : ). ❤❤❤
@kevinh5212
@kevinh5212 2 ай бұрын
Yes! Yes!! Thank you, I'll be watching this later! Oh my God this is incredible!
@AliensCorp
@AliensCorp Ай бұрын
Wow! Thank you!❤
@CassyCodes
@CassyCodes 2 ай бұрын
This looks so good! I’m very tempted to take a break from godot and learn python!
@ClearCode
@ClearCode 2 ай бұрын
Just wait for the Godot stuff I'll do later this year; it's gonna be sick :D
@CassyCodes
@CassyCodes 2 ай бұрын
@@ClearCode I’m incredibly excited for it!! Thank you for all the education!
@blackeyedme
@blackeyedme Ай бұрын
@@ClearCode Yeah if you can make these types of tutorials in Godot instead, it will be perfect. While Pygame is cool to learn/brush-up on Python, its not really industry ready, where Godot far exceeds it as a proper game engine. Definitely a gap in the YT market of proper Godot tutorials of this caliber.
@Rundas69420
@Rundas69420 Ай бұрын
I think that it might not be the best idea to hardcode the names of objects which should be rendered on top of everything else. Especially when expanding the game, which I'm definitely gonna do. Went for a boolean property in tiled and checked whether that prop is true in the code. Other than that, huge thanks for this 11 hour free banger video. Can't stress enough how well done your tutorials are^^
@ClearCode
@ClearCode Ай бұрын
yeah, there are some things that could definitely be done better but hindsight is 20/20 😅 glad you like it though!
@wauthethird
@wauthethird 2 ай бұрын
It's insane that this vid isn't getting more views. Knowing how your vids usually perform, it's gotta be pretty rough. Don't give up though!
@that_cutekitten03
@that_cutekitten03 2 ай бұрын
yes iv'e been waiting since pydew valey ❣❣
@Geographyball1
@Geographyball1 2 ай бұрын
Interesting!
@InfiniteCoder01
@InfiniteCoder01 2 ай бұрын
1:07:56 Now I have to live, knowing that frame_index will grow infinitely and python's dynamic number sizing (not sure, what it's called) will slow the game down after years of running nonstop
@SkyFly19853
@SkyFly19853 2 ай бұрын
Real Nice !
@stromxplays9715
@stromxplays9715 2 ай бұрын
Amazing
@ali-r8263
@ali-r8263 2 ай бұрын
Thank you so much sir!!!! ❤❤❤🙏🙏
@alisher.m
@alisher.m 2 ай бұрын
Thank you, your tutorials are another tier. Please release more of them!
@Gogei
@Gogei 2 ай бұрын
Thanks♥
@Star-jt9lv
@Star-jt9lv 2 ай бұрын
You are the GOAT
@nurunnahar4398
@nurunnahar4398 2 ай бұрын
Thanks a lot for creating another tutorial ❤❤
@yvettex4169
@yvettex4169 Ай бұрын
love you soooo much!🥰
@3w4n86
@3w4n86 2 ай бұрын
You are awesome
@josueibarra6570
@josueibarra6570 Ай бұрын
Well, I'll see you in 11+ hours! Your tutorials are really clear 👀 and easy to follow, thank you deeply for posting these on YT. Could you do one for the Defold Engine?
@InfiniteCoder01
@InfiniteCoder01 2 ай бұрын
2:10:43 I normally sort by the bottom edge of the sprite, because it's supposed to be in contact woth the ground at the sprite position, unlike the center, which is height-dependent. But for the grass, this value actually supposed to be the center, since it's not placed vertically
@benbouhasofiane1244
@benbouhasofiane1244 2 ай бұрын
bro l was waiting for 2 months about Godot projects (thank you for amazing tutorial)
@fredtrunce5931
@fredtrunce5931 2 ай бұрын
Ahhhhhhhh!!!!!! Thank you!!!!!!!!!
@KYOTF67
@KYOTF67 2 ай бұрын
The Goat
@pedrenriquegg
@pedrenriquegg 2 ай бұрын
I was wondering when this was going to drop. It was such a natural follow-up after pydew valley
@InfiniteCoder01
@InfiniteCoder01 2 ай бұрын
37:02 Delta time is good enough for most cases, but sometimes it's just better to use fixed update for everything but rendering
@KalifSSJ
@KalifSSJ 2 ай бұрын
Thx for info pygame-ce
@marginiszero
@marginiszero 2 ай бұрын
This game is so amazing bro😍 I will try to make this type of game in javascript🔥🔥
@prfctstrm
@prfctstrm Ай бұрын
I haven't watched this yet, and I am not a python developer, but I've always wanted to know how to code an RPG battle system, so I'm going to try follow this tutorial in another language and engine, and hope I can make something good out of it.
@panociagasta
@panociagasta 2 ай бұрын
GOAT
@potatocat6855
@potatocat6855 2 ай бұрын
the wait is finally over!!!! time to spend the next 11hrs to complete this : )
@uatch
@uatch 2 ай бұрын
only 11 h ???? personnally i know that it's gonna be a lot igger than that XD
@subarunatsuki1902
@subarunatsuki1902 2 ай бұрын
My childhood 😍
@MrBuccaneer1
@MrBuccaneer1 27 күн бұрын
Danke!
@ClearCode
@ClearCode 27 күн бұрын
Gerne :)
@Twelveoglock1
@Twelveoglock1 2 ай бұрын
Nice! Still waiting for new godot tutorial to drop!
@aga1nstall0dds
@aga1nstall0dds 2 ай бұрын
Oh wow
@aga1nstall0dds
@aga1nstall0dds 2 ай бұрын
how do u debug the pirate game?
@rahilsondias6629
@rahilsondias6629 14 күн бұрын
Amazing tutorial, would really love to see this project remade in Godot!
@imaguyyesmale
@imaguyyesmale Ай бұрын
OH I GET IT i installed python 3.12 from other repo, installed pygame-ce and pytmx then i ran it on the terminal...fantastic!
@kav6317
@kav6317 2 ай бұрын
petition to increase the volume of your voiceover. because I need to do full volume just to hear his voice
@ClearCode
@ClearCode 2 ай бұрын
Will work on it!
@Griffin519x
@Griffin519x 2 ай бұрын
I can hear him fine, but I’m using earbuds
@mohammadmotaz6419
@mohammadmotaz6419 2 ай бұрын
رائع!!!!
@HBHBILAL07
@HBHBILAL07 2 ай бұрын
I hope that the next video will be about Unreal Engine and a 3D game. Good luck
@chigstardan7285
@chigstardan7285 2 ай бұрын
I highly doubt that. He focuses on Godot and pygame plus some obscure python gui libraries. Also, his next video will be on the ultimate introduction to Godot 3d
@HBHBILAL07
@HBHBILAL07 2 ай бұрын
Thanks for the clarification, Bro. Do you know any channel like his, but it works on Unreal Engine? I would be very grateful to you if you knew. Once again, thanks, man.
@maxfrischdev
@maxfrischdev Ай бұрын
Christian did it again?! 😮😮 ❤❤❤
@ussjd9u3hd
@ussjd9u3hd 2 ай бұрын
awesome tutorial but the voice is very calm
@korraprasadpraveen4333
@korraprasadpraveen4333 2 ай бұрын
❤❤❤
@InfiniteCoder01
@InfiniteCoder01 2 ай бұрын
[5:03:50] I guess, collidepoint is checking X range [left; right) and Y range [top; bottom) (not including right X and bottom Y). This is for the same reason, we have list indices start with zero and len(list) is not a valid index
@ClearCode
@ClearCode 2 ай бұрын
yup, I should have explained that one better!
@AxXis--
@AxXis-- Ай бұрын
Hello! I'm very very fond of your tutorials and the way you showcase, explain and the general vibes. I just finished the beginner tutorial for pygame and now I feel a bit lost, I can't really find a "intermediate" tutorial or the next step for beginners, I'm trying to make my own game right now, a very simple one but I get stuck pretty much all the time and now it's really hard for me, so I was just wondering if you have any recomendations to go about after watching your beginner friendly tutorial? ;)
@firnyx
@firnyx 2 ай бұрын
Whaaaa
@Kokoz40
@Kokoz40 2 ай бұрын
WOW. Everything is amazing. And you are amazing for putting all the work and giving it to the world. THANK YOU P.S. How do I hide text in the brackets like at 4:40, where it shows { . . . } I use VSCode
@ClearCode
@ClearCode 2 ай бұрын
next to functions, classes and while/for/if statements there should be an arrow if you have over the area to the left of the text, click on that and it will be collapsed. There is also a hotkey where you first press Ctrl + K and then Ctrl + 1, that collapses all functions and methods (stackoverflow.com/questions/42660670/collapse-all-methods-in-visual-studio-code for more detail)
@Kokoz40
@Kokoz40 2 ай бұрын
@@ClearCode Thank you very much. For everything :)
@yyvan5125
@yyvan5125 2 ай бұрын
have you considered using type information in your code? i would say that its a good practice in python, which would be pretty useful to teach people learning python using your videos.
@-Barny
@-Barny 2 ай бұрын
I love you ❤
@orlandoromero1289
@orlandoromero1289 Ай бұрын
Would you consider doing a 3D-based video at some point? I know pygame doesn't really support it directly, but it could work, for instance, with something like raylib (it has bindings for python) or pygame + pyopengl. Something like Ursina/Panda3D (or even Godot) could also work, but the thing I appreciate in your videos is that it's all about the code without it being about learning a specific API. If you do end up doing something in 3D, I would enjoy a similar approach, where whatever framework/library/engine is only used to handle basic input and to draw things on the screen.
@pawan4920
@pawan4920 2 ай бұрын
YESSSIRRRR 🎉🎉🎉🎉🎉🎉
@chocoblin5887
@chocoblin5887 2 ай бұрын
my brooooooooooooooooooooooooo
@sonu-jangir
@sonu-jangir Ай бұрын
Thank you very much for this very useful tutorial, as you always do.❤❤ . One request, please reply. Can you tell me about your PC specifications and OS. Please...
@sonu-jangir
@sonu-jangir Ай бұрын
I know my question is completely different from this tutorial but still I want to know.
@ClearCode
@ClearCode Ай бұрын
@@sonu-jangir Windows 11, Ryzen 3800x, RTX 2070 super and 32gb RAM. Not sure why that matters though 😅
@sonu-jangir
@sonu-jangir Ай бұрын
@@ClearCode I know, but still I want build a PC that meet your specifications. Please don't mind. I find all your videos premium, your style, your voice, everything, so I wanted to know about your specifications.☺️
@FrankieDev
@FrankieDev 2 ай бұрын
You should do a game like Zero Sievert (or a survival/building/gathering game) in Godot 4 next!
@FrankieDev
@FrankieDev 2 ай бұрын
in 2D that is*
Nintendo is erasing its history - The war against ROMS
14:21
Modern Vintage Gamer
Рет қаралды 645 М.
I Added Infinite Crafting to Minecraft (with AI)
13:08
Blucubed
Рет қаралды 523 М.
Чай будешь? #чайбудешь
00:14
ПАРОДИИ НА ИЗВЕСТНЫЕ ТРЕКИ
Рет қаралды 2,9 МЛН
Китайка и Пчелка 10 серия😂😆
00:19
KITAYKA
Рет қаралды 2,1 МЛН
9 DEVS Make a GAME without COMMUNICATING (Where did it go Wrong?)
21:33
Blackthornprod
Рет қаралды 1,1 МЛН
I Made a Graph of Wikipedia... This Is What I Found
19:44
adumb
Рет қаралды 2,5 МЛН
My 2024 Game Dev Roadmap
8:17
Luciole Games
Рет қаралды 6 М.
I Made a Neural Network with just Redstone!
17:23
mattbatwings
Рет қаралды 561 М.
Why Do Video Game Studios Avoid Blender?
6:49
The Cantina
Рет қаралды 244 М.
I Spent 6 Years Making Games in Scratch
10:03
chipm0nk
Рет қаралды 279 М.
Making a difficult game about fitting in - Acerola Jam 0
19:17
jess::codes
Рет қаралды 187 М.
Making a Game in Python with No Experience
5:57
Goodgis
Рет қаралды 1,6 МЛН
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 3,6 МЛН
I made Games with Python for 10 Years...
28:52
DaFluffyPotato
Рет қаралды 254 М.