Pygame Saving and Loading Tutorial: Creating Customizable Controls

  Рет қаралды 8,439

CDcodes

CDcodes

Күн бұрын

Пікірлер: 19
@DhevAcoustic
@DhevAcoustic 3 жыл бұрын
Really helpful man. Thanks. Can you make a tutorial on how to make different level for a game and how to make the transition between levels after pressing a button. I've been wanting this. Thanks :)
@kirfzatd3524
@kirfzatd3524 3 жыл бұрын
great! My idol has released a video again!!! thank you so much
@kirfzatd3524
@kirfzatd3524 3 жыл бұрын
My programming skills have improved a lot. you are my idol!
@CDcodes
@CDcodes 3 жыл бұрын
Really happy to help! Keep on coding!
@asmeticful
@asmeticful 3 жыл бұрын
Congrats on 1k! It costed me a channel strike lol but it was worth it 👊
@CDcodes
@CDcodes 3 жыл бұрын
Lmao I appreciate the support!
@ahmadsyahmibinjamaludin1036
@ahmadsyahmibinjamaludin1036 3 жыл бұрын
I'm wondering how can I make a game button that has a function like 1p mode and 2p mode on super smash bros?
@cliffordwilliam3714
@cliffordwilliam3714 3 жыл бұрын
Oh yes more! Your videos have been super helpful thank you so much. Ive been thinking on using state machine for player control similar to how you handle game states. Would that be an improvement to the player class? Especially when the player can do more than just jumping and running. Also would be awesome if you make a tutorial on shooting mechanic like the one in cave story!
@CDcodes
@CDcodes 3 жыл бұрын
State Machines are awesome for player characters! I was thinking about doing a tutorial on those. And i'll take that into consideration! Thanks for the support!
@cliffordwilliam3714
@cliffordwilliam3714 3 жыл бұрын
@@CDcodes Looking forward to it and subbed! You're the best :D
@phoebely2900
@phoebely2900 3 жыл бұрын
Awesome Video!
@CDcodes
@CDcodes 3 жыл бұрын
Thank you!
@DutchDread
@DutchDread 3 жыл бұрын
Can't get it to work because when I save it saves the integers, not the "pygame.K_a" type codes. when I load in my JSON I can't load in direct pygame methods so I have to load them in as strings, and then evaluate them. But I can't get the codes from the integers, and I can't get the integers to work as a pygame event.
@CDcodes
@CDcodes 3 жыл бұрын
Strange, the "pygame.K_a" codes are just integers, so it should still work when you save it as one. Stop by the discord and maybe someone can help?
@AnasMamdouh000
@AnasMamdouh000 3 жыл бұрын
Hello,Christian! self.font = pygame.font.Font("RetroFont.ttf", 20) FileNotFoundError: [Errno 2] No such file or directory: 'RetroFont.ttf' why do i get this all the time ps :i installed everything you said to install
@CDcodes
@CDcodes 3 жыл бұрын
It seems as though it can't find the font file. Make sure that your font file is in the same directory and that you are spelling the filename correctly (watch out for spaces, capitalization, etc). You couls also use os.path.join() to make sure it is being found
@AnasMamdouh000
@AnasMamdouh000 3 жыл бұрын
@@CDcodes Thank you very much
@chosenone2435
@chosenone2435 2 жыл бұрын
What happened to you, man. You haven't uploaded in a while.
@CDcodes
@CDcodes 2 жыл бұрын
Still alive, new video out today : )
Programmer VS The Human Benchmark Test | Number Memory
17:47
Code Bullets Day Off
Рет қаралды 531 М.
Andro, ELMAN, TONI, MONA - Зари (Official Audio)
2:53
RAAVA MUSIC
Рет қаралды 8 МЛН
24 Часа в БОУЛИНГЕ !
27:03
A4
Рет қаралды 7 МЛН
Inside the V3 Nazi Super Gun
19:52
Blue Paw Print
Рет қаралды 2,4 МЛН
I made an entire OS that only runs Tetris
22:37
jdh
Рет қаралды 1,7 МЛН
Creating a Tic-Tac-Toe Game with Python and PySimpleGUI
13:06
Mouse Vs Python
Рет қаралды 1,7 М.
Saving and loading in pygame with json
25:23
Clear Code
Рет қаралды 30 М.
Can I remake those SH*TTY mobile games in 1 HOUR?
23:13
Code Bullet
Рет қаралды 3,3 МЛН
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 793 М.
Can You Beat Minecraft From One Grass Block?
35:27
Beppo
Рет қаралды 6 МЛН
Cracking Software with Reverse Engineering 😳
8:01
nang
Рет қаралды 1,8 МЛН
How to Code (almost) Any Feature
9:48
DaFluffyPotato
Рет қаралды 713 М.
How to Make a Pause Menu in PyGame with Python!
16:56
LeMaster Tech
Рет қаралды 7 М.
Andro, ELMAN, TONI, MONA - Зари (Official Audio)
2:53
RAAVA MUSIC
Рет қаралды 8 МЛН