Saving and loading in pygame with json

  Рет қаралды 30,781

Clear Code

Clear Code

Күн бұрын

Пікірлер: 85
@snowman_student
@snowman_student 3 жыл бұрын
I personally love the minimalist way of your Explanation and edits which makes it easier to get into Head!! Keep. Uploading!! Your Channel is loved!!❣
@reedhamyt5832
@reedhamyt5832 3 жыл бұрын
I was doing my Computer Science project and was opening the phone to google 'How to save game in pygame' but before that i see this in my notification.😂😂😂
@mixlaproduction
@mixlaproduction 3 жыл бұрын
The legend is back! :D
@SKSam-bq6zt
@SKSam-bq6zt 3 жыл бұрын
Yeah so cool
@meoweth829
@meoweth829 3 жыл бұрын
Please dont stop making these, you inspire me
@m__h2574
@m__h2574 3 жыл бұрын
Just when I was thinking about how to implement a saving mechanism.... Like a gift from heaven...
@SKSam-bq6zt
@SKSam-bq6zt 3 жыл бұрын
Thanks, I just wanted to research this subject and then I found you uploaded this video. It's really important and useful in pygame games.
@SKSam-bq6zt
@SKSam-bq6zt 3 жыл бұрын
But man you are really underrated.
@ihaveagoddamnplanarthur
@ihaveagoddamnplanarthur Жыл бұрын
Straight to the point, good explanation, i understood it well!
@abrarmasumabir3809
@abrarmasumabir3809 3 жыл бұрын
I am in high school..man you make my days cool...it's so awsome..I can't explain you..💜
@devloper_d
@devloper_d 3 жыл бұрын
where are you from?
@abrarmasumabir3809
@abrarmasumabir3809 3 жыл бұрын
@@devloper_d From Bangladesh bro and you....
@devloper_d
@devloper_d 3 жыл бұрын
@@abrarmasumabir3809 I am from India and I am in class 7th.
@abrarmasumabir3809
@abrarmasumabir3809 3 жыл бұрын
@@devloper_d can we contact bro...let's learn together....💜
@devloper_d
@devloper_d 3 жыл бұрын
@@abrarmasumabir3809 Yes of course share your e-mail id or other contact detail.
@MuxauJ7
@MuxauJ7 2 жыл бұрын
I've been doing very basic coding as a way to mentally exercise and pass time with some benefits. Being a complete dummy when it comes to using external files in my programs, I just couldn't pass that roadblock for some reason (called lazyness 😄). The video has been exceedingly helpful at giving clear directions on where to look and what to do.
@guusvrv924
@guusvrv924 3 жыл бұрын
I was just searching for this, perfect timing!
@ElvB
@ElvB 3 жыл бұрын
Helpful videos and great explanation!
@TheAlexdn
@TheAlexdn 3 жыл бұрын
Perfeito trabalho com pygame agora estou entendendo de verdade. Parabens pelo trabalho e dedicação. I'm from Rio de janeiro, Brazil.
@trakra9959
@trakra9959 2 жыл бұрын
Amazing, back on track in half an hour
@carlfranz6805
@carlfranz6805 2 жыл бұрын
I'm gonna use this for my upgrade to your space invaders. Good fun. Thanks.
@amaldeeppatra8224
@amaldeeppatra8224 3 жыл бұрын
This tutorial worked perfectly for me...Thanks for this😄☺
@devloper_d
@devloper_d 3 жыл бұрын
Before watching this video I did same thing with SQLite, Thanks for teaching me the shortest method.😃
@deviouspolarbear4707
@deviouspolarbear4707 2 жыл бұрын
cool video, this will help me a lot in my future career! Thank you so much
@hariharanthegreat5576
@hariharanthegreat5576 3 жыл бұрын
How about Menus in pygame and 3d games in Godot?
@codedecode1498
@codedecode1498 3 жыл бұрын
For 3D games in godot, i can highly recommend this channel called Garbaj :D
@hariharanthegreat5576
@hariharanthegreat5576 3 жыл бұрын
@@codedecode1498 Yeah, I too watch his videos. But this channel Clear Code explains everything in a slow and neat manner which helps me to understand better. If clear code did some, it would be amazing
@codedecode1498
@codedecode1498 3 жыл бұрын
@@hariharanthegreat5576 Yeah ik i prefer this channel over other channels too, but im just saying you could watch those till ClearCode makes them :)
@GUITARATION
@GUITARATION 3 жыл бұрын
Plz make videos on games your explanation is best 👍👍
@M17-c2q
@M17-c2q 2 жыл бұрын
You are truly great
@tooez4780
@tooez4780 3 жыл бұрын
oh my gosh he uploaded another video!!
@azurnxo2134
@azurnxo2134 3 жыл бұрын
Subbed. You're amazing.
@optimistprime8172
@optimistprime8172 3 жыл бұрын
How do you do this with more complex projects containing Player and Enemy classes, animation frames etc?
@-_Nuke_-
@-_Nuke_- Жыл бұрын
What if I want to save a game, but manually? Like in most games, you can chose the name of your save and the path of your save, how can I do that?
@JeanDeBussy
@JeanDeBussy 3 жыл бұрын
AttributeError: 'FirstPersonController' object has no attribute 'cursor' hello in the last video of minecraft in python i encounter this problem could you help me (the code is right because i also tried to get it from your git hub)
@fathurbadar4490
@fathurbadar4490 3 жыл бұрын
Can anyone explain to me how this works, i have follow the video, but the load is having conflict with the dump if I never run the game (like, the text file is never created, and that creates conflict with the loader trying to get the file). Should I make the file first and assigning the dictionary value into text file (like 'click' : 0 in the text file)? Sorry if my question sounds dumb, I'm new to python, and sorry about my grammar (not really good at English). For anyone reading this comment, have a nice day!! 🙂
@DGHere12
@DGHere12 3 жыл бұрын
Thank you For making this video,
@kaan_tuna
@kaan_tuna 2 жыл бұрын
But how would I make multiple saves with different names that the user(s) inputs?
@anntakamaki1960
@anntakamaki1960 Жыл бұрын
Ok, so I should save each variable into a global dictionary then save that dictionary as json file, and load the variables from that dictionary?
@m_davis222
@m_davis222 Жыл бұрын
Great Video!
@DGHere12
@DGHere12 3 жыл бұрын
This helped me a lot man, you should do tutorials on unity
@wantedunknown3100
@wantedunknown3100 3 жыл бұрын
Made my day
@aleksandrapacia2113
@aleksandrapacia2113 3 жыл бұрын
thank you, it helped me a lot ;)
@Mikendlela27
@Mikendlela27 2 жыл бұрын
Amazing.
@patcher14
@patcher14 3 жыл бұрын
Does this work on your ursa-craft?
@ClearCode
@ClearCode 3 жыл бұрын
it is just another python module, it works with anything, including pygame and ursina.
@mrdc3
@mrdc3 3 жыл бұрын
How would I implement this with your Mario style platformer?
@j2j_official
@j2j_official 2 жыл бұрын
Thank you very much :)
@jimmyslaughter6262
@jimmyslaughter6262 3 жыл бұрын
You are amazing!!!
@pokegamerspoint6577
@pokegamerspoint6577 3 жыл бұрын
Hey! When's the new video coming?
@kahwigulum
@kahwigulum 3 жыл бұрын
and here i thought json stood for 'just a series of numbers'
@SKSam-bq6zt
@SKSam-bq6zt 3 жыл бұрын
Hey the content is veryyyyy gd but how can I save all the data in a game that contains classes?
@CodingCircle
@CodingCircle 3 жыл бұрын
You can save classes with json as well but the class should not contain any image or Font
@GUITARATION
@GUITARATION 3 жыл бұрын
Thanks 👍👍
@ZgavY
@ZgavY 3 жыл бұрын
Why use json instead of saving your data as raw binaries?
@deistormmods
@deistormmods 2 жыл бұрын
Better to use raw binary. It's quicker. But it's your choice.
@ZgavY
@ZgavY 2 жыл бұрын
@@deistormmods I'll use raw binary so 9 year olds can't edit the data and cheat on my game lol
@deistormmods
@deistormmods 2 жыл бұрын
@@ZgavY Lol if they're smart enough they can
@killer1o165
@killer1o165 3 жыл бұрын
Can you make a video on controller input?
@thealgomanxr
@thealgomanxr 3 жыл бұрын
he bacc
@il_piruz
@il_piruz 3 жыл бұрын
( i'm italian so not watch grammatic:D) please you can say me what program for Ursina engine you have used (that for minecraft Python edition)? pls (i want to create from myself but i don't know what type of file i must to use on Visual Studio)
@ClearCode
@ClearCode 3 жыл бұрын
Hey, I use sublime text but any python ide is fine
@il_piruz
@il_piruz 3 жыл бұрын
@@ClearCode thank As soon as I can I try it
@il_piruz
@il_piruz 3 жыл бұрын
​@@ClearCode sorry for disturbe but how you use (always sorry for the bad english) sublime text? ( for example run the code and show up the window with the game)?
@il_piruz
@il_piruz 3 жыл бұрын
​@@ClearCode nothing at the end i've made it and..... thankssss for all the help and time you put in for help me
@il_piruz
@il_piruz 3 жыл бұрын
@@ClearCode sorry for another disturb 😅, but I've installed also psd tools3 but the file (opened with python) not work and the prompt of python spam message of Missing assets/blocks, you can help me another time? 😅
@khimleshgajuddhur6892
@khimleshgajuddhur6892 3 жыл бұрын
nice video...but don't forget to record your cursor also xD :) 😁
@itsME-dc4vm
@itsME-dc4vm 3 жыл бұрын
Nice ;D
@jeolnoel5288
@jeolnoel5288 3 жыл бұрын
could you make a Video about Sound effects in pygame?(pitching, etc..) it would help me a lot!
@ckthomas5756
@ckthomas5756 3 жыл бұрын
Can you teach us how to make multiplayer game
@Mahmoud-kv1ir
@Mahmoud-kv1ir 3 жыл бұрын
new vid!!!! any plans for more Godot tutorials?
@SKSam-bq6zt
@SKSam-bq6zt 3 жыл бұрын
yeah Godot is really important for making games
@nirmaltheprogrammer510
@nirmaltheprogrammer510 3 жыл бұрын
But user can change the values and cheat plz make a new method
@user-dh8oi2mk4f
@user-dh8oi2mk4f 3 жыл бұрын
In a singleplayer game, why would you want to prevent the user from cheating?
@aiyazm7278
@aiyazm7278 3 жыл бұрын
Hi I need your help
@aiyazm7278
@aiyazm7278 3 жыл бұрын
I had a problem in Arduino UNO using python
@rileylecaptain113
@rileylecaptain113 Жыл бұрын
18:02, just saving so i can sleep :)
@samuelkalteis8442
@samuelkalteis8442 3 жыл бұрын
can you code the floppy bird game with memory?
@arystokrates5772
@arystokrates5772 2 жыл бұрын
25:06 funny number :D
@Collectors-Epic-Lounge
@Collectors-Epic-Lounge Жыл бұрын
This guy keeps telling us to get rect, how rude! (This is a python joke)
@allanimeworld2898
@allanimeworld2898 3 жыл бұрын
Sir if its possible please make games by kivy too
@sharadthecurioustardigrade1533
@sharadthecurioustardigrade1533 3 жыл бұрын
Kivy tuts pls
@danigui8573
@danigui8573 3 жыл бұрын
Can you teach how to do this with sqlite3?
Python Tutorial: Working with JSON Data using the json Module
20:34
Corey Schafer
Рет қаралды 1,1 МЛН
Learning pygame by creating Snake [python tutorial]
2:05:00
Clear Code
Рет қаралды 387 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Understanding decorators [Python tutorial]
42:31
Clear Code
Рет қаралды 27 М.
How to Use Pygame Masks for Pixel Perfect Collision
10:28
Coding With Russ
Рет қаралды 43 М.
Debugging in Pygame
12:28
Clear Code
Рет қаралды 14 М.
Running a Buffer Overflow Attack - Computerphile
17:30
Computerphile
Рет қаралды 2 МЛН
Multiple Scenes in Pygame Tutorial (Gamestates)
15:46
Coding with Sphere
Рет қаралды 15 М.
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,5 МЛН
Making an Executable from a Pygame Game (PyInstaller)
6:08
DaFluffyPotato
Рет қаралды 109 М.
Pygame Tutorial - Save/Load System
14:13
ScriptLine Studios
Рет қаралды 10 М.
Creating an animated button in Pygame
32:49
Clear Code
Рет қаралды 36 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 857 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН