Saving and loading in pygame with json

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024

Комментарии • 85

  • @mixlaproduction
    @mixlaproduction 3 года назад +31

    The legend is back! :D

  • @snowman_student
    @snowman_student 3 года назад +18

    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 года назад +14

    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.😂😂😂

  • @meoweth829
    @meoweth829 3 года назад +1

    Please dont stop making these, you inspire me

  • @MuxauJ7
    @MuxauJ7 2 года назад +1

    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.

  • @maheenmashrur2574
    @maheenmashrur2574 3 года назад +1

    Just when I was thinking about how to implement a saving mechanism....
    Like a gift from heaven...

  • @SKSam-bq6zt
    @SKSam-bq6zt 3 года назад +1

    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.

  • @ElvB
    @ElvB 3 года назад +4

    Helpful videos and great explanation!

  • @TheAlexdn
    @TheAlexdn 2 года назад +2

    Perfeito trabalho com pygame agora estou entendendo de verdade. Parabens pelo trabalho e dedicação.
    I'm from Rio de janeiro, Brazil.

  • @ihaveagoddamnplanarthur
    @ihaveagoddamnplanarthur Год назад

    Straight to the point, good explanation, i understood it well!

  • @guusvrv924
    @guusvrv924 3 года назад

    I was just searching for this, perfect timing!

  • @abrarmasumabir3809
    @abrarmasumabir3809 3 года назад +1

    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 года назад +1

      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.

  • @amaldeeppatra8224
    @amaldeeppatra8224 3 года назад +1

    This tutorial worked perfectly for me...Thanks for this😄☺

  • @carlfranz6805
    @carlfranz6805 2 года назад

    I'm gonna use this for my upgrade to your space invaders. Good fun. Thanks.

  • @devloper_d
    @devloper_d 3 года назад

    Before watching this video I did same thing with SQLite, Thanks for teaching me the shortest method.😃

  • @trakra9959
    @trakra9959 2 года назад

    Amazing, back on track in half an hour

  • @hariharanthegreat5576
    @hariharanthegreat5576 3 года назад +9

    How about Menus in pygame and 3d games in Godot?

    • @codedecode1498
      @codedecode1498 3 года назад +1

      For 3D games in godot, i can highly recommend this channel called Garbaj :D

    • @hariharanthegreat5576
      @hariharanthegreat5576 3 года назад +2

      @@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 :)

  • @deviouspolarbear4707
    @deviouspolarbear4707 2 года назад

    cool video, this will help me a lot in my future career! Thank you so much

  • @DGHere12
    @DGHere12 3 года назад

    This helped me a lot man, you should do tutorials on unity

  • @GUITARATION
    @GUITARATION 3 года назад

    Plz make videos on games your explanation is best 👍👍

  • @M17-c2q
    @M17-c2q 2 года назад

    You are truly great

  • @tooez4780
    @tooez4780 3 года назад +1

    oh my gosh he uploaded another video!!

  • @azurnxo2134
    @azurnxo2134 3 года назад +1

    Subbed. You're amazing.

  • @DGHere12
    @DGHere12 3 года назад

    Thank you For making this video,

  • @m_davis222
    @m_davis222 Год назад

    Great Video!

  • @wantedunknown3100
    @wantedunknown3100 3 года назад

    Made my day

  • @optimistprime8172
    @optimistprime8172 3 года назад +1

    How do you do this with more complex projects containing Player and Enemy classes, animation frames etc?

  • @JeanDeBussy
    @JeanDeBussy 3 года назад +1

    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)

  • @aleksandrapacia2113
    @aleksandrapacia2113 2 года назад

    thank you, it helped me a lot ;)

  • @j2j_official
    @j2j_official 2 года назад

    Thank you very much :)

  • @jimmyslaughter6262
    @jimmyslaughter6262 2 года назад

    You are amazing!!!

  • @jeolnoel5288
    @jeolnoel5288 3 года назад

    could you make a Video about Sound effects in pygame?(pitching, etc..) it would help me a lot!

  • @SKSam-bq6zt
    @SKSam-bq6zt 3 года назад +1

    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

  • @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?

  • @fathurbadar4490
    @fathurbadar4490 3 года назад +1

    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!! 🙂

  • @-_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?

  • @mlungisindlela6810
    @mlungisindlela6810 Год назад

    Amazing.

  • @killer1o165
    @killer1o165 3 года назад

    Can you make a video on controller input?

  • @tunaan80
    @tunaan80 2 года назад

    But how would I make multiple saves with different names that the user(s) inputs?

  • @pokegamerspoint6577
    @pokegamerspoint6577 3 года назад

    Hey!
    When's the new video coming?

  • @khimleshgajuddhur6892
    @khimleshgajuddhur6892 3 года назад

    nice video...but don't forget to record your cursor also xD :)
    😁

  • @kahwigulum
    @kahwigulum 2 года назад

    and here i thought json stood for 'just a series of numbers'

  • @ckthomas5756
    @ckthomas5756 3 года назад

    Can you teach us how to make multiplayer game

  • @patcher14
    @patcher14 3 года назад +1

    Does this work on your ursa-craft?

    • @ClearCode
      @ClearCode  3 года назад

      it is just another python module, it works with anything, including pygame and ursina.

  • @GUITARATION
    @GUITARATION 3 года назад

    Thanks 👍👍

  • @itsME-dc4vm
    @itsME-dc4vm 3 года назад +1

    Nice ;D

  • @mrdc3
    @mrdc3 2 года назад

    How would I implement this with your Mario style platformer?

  • @ZgavY
    @ZgavY 2 года назад

    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

  • @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 года назад +1

      In a singleplayer game, why would you want to prevent the user from cheating?

  • @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 года назад +1

      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? 😅

  • @thealgomanxr
    @thealgomanxr 3 года назад

    he bacc

  • @aiyazm7278
    @aiyazm7278 3 года назад

    Hi I need your help

    • @aiyazm7278
      @aiyazm7278 3 года назад

      I had a problem in Arduino UNO using python

  • @rileylecaptain113
    @rileylecaptain113 8 месяцев назад

    18:02, just saving so i can sleep :)

  • @allanimeworld2898
    @allanimeworld2898 3 года назад

    Sir if its possible please make games by kivy too

  • @samuelkalteis8442
    @samuelkalteis8442 3 года назад

    can you code the floppy bird game with memory?

  • @sharadthecurioustardigrade1533
    @sharadthecurioustardigrade1533 3 года назад

    Kivy tuts pls

  • @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)

  • @danigui8573
    @danigui8573 3 года назад

    Can you teach how to do this with sqlite3?