So I Made a Python Game in 48 Hours…

Ойын-сауық

In This Video, I made my first ever game in Pygame! Pygame is a framework for making games with the programming language python.
Play the game here barji.itch.io/sno-snow
Source: github.com/Jack-Lomax/SnoSnow...
-Chapters-
0:00 - Intro
0:51 - Prejam
1:31 - Jam
3:08 - Inputs
3:35 - Collisions
4:25 - Art
5:22 - Gameplay loop
6:00 - Polish
6:19 - Conclusion
-Socials-
Twitter: / barjiyt
Discord: / discord
All Music in this video comes from Epidemic sounds, a company I am signed with and is never considered void.
Other Cool Dev's Videos:
I Made Sonic the Hedgehog but it's 3D (CodyCantEatThis)
• I Made Sonic the Hedge...
Making A Game With Twitter's Bot API (Polymars)
• Making a Game With Dis... %E2%80%8B
Godot Vs Unity: The Ultimate Game Engine Showdown (Goodgis)
• Godot Vs Unity: The Ul...
Codeer - Introduction To My Weird Shooter Game - Devlog 0
• Introduction To My Wei...
PolyMars - Making a Game With Discord's Bot API
• Making a Game With Dis... ​​
BWDev - Upgrading the Island Map! Unity Indie Game Devlog
• Upgrading the Island M...
Sam Hogan - I Made a Game Inside a Game Inside a Game Inside a Game...
• I Made a Game Inside a...
Reece Geofroy - How To Pixel Art In 10 Minutes | Pixel Art Tutorial
• How To Pixel Art In 10...
In today's game development video I make my own game with the python library pygame! This library uses the python programming language and was extremely easy to setup. How do you make games with python? One might ask this question in which case here's how I started "Making A Python Game In 48 Hours (No Experience)"
#Gamedev #Programming #Python #Pygame

Пікірлер: 244

  • @barj
    @barj10 ай бұрын

    Become a member to access cool perks (Free unlimited burritos) kzread.info/dron/z3l6nyODzXLzTxIkARZ8rw.htmljoin

  • @JustFredrik
    @JustFredrik3 жыл бұрын

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

  • @barj

    @barj

    3 жыл бұрын

    Thanks chief :)

  • @moodlethenoodle

    @moodlethenoodle

    2 жыл бұрын

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

  • @rafshkim

    @rafshkim

    2 жыл бұрын

    yeah if only goodgis or polymars made mini tutorials!

  • @tomweiland
    @tomweiland3 жыл бұрын

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

  • @sripranav

    @sripranav

    2 жыл бұрын

    I know u

  • @tomweiland

    @tomweiland

    2 жыл бұрын

    @@sripranav 😳

  • @mysteriesphanto3528

    @mysteriesphanto3528

    2 жыл бұрын

    @@sripranav but i do know you

  • @Skeffles
    @Skeffles3 жыл бұрын

    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 жыл бұрын

    It was a fun challenge for sure :)

  • @snehitsiva6713

    @snehitsiva6713

    2 жыл бұрын

    @@barj bro which app used for making it

  • @Itstimetorecover

    @Itstimetorecover

    2 жыл бұрын

    @@snehitsiva6713 It’s VS Code

  • @themoocow7718

    @themoocow7718

    6 ай бұрын

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

  • @justtrim
    @justtrim2 жыл бұрын

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

  • @DanielLochner
    @DanielLochner3 жыл бұрын

    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

    3 жыл бұрын

    Great Minds forget to read documentation alike :0

  • @HDFaithfuul

    @HDFaithfuul

    2 жыл бұрын

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

    2 жыл бұрын

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

  • @devdutmn9608

    @devdutmn9608

    2 жыл бұрын

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

  • @Charlito33

    @Charlito33

    2 жыл бұрын

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

  • @ChrisTeeGaming
    @ChrisTeeGaming3 жыл бұрын

    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 жыл бұрын

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

  • @GRHmedia
    @GRHmedia2 жыл бұрын

    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.

  • @weirddevers9165
    @weirddevers91653 жыл бұрын

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

  • @barj

    @barj

    3 жыл бұрын

    Glad you enjoyed

  • @handyz5576
    @handyz55763 жыл бұрын

    I Liked how it turns out very inspiring & Cool!

  • @barj

    @barj

    3 жыл бұрын

    Thanks sir

  • @pedror1439
    @pedror14393 жыл бұрын

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

  • @barj

    @barj

    3 жыл бұрын

    Why thank you pedro :)

  • @marek_romk
    @marek_romk3 жыл бұрын

    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

    3 жыл бұрын

    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

    3 жыл бұрын

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

  • @barj

    @barj

    3 жыл бұрын

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

  • @mariocamspam72

    @mariocamspam72

    2 жыл бұрын

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

  • @YannickGames
    @YannickGames3 жыл бұрын

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

  • @barj

    @barj

    3 жыл бұрын

    Wise Guy D:

  • @tacthib1396

    @tacthib1396

    2 жыл бұрын

    Go check DaFluffyPotato, maybe he can convince you to use python.

  • @electricimpulsetoprogramming

    @electricimpulsetoprogramming

    2 жыл бұрын

    Go check DaFluffyPotato

  • @tacthib1396

    @tacthib1396

    2 жыл бұрын

    @@electricimpulsetoprogramming I already said that lol

  • @electricimpulsetoprogramming

    @electricimpulsetoprogramming

    2 жыл бұрын

    @@tacthib1396 You didn't sir

  • @PhilDeveloper
    @PhilDeveloper3 жыл бұрын

    this is... so IMPRESSIVE! good job.

  • @barj

    @barj

    3 жыл бұрын

    Thanks Phil :)

  • @ReeceGeofroy
    @ReeceGeofroy3 жыл бұрын

    This video was hand crafted by a God Amongst Men.

  • @barj

    @barj

    3 жыл бұрын

    That's Me :D

  • @VirusFlexovitch

    @VirusFlexovitch

    2 жыл бұрын

    Among us*

  • @SquidBeats

    @SquidBeats

    2 жыл бұрын

    Jesus Christ is God

  • @spectrum5156

    @spectrum5156

    2 жыл бұрын

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

  • @all69stoff

    @all69stoff

    11 ай бұрын

    Hi reece

  • @daboxguy3848
    @daboxguy38483 жыл бұрын

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

  • @barj

    @barj

    3 жыл бұрын

    I need to stop with the "we"

  • @scoopydevy

    @scoopydevy

    3 жыл бұрын

    Hey Box

  • @EtraGames
    @EtraGames3 жыл бұрын

    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

    3 жыл бұрын

    Thanks man :)

  • @FFr0styProdz
    @FFr0styProdz Жыл бұрын

    Really cool vid loved it

  • @barj
    @barj3 жыл бұрын

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

  • @mibbleyt

    @mibbleyt

    2 жыл бұрын

    :( it better be or else.....

  • @eshanausis7083

    @eshanausis7083

    2 жыл бұрын

    ok

  • @itz_orangecreepergame

    @itz_orangecreepergame

    2 жыл бұрын

    i dont want to die

  • @itz_orangecreepergame

    @itz_orangecreepergame

    2 жыл бұрын

    so i will

  • @itz_orangecreepergame

    @itz_orangecreepergame

    2 жыл бұрын

    but no bell

  • @legendrags
    @legendrags2 жыл бұрын

    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

  • @nerdyturkey312
    @nerdyturkey3122 жыл бұрын

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

  • @codergopher8270
    @codergopher82703 жыл бұрын

    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 жыл бұрын

    C++ = Cringe

  • @blushingbutterfly7742
    @blushingbutterfly77422 жыл бұрын

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

  • @sirscott_
    @sirscott_2 жыл бұрын

    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

  • @lumberapple8820
    @lumberapple88202 жыл бұрын

    Good stuff!

  • @stickguy9109
    @stickguy91092 жыл бұрын

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

  • @noahjames9457
    @noahjames94573 жыл бұрын

    i like the GPU animation, it's pretty slick

  • @barj

    @barj

    3 жыл бұрын

    Why thank you :)

  • @zeeskhan5661
    @zeeskhan56612 жыл бұрын

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

  • @Sparky0919
    @Sparky09192 жыл бұрын

    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.

  • @Benjabenjaaaa
    @Benjabenjaaaa Жыл бұрын

    Only me who really loved the old Barji Profile Picture

  • @barj

    @barj

    Жыл бұрын

    :( it will be sorely missed

  • @chukaagbim3900
    @chukaagbim3900 Жыл бұрын

    That delta time stuff feels like high school

  • @0dd3k73
    @0dd3k732 жыл бұрын

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

  • @nathanielpullig932
    @nathanielpullig932 Жыл бұрын

    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?

  • @sandiguha
    @sandiguha2 жыл бұрын

    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.

  • @proguko
    @proguko10 ай бұрын

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

  • @earl1144
    @earl11442 жыл бұрын

    As a programming student, this brings me hope.

  • @Will_of_Iron
    @Will_of_Iron2 жыл бұрын

    Inspiring!

  • @mr.no_1130
    @mr.no_11302 жыл бұрын

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

  • @xzippyzachx
    @xzippyzachx3 жыл бұрын

    Yeah Python !!!

  • @barj

    @barj

    3 жыл бұрын

    Thumbs down 👎

  • @xzippyzachx

    @xzippyzachx

    3 жыл бұрын

    @@barj But python cooooolll! lol

  • @barj

    @barj

    3 жыл бұрын

    @@xzippyzachx python cringeeee! Not this vid though 😳

  • @xzippyzachx

    @xzippyzachx

    3 жыл бұрын

    @@barj lol

  • @hdhwkq

    @hdhwkq

    3 жыл бұрын

    @@barj that's very uncool

  • @woosix7735
    @woosix77353 жыл бұрын

    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

    3 жыл бұрын

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

  • @theafr0842
    @theafr08423 жыл бұрын

    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 жыл бұрын

    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!

  • @TamakoYT

    @TamakoYT

    2 жыл бұрын

    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 :(

  • @weegie3343
    @weegie33432 жыл бұрын

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

  • @red1swonderworld
    @red1swonderworld2 жыл бұрын

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

  • @thedownloadtester1418
    @thedownloadtester14182 жыл бұрын

    Python is awesome you can code anything

  • @advancedcuber9226
    @advancedcuber92262 жыл бұрын

    from where you get the snow player image

  • @roshangeorge796
    @roshangeorge7962 жыл бұрын

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

  • @Marco-sm9bu
    @Marco-sm9bu2 жыл бұрын

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

  • @notawesomedanny785
    @notawesomedanny7852 жыл бұрын

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

  • @drdesten
    @drdesten2 жыл бұрын

    I would get an aneurysm from coding python this intensively

  • @shalevforfor5550
    @shalevforfor55505 ай бұрын

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

  • @shalevforfor5550

    @shalevforfor5550

    5 ай бұрын

    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

  • @mrfluffybeehive
    @mrfluffybeehive Жыл бұрын

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

  • @fiddleriddlediddlediddle
    @fiddleriddlediddlediddle2 жыл бұрын

    Rad. How'd you learn to do this?

  • @amiresmail3724
    @amiresmail37242 жыл бұрын

    Can u teach Phyton or have classes?

  • @bt260gaming9
    @bt260gaming92 жыл бұрын

    Why are you so underrated

  • @amazing40
    @amazing403 жыл бұрын

    Incredible Came Here From The Podcast 😊 " poly Mars "

  • @barj

    @barj

    3 жыл бұрын

    Hope you enjoyed :)

  • @amazing40

    @amazing40

    3 жыл бұрын

    @@barj Yes !! You have a Discord ?

  • @barj

    @barj

    3 жыл бұрын

    @@amazing40 yessir, link is in the description

  • @amazing40

    @amazing40

    3 жыл бұрын

    @@barj Okay!

  • @yourboiivan
    @yourboiivan2 жыл бұрын

    you were the guy who named muck?

  • @devmts
    @devmts2 жыл бұрын

    so good!

  • @gillarajieprasatya812
    @gillarajieprasatya8122 жыл бұрын

    love ur video

  • @DawnColon-hn8pl
    @DawnColon-hn8pl4 ай бұрын

    cool video)

  • @vedicdixit7933
    @vedicdixit79332 жыл бұрын

    How many lines of coding did you make?

  • @kilogram9559
    @kilogram95593 жыл бұрын

    you are so underrated

  • @sidneyprescott5267
    @sidneyprescott5267 Жыл бұрын

    where can i learn python? seems fun

  • @doltramir
    @doltramir2 жыл бұрын

    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.

  • @beronicous7086
    @beronicous70862 жыл бұрын

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

  • @amimizunochan
    @amimizunochan Жыл бұрын

    when mushy update?

  • @notagain3732
    @notagain37322 жыл бұрын

    Awesome

  • @domeen0gt895
    @domeen0gt8953 жыл бұрын

    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?

  • @animationsbelike
    @animationsbelike2 жыл бұрын

    Cool! :)

  • @aayuu_.68
    @aayuu_.682 жыл бұрын

    Can you show us this game code ??

  • @AyaanAnsariH
    @AyaanAnsariH2 жыл бұрын

    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

    2 жыл бұрын

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

  • @AyaanAnsariH

    @AyaanAnsariH

    2 жыл бұрын

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

  • @flyh1ghgd182
    @flyh1ghgd1822 жыл бұрын

    Why didnt you use unitys particle system

  • @yourkodi3945
    @yourkodi39452 жыл бұрын

    well done, wish i could code like that

  • @pugchamp1795
    @pugchamp17953 жыл бұрын

    how are comments on before the video is out bruh

  • @barj

    @barj

    3 жыл бұрын

    magic.

  • @proscience1226
    @proscience12262 жыл бұрын

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

  • @itslucalive6832
    @itslucalive68322 жыл бұрын

    how did you leanr to code\

  • @leobozkir5425
    @leobozkir54252 жыл бұрын

    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

  • @sleepynet13
    @sleepynet132 жыл бұрын

    you should have done that in ursina engine

  • @laynaTheLobster
    @laynaTheLobster2 жыл бұрын

    0:00 Game-engine only programmers be like.

  • @putin7959
    @putin79592 жыл бұрын

    the audio is sometimes too low

  • @GTDragonGaming
    @GTDragonGaming2 жыл бұрын

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

  • @thefatfebruary1063
    @thefatfebruary10633 жыл бұрын

    very cool...

  • @barj

    @barj

    3 жыл бұрын

    No u

  • @shrimpster3726
    @shrimpster3726 Жыл бұрын

    Pog

  • @Grant-bx5fv
    @Grant-bx5fv2 жыл бұрын

    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?

  • @user-pu8ft6cq6k
    @user-pu8ft6cq6k2 жыл бұрын

    How do u get pygame

  • @Tantandev
    @Tantandev3 жыл бұрын

    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

    3 жыл бұрын

    Rust is definitely something I want to try

  • @fcbarcelonafansclub5085
    @fcbarcelonafansclub5085 Жыл бұрын

    Can we make big game using python

  • @keyinnerg242
    @keyinnerg242 Жыл бұрын

    cool

  • @wolfsdendogsanctuary731
    @wolfsdendogsanctuary7312 жыл бұрын

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

  • @vilanstrikegaming5114
    @vilanstrikegaming51142 жыл бұрын

    Boom

  • @LotsOfFunyoutubechannel
    @LotsOfFunyoutubechannel2 жыл бұрын

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

  • @FoxWolf-rh3yi
    @FoxWolf-rh3yi Жыл бұрын

    Looks like on the inside of my kids life and likely

  • @bluelobster420
    @bluelobster420 Жыл бұрын

    Me: learning python to make cheats for this game

  • @deei5130
    @deei51303 жыл бұрын

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

  • @ConstantineWR
    @ConstantineWR3 жыл бұрын

    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

  • @fyu1945
    @fyu19453 жыл бұрын

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

  • @Girtharmstrong69

    @Girtharmstrong69

    2 жыл бұрын

    Thanks for the input weeb

  • @bruhhhhhh7961
    @bruhhhhhh79612 жыл бұрын

    R4om the creators of muck

  • @doggybruv
    @doggybruv2 жыл бұрын

    Watched the whole video and i still dont know what a coding is

  • @hackerprincess8810

    @hackerprincess8810

    2 жыл бұрын

    Sad

  • @Jamies64gaming
    @Jamies64gaming3 жыл бұрын

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

  • @barj

    @barj

    3 жыл бұрын

    This should be considered self-harm

  • @FoxWolf-rh3yi
    @FoxWolf-rh3yi Жыл бұрын

    I’m the psycho DiCecca Minecraft us

  • @binzwo1004
    @binzwo10042 жыл бұрын

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

  • @barj

    @barj

    2 жыл бұрын

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

  • @binzwo1004

    @binzwo1004

    2 жыл бұрын

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

  • @barj

    @barj

    2 жыл бұрын

    @@binzwo1004 I like it

  • @binzwo1004

    @binzwo1004

    2 жыл бұрын

    @@barj lol, you do you