So I Made a Python Game in 48 Hours…

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

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

  • @barj
    @barj  Год назад +3

    Become a member to access cool perks (Free unlimited burritos) ruclips.net/channel/UCz3l6nyODzXLzTxIkARZ8rwjoin

  • @JustFredrik
    @JustFredrik 4 года назад +406

    That v-sync and delta time segment was really well made! :D

    • @barj
      @barj  4 года назад +21

      Thanks chief :)

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

      @@barj Couldn't you have just imported the time module and made it tick when you needed it to?

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

      yeah if only goodgis or polymars made mini tutorials!

  • @tomweiland
    @tomweiland 4 года назад +255

    I felt that on a spiritual level when you mentioned you only discovered the built in collisions after the fact 😭

  • @DanielLochner
    @DanielLochner 4 года назад +45

    This is soooo well made Jack! Also, I can't believe how much I relate to your built-in physics discovery! The same happened to me, but with GameMaker... I was so broken after I found out haha

    • @barj
      @barj  4 года назад +6

      Great Minds forget to read documentation alike :0

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

      :| gamemaker is how you make unoriginal games also this game sucks I could make it in, not even joking probably 12 lines of code give or take 2 could make this in like 2 hours :}}}}}}}}}}}}}}}}}}}}}}}}}}}} jjjjjjeeeeez le pepe

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

      @@barj :| maybe if you stopped replying to literally every comment you'd be able to get more done lmao

    • @devdutmn9608
      @devdutmn9608 3 года назад +3

      Damn you have a high ego, first make a proper game.

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

      @@devdutmn9608 I think it's just for getting replies...

  • @Skeffles
    @Skeffles 4 года назад +117

    It's great to see you jump into pygame for this. It's a shame you didn't use their collision but collision can be interesting to work on so I hope you enjoyed it.

    • @barj
      @barj  3 года назад +19

      It was a fun challenge for sure :)

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

      @@barj bro which app used for making it

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

      @@snehitsiva6713 It’s VS Code

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

      @@Itstimetorecoverhad a coder friend recommend it. It’s pretty good.

  • @barj
    @barj  4 года назад +94

    SUBSCRIBE FOR FREE DOUGHNUTS!!! (And to check out my other vids maybe idk…)

  • @justtrim
    @justtrim 3 года назад +8

    in all my years of programming i've never seen a more simple and understandable explanation of delta time, great stuff!

  • @marek_romk
    @marek_romk 4 года назад +31

    Great video! Altough something you should know, when you explained variable interval, pygame does not use the gpu. It is 100% on the cpu.

    • @barj
      @barj  4 года назад +10

      Thank you! I was explaining how the GPU pushes the next frame to the monitor the timings are based off of how long it takes the GPU to push the next frame. While the CPU has to have completed all necessary calculations before the GPU displays them, my abstraction was assuming the GPU has all data it needs, it then is up to the speed of your GPU to interpret that data and display it as a refresh, the timing done by the GPU from the display of one refresh to the next is the deltatime.

    • @marek_romk
      @marek_romk 4 года назад +6

      @@barj ahh, i watched it again and saw it. It is with the display and gpu . Not the calculations. Good explanation!

    • @barj
      @barj  4 года назад +4

      @@marek_romk Thanks man! Always open to corrections :)

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

      so pygame, a wrapper for games, is not hardware accelerated?

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

    Found you via the dev dump podcast mate. Enjoyed your vid.
    Love how you guys are all buddies and jump in and out of each other’s vids haha

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

      I'm very lucky to have such a good group of friends :) Thank you!

  • @weirddevers9165
    @weirddevers9165 4 года назад +25

    I remember playing this game. That was quite fun. Didn’t know that we’ve participated in the same jam.

    • @barj
      @barj  4 года назад +6

      Glad you enjoyed

  • @YannickGames
    @YannickGames 4 года назад +97

    You totally convinced me to stick to my good old Unity haha :D

  • @GRHmedia
    @GRHmedia 3 года назад +8

    For collision detection you could reduce the work a bit.
    You had snowballs which means you could have done a distance check center to center and if it is smaller than the to radius added together you have a collision. If you want to use boxes, use the leading corner trick. You test to see if the leading corners are inside the other boxes area. You have to do it both ways though. That way if the box being hit is smaller than the length of the striking objects side it will still register a hit.

  • @proguko
    @proguko Год назад +1

    Creating games be like:
    C: "You can't defeat me"
    Python: "No I know, but he can"
    * Pygame appears *

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

    Only me who really loved the old Barji Profile Picture

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

      :( it will be sorely missed

  • @EtraGames
    @EtraGames 4 года назад +11

    I’d shorten the title to “Making a Python Game in 48 hours (No Experience)“ Just to shorten the beginning of the title a bit. It’s cool to hear about you trying new things with the jams!

    • @barj
      @barj  4 года назад

      Thanks man :)

  • @ReeceGeofroy
    @ReeceGeofroy 4 года назад +135

    This video was hand crafted by a God Amongst Men.

    • @barj
      @barj  3 года назад +17

      That's Me :D

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

      Among us*

    • @SquidBeats
      @SquidBeats 3 года назад +5

      Jesus Christ is God

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

      Don't say it, don't say it, don't say it, don't say it, don't say it 😳

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

      Hi reece

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

    I Liked how it turns out very inspiring & Cool!

    • @barj
      @barj  4 года назад

      Thanks sir

  • @pedror1439
    @pedror1439 4 года назад +1

    this is actually a good video! Keep on the good work!

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

      Why thank you pedro :)

  • @PhilDeveloper
    @PhilDeveloper 4 года назад +2

    this is... so IMPRESSIVE! good job.

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

      Thanks Phil :)

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

    1:30 "So we went with that". Him and his dog.

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

      I need to stop with the "we"

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

      Hey Box

  • @codergopher8270
    @codergopher8270 4 года назад +5

    This is Epic++, you've proved that even 48 hours of Pythonpain is nothing to the EpicC++Gang! The animations in the vid are sick, looking forward to the next one!

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

      C++ = Cringe

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

    Really cool vid loved it

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

    Barji, you feel that about pygame like that because you are a full-time unity and stuff dev
    but as a full-time pygame and partial unity dev with great experience, I worship it

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

    whenever I hear your voice, my brain just thinks about **muck** and **bob**

  • @0dd3k73
    @0dd3k73 3 года назад

    That's the legendary man that named muck "muck"

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

    Inspiring!

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

    Good stuff!

  • @xzippyzachx
    @xzippyzachx 4 года назад +9

    Yeah Python !!!

    • @barj
      @barj  4 года назад +2

      Thumbs down 👎

    • @xzippyzachx
      @xzippyzachx 4 года назад +1

      @@barj But python cooooolll! lol

    • @barj
      @barj  4 года назад +2

      @@xzippyzachx python cringeeee! Not this vid though 😳

    • @xzippyzachx
      @xzippyzachx 4 года назад

      @@barj lol

    • @hdhwkq
      @hdhwkq 4 года назад +1

      @@barj that's very uncool

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

    That delta time stuff feels like high school

  • @noahjames9457
    @noahjames9457 4 года назад

    i like the GPU animation, it's pretty slick

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

      Why thank you :)

  • @theafr0842
    @theafr0842 3 года назад +8

    I've used pygame regularly for about a year now and I have to say that It's alot more powerful then people give it credit for, but otherwise, great video
    earned a sub :)

    • @barj
      @barj  3 года назад +3

      It's super powerful! It's python I've got an unwarranted vendetta a game, as far as pygame goes, it's flawless. I'd recommend checking out raylib too if you haven't already, it's just as high level as pygame but you can use almost any programming language!

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

      Can you help me out then, please. I have problems with making 8d movement. And the problem is, pygame moves rects only by whole numbers of pixels, and that's why I cant implement 8d movement the right way. I just can not make pygame move the rect in all directions with the same speed. help me please :(

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

    Great content, just subbed 👍 pygame ain't to bad. have my own pygame channel focused on game dev tools and puzzles ( when I have time).

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

    Incredible Came Here From The Podcast 😊
    " poly Mars "

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

      Hope you enjoyed :)

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

      @@barj Yes !! You have a Discord ?

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

      @@amazing40 yessir, link is in the description

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

      @@barj Okay!

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

    FYI: delta time is actually the time that has passed since the last frame

  • @DawnColon-hn8pl
    @DawnColon-hn8pl Год назад

    cool video)

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

    Game idea: you have limited energy. You can do a certain action that replenishes some level of energy, but also reduces your health. Then, you are forced to work your way through a maze or obstacles in a high-paced, difficult environment. Players can submit levels

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

    Why are you so underrated

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

    The work around you did for collisions kinda hurt me inside. But I know you are new to python and you did really well for what you knew.

  • @woosix7735
    @woosix7735 4 года назад +4

    I am curious on how python to other ways of making games, for example your asteroid game with SFML. Which would you prefer, and why? (Why would anyone make a game with python lol)

    • @barj
      @barj  4 года назад +2

      SFML was more of a challenge, whereas python was really easy. I much prefer using c++ over python as python has some really weird missing features and mutability rules. SFML for sure :)

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

    Cool! :)

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

    This is so much similar to making a game in canvas HTML/JavaScript, except you don't need executable file to play the game.

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

    Just curious, why don’t you like Python? I started with Java, learned C++, and used to be rather anti-Python until I got into it. I like that I can just start scripting without all the preamble, is there something I’m too inexperienced to recognize as a drawback? Is the drawback something specific to making games?

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

    I would get an aneurysm from coding python this intensively

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

    Bro which theme are you using at 3:08, I really liked it and want to apply in my vs code

  • @Marco-sm9bu
    @Marco-sm9bu 3 года назад

    the fact that this can be made in like 20 minutes in scratch

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

    As a programming student, this brings me hope.

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

    Python is awesome you can code anything

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

    0:00
    Game-engine only programmers be like.

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

    love ur video

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

    so good!

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

    imagine a game jam for scratch. I wonder how it will turn out.

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

    I really love the pygame thing and I don't know why but I learn all alone and Google

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

      I think you make the movement too long in code in pygame there is keyup and key down so you make the variable right_movment = False

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

    Can you make a video demonstrating how to convert the executables into a package?
    I made a game long ago and couldn't find a way to run on a friend's computer without installing py environment on his PC and that was the sole reason I stopped making pygames.

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

    You could try godot and gdscript (kinda similar to python but with more things built in)

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

      I definitely want to make a godot game. Maybe @Goodgis Collab?

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

    You should've made him grow, when he's rolling. Plus the bigger he is - the slower his speed changes. So much, that he might be unable to start rolling for some time, and be forced to wait until he somewhat melts.

  • @aayuu_.68
    @aayuu_.68 3 года назад +2

    Can you show us this game code ??

  • @Tantandev
    @Tantandev 4 года назад +1

    Now, pls use Rust for the next gamejam it will probably be worse (because Rust has a borrowchecker)
    But if you get used to a borrowchecker then it's fantastic to work with

    • @barj
      @barj  4 года назад +1

      Rust is definitely something I want to try

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

    Is it just me or that player snowball looks really plain i mean a face on it would be better 👀

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

    you are so underrated

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

    Awesome

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

    you were the guy who named muck?

  • @Grant-bx5fv
    @Grant-bx5fv 2 года назад

    Can I ask why you don’t like python? It’s easy, has a lot of ease of use features, and almost no syntax. What do you hate about it?

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

    I'm having a mental breakdown about the fact that you didn't just use pygame's box collider. It's like using Unity to create a game engine

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

    Bro did a better job than me scrambling 2 months for a coding language

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

    Pog

  • @pugchamp1795
    @pugchamp1795 4 года назад +2

    how are comments on before the video is out bruh

    • @barj
      @barj  4 года назад

      magic.

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

    Can u teach Phyton or have classes?

  • @artemzelinskiy2890
    @artemzelinskiy2890 4 года назад

    Yo dude, try to show your content on TikTok 'cause there are many people that are interested in game development and other similar stuff like that, so you'll find some friends or some new subscribers. Btw your content is really interesting. Go ahead!
    P.S. GL

    • @barj
      @barj  4 года назад

      Thanks man, I do post tiktoks every now and then :)

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

    Make the same thing in less than a hour in Unity. (always choose the right tools, for a given 'problem')

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

    but dont you have to use like unreal or something? how do people make games and when does code come into the development

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

    well done, wish i could code like that

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

    I love this channel so much but at the same time I haaaaate you for hating on my fav language

  • @mr.no_1130
    @mr.no_1130 2 года назад

    which theme of vs code ur using ??
    And which font is it ??

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

    I was wondering if there is a way to publish a pygame game because I do not know how to publish one

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

    you should have done that in ursina engine

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

    when mushy update?

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

    Boom

  • @한진영-o5q
    @한진영-o5q 2 года назад

    Barjii, can't you perhaps have a bet with PolyMars again? pleaseeee like you did once. of course not with 1000 dollars. maybe on something less and casual? pleaseeeeee can't ya?

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

    very cool...

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

      No u

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

    Can we make big game using python

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

    where can i learn python? seems fun

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

    Rad. How'd you learn to do this?

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

    Why didnt you use unitys particle system

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

    You should do a challenge where you have to use a random language: you put a bunch of languages (you’ve never used) and put them in a random picker and then what Ever it chooses you do

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

    sir.. can u tell which software that u used for creating assets

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

    I saw the code and I found that you loaded the image from "Data/Textures/Snowball.png" I also tried to make a game with pygame and I loaded images from a particular place of my pc and as soon as I covert the python file to .exe it does not work since it is not able to load images. So I wanna know that how can I succesfully covert it to .exe and what do "Data/Textures/Snowball.png" this mean and can I implemet this too?
    I know that this is a long and might be a poor question but I think that you might be able to help me.
    Or even somebody else can help me then also its great!
    Thx for your time appreciate it!

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

      Just make sure the exe is placed in the same place as the py file, and be sure to use relative paths.

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

      @@barj thx for your help I will try it out and if it works I will inform you
      Thx for your help ez Subscribe

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

    How many lines of coding did you make?

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

    Made a game exactly like this 2-3 years ago with asteroids :P . The game was too laggy and barely playable XD

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

    how did you leanr to code\

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

    Python is like lua. It looks horrible and hard to learn to newcomers but it isn't at all in fact it's easier than say C#

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

    from where you get the snow player image

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

    you know what, I'm not yet a Python expert... but it's probably not the best language to code games in

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

    Me: learning python to make cheats for this game

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

    I have no idea how he has a Mac Cursor on a windows pc

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

      It’s pretty simple, google a tutorial on how to do it if you want one :D

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

      @@barj I have a Mac lmao but why do you want the Mac cursor anyway lol

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

      @@binzwo1004 I like it

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

      @@barj lol, you do you

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

    cool

  • @Jamies64gaming
    @Jamies64gaming 4 года назад +2

    as a person whos only made games in python, I pity you

    • @barj
      @barj  3 года назад +3

      This should be considered self-harm

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

    Pygame is better for 2 dimension games, there is a library called Ursina that is better than that.

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

    R4om the creators of muck

  • @user-pu8ft6cq6k
    @user-pu8ft6cq6k 3 года назад

    How do u get pygame

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

    When I said delta time in sync with the video......