Creating a Brick Breaker with my PHYSICS ENGINE

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

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

  • @alacer8878
    @alacer8878 2 года назад +347

    I'd legitimately lose a few hours playing this. It's so neat seeing random experiments and concepts being applied to create a cool looking game.

  • @Stefanutsu
    @Stefanutsu 2 года назад +100

    I'm absolutely stunned everytime you upload. The presentation and the code give an amazing sense of quality, its as if my endgoal as a programmer would be reaching something like your level.

  • @shanewalsch
    @shanewalsch 2 года назад +72

    You can add a heavy one, which goes through many objjects on the way without bouncing from them

    • @PezzzasWork
      @PezzzasWork  2 года назад +38

      That's a good idea!

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

      though about this aswell just playing around with the mass of some balls

  • @needamuffin
    @needamuffin 2 года назад +147

    3:20 That's actually a pretty good illustration of self-sustaining fission reactions.

  • @KevinCrouch0
    @KevinCrouch0 2 года назад +44

    It's tough to tell which parts are "dead" blocks or rubble and which blocks still need to get hit to clear the level.
    Maybe the "dead" block chunks go more black/lose colors to show they don't matter any more

  • @Cloruro
    @Cloruro 2 года назад +14

    Reactor 4 be like 3:21

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

      Exactly my thoughts 😆

  • @GamingBlarg
    @GamingBlarg 2 года назад +54

    This is the kinda stuff I love about making games, getting a dope concept and then running with it till you have a addicting game on your hands
    I made an asteroids clone a couple years back and my favourite thing after I got the basics down was adding all the fun shit like the UFOs and powerups

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

      Did you ever play Inner Space on win 95? Awesome game from my childhood I need to find again ....

  • @TodePond
    @TodePond 2 года назад +13

    Niiiice! It's so satisfying to see how it built up piece by piece! 🤩

  • @dairop3220
    @dairop3220 2 года назад +19

    Tes projets dont toujours aussi stylés, tu m'impressionne à chaque fois srx ! Continue comme ça !

  • @csh0vel
    @csh0vel 2 года назад +10

    Interesting and awesome as always! I love your work, man!

  • @tomsterbg8130
    @tomsterbg8130 2 года назад +19

    I love the effort put into making this work with most of the exclusive cases! You sure put a good amount of effort in it and after all that's a game you can freely monetize! I wouldn't suggest as it's barely got a gameplay, but it's very fun still and I'm imagining it's around 1000 - 2000 lines of code too.
    A few ideas you could try are adding platform size shrink and enlarge blocks as well as some spiked ball that goes more easily through debree. Adding a row of bricks randomly chosen every few seconds and if a brick falls down it's game over as well as when losing a ball. You can play infinite gamemode without winning condition or a gamemode that goes on stages with progressive difficulty and has winning condition. A scoring system when breaking bricks and possibly when losing balls, a life system if you want to give the player more forgiveness when they lose and a roguelite gamemode with permanent upgrades such as more lifes, a slider that can set the speed of balls (level 1 is 0.9-1.1x speed, level 2 0.8-1.2x like that), pause, better explosions, more damage from a ball, balls curve towards your cursor, you can make balls go more easily through blocks or reduce block health, add stronger blocks. There's a thousand things you can do!

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

      Yeah monetize it, what an unique idea, and half of the world including me cant play it, creator surely couldnt think of that

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

      @@win95beta5 Oh look another person who thinks creators should make everything free until the content comes to an abrupt end because they got evicted from their fucking house lmao

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

      @@win95beta5 do you not pay for any products you use?

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

      @@boblobgobstopper13214 Yeah, but rarely, i have life outside computer

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

      @@win95beta5 life outside the computer still requires you to pay for things. You pay for food, shelter, transportation, even work requires you to “pay” for money with your time and effort. How does paying for a game mean half the world can’t play it?

  • @dwhorlow8397
    @dwhorlow8397 2 года назад +5

    What are the specs of the pc you're running this with?

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

    Hi, how did you learn all these things about physics and how did you integrate them into the code? Where did you learn to code?

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

      Don’t mind me I’m here for the notif if this gets a reply

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

      Hi! It took me quite a long time to be honest. This video was a great help www.gdcvault.com/play/1020603/Physics-for-Game-Programmers-Understanding
      The channel of Matthias Müller is also pure gold if you want to learn to physics for programming ruclips.net/user/matthimf

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

      @@PezzzasWork Thanks

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

    Awesome work.
    Adding a bit of momentum to balls thrown from the explosions would make them feel stronger and would make the explosive ball powerup more chaotic.
    I love the upside down gravity part. Making the bricks look like upside down buildings would make a great phone game. Like an alien invasion version of brick break just make the paddle a saucer.

  • @bloodkiller-zg3jc
    @bloodkiller-zg3jc 2 года назад +6

    i love how capturing your vids are, awesome job (happy New Year, man!)

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

      Thank you! you too :)

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

      No kidding, I checked this vid out in preview and watched the whole thing there lmao

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

    Add a level editor and a price tag and this is worth 5$ minimum at that point.

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

    Truly a brick breaker game, awesome!

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

    *@Pezzza's Work*
    *_Want to make it even MORE unique?_* :D
    Instead of putting the entire game onto a "fixed" background like now...
    instead put the game onto the cloth-simulation at 0:06 like the game is projected onto the cloth, and the boxes & paddle has weight & physics that affect how the cloth moves, maybe an upgrade that adds wind? or the really powerful explosions leave actual holes in the cloth (either the balls bounces off the holes, or passes through but you can't see what happens there, depends on if you want it to behave like the blocks are actually inside the cloths [solid holes], or the game is a projection onto the cloth [pass through holes]).
    If the motions are violent enough, then the cloth folds over itself & you can't see what happens in that area :D

  • @m.shakibhosseinzadeh8415
    @m.shakibhosseinzadeh8415 2 года назад +1

    It Reminded me of ricochet infinity game, if u didn't play it u could check videos of it, can give u some awesome ideas

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

      Yeah the special powers really make it look similar.

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

    it is very very nice. i would suggest randomly rotating the explosion effects to make it look less semetrical

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

    this is amazing. i know how to make the verlet physics engine but can you post some resources explaining how the “parts” algorithm works? i can only think of one way (flood fill) but it seems slow so any pointers would be appreciated :)

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

      You could use a union-find data structure: iterating over all blocks B and all neighbors N of B, union N with B. Then calling find on some block will give the part it belongs to.

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

    You should look into this game called Noita, and the Falling Everything engine

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

      Yes I saw this game, really nice! They have a very different approach but in the end the result is quite similar

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

    3:22 he literally made an atom bomb

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

    Can u tell me how you learned all of this stuff. How, Where and why, I'm just very interested in your background because this is pretty cool

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

    This is awesome! You did all of this in C++? Very well presented video as well

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

      Thank you very much! Yes it is 100% c++

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

    damn, how can one learn to make such physics

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

    its crazy how few subs you have for real. you're cloth sim vid has a million views, so just start adding "REAL TIME" to all your videos lol

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

    Hello im i'm interested if "Executable demo soon" is actual information ? Looking forward to try this game :)
    good job as always

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

    i want this on my phone

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

    ... I've payed for worse brick breaker games. Maybe put the line on the top, call it bunker buster, and you win if you hit something under a secure bunker? That'd be a neat twist on the concept

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

    The Simulation/Game is very cool, but i also have to ask about the music. Where can i find it? Did you compose it yourself?

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

    Have the physics engine run as a service on my gaming PC and stream the visuals/control feedback to/from my phone via internet.

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

    compliments
    But admit it, you got the sound effects from Jak and Dexter :P

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

    pls. pls. just upload it to itch!!!!!!!!! not begging sorry if it sounded rude

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

    Reminds me of Teardown's destruction engine, but 2D

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

    1:40 what is the algorithm name? Sorry for bad English =)

  • @Mr.C710.
    @Mr.C710. 2 года назад

    i may have a idea on what to call this.......sand brick Breakout (sense the blocks look like there made out of sandstone)

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

    This should have been developed 20years ago . Better late than never humans.

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

    Would you be able to make this into a “mobile game”? Apologies if this has been asked before.

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

    This is incredible. How did you learn all of this? Do you have any resources or paths you recommend?

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

    This looks great and like a lot of fun! Is there actually a working game?

  • @mannguyenduy3688
    @mannguyenduy3688 6 месяцев назад

    can you explain more about the parts detection algorithm in 1:37?

  • @penevsvagina
    @penevsvagina 2 года назад +15

    You've working on a lot of things, you applied those things to create this, wow. Is the code available to see it and try?

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

    At 1:39 what is the "parts detection algorithm" you have used?

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

    Can you do a tutorial on how to do this level of destruction for people who are new to making games?

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

    I think someone watched "Juice it or lose it" ;)
    Very nice work

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

    Can u explain a little more about it? Where did u learn that, link to some article myb?

  • @punk3900
    @punk3900 5 месяцев назад

    if you created this 40 years ago for Atari you would be God

  • @starplatinum3305
    @starplatinum3305 5 месяцев назад

    How part detection algorithm works ?

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

    does anyone have any idea what language/software was used to make this?

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

    That chicken has cool glasses for a reason!

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

    I would pay money for this.
    I can see this as a perfect thing for on-the-go gaming for Android/iOS in a vertical orientation.
    Maybe with some extras (don't ask me, I unfortunately don't dev games) it could fit the likes of Steam too.

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

    I think this game don't need this gravity tricks

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

    Hi @Pezzza's Work, have you ever thought about making a "Lamers" game dev SKD. things like the old school S.E.U.C.K on Atari ST/Amiga (depending on age here)
    Simple point n click game dev for low level programmers/kids game dev etc... your routines work
    Just a thought, awesome codebase. Looking forward to looking through your other vids

  • @45hr52
    @45hr52 2 года назад

    I love this video and all but nobody going to talk about it this or am I the only one who saw it
    1:37

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

    I work as a Computer scientist but focused on backend and am currently working with ai. I have rarely touched physics ( used unity once at 14. am 18 now). what language do you code in? Do you use a frontend that is visual and you only code snippets (like unity,UE)? Can I see the source code?

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

      Not sure about this specifically but his ants simulations he’s used C++ with SFML for graphics and input

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

      I am indeed using C++ and SFML for this project as well

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

    I recently started learning a little bit of C++ and OpenGL and now I’m inspired to eventually try making a basic prototype of something like this :D Thanks for sharing your work with us!

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

    reminds me of 'stabyourself' games remember those?

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

    Is there such part algorithm for 3d?

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

    m8 you can't just show off something this cool and epic and then put "Executable demo soon." and then leave us hanging for half a year. I need this in my life

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

    When you’re inside a nuke and the nuke sets off: 3:23

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

    Oh wow! If you turned this into a mobile game I'd download this in a heartbeat. Great job! So so cool.

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

    Color palette feels kinda boring.

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

    Which programming language and graphic/game libraries did you use? Btw. Great work!

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

    IMO there should be strobe colored text when a powerup is used (that isn’t the extra ball text) that tells you what happened
    Good looking game overall!

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

    where is it built? Because my guess is that it was not made without something like unity, but there always is a possibitiy that some kind of a crazy guy decided to create something like thay using raw c: c++ or even assembly

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

      I don't use engines for my projects, I like to do things from scratch (in C++)

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

    Arkanoid... but over 9000!

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

    you could make money launching games on steam!

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

    This is very satisfying. Thank you.

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

    I would pay $5 for this. $3 on sale, $1 instant buy for steam mega sales. No joke!

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

    This looks and sounds a lot like a virtual casino game lol

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

    Atomic explosions be like: 3:22

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

    I really hope you have games on sale Pezza. You should be getting income for your skilled work.

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

    Quite sad that a brick breaker game with physics engine didn't have collisions between balls, it would be a lot of funs!

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

    Is this going to be the 2d version of teardown?

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

    ive been waiting for 3 years wheres the demo

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

    I'm a physics major and I've just begun coding some games back in January. I first made pong, then decided to make a brick breaker. I've been working on it for months, learning as I go, and this is amazing and inspiring

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

    while watching the explosions, i was thinking that the explosions in many pixel- or voxel-based games look somewhat similar. if anyone has any insight on this, it would be much appreciated.

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

    Ii think you to try working with blender

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

    Hell, yeah! I'd play the heck out of that.

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

    This will be like teardown but its 2D also I'd recommend working on the vehicles after you release the demo

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

    Please make it a game and I'll buy it!

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

    3:19 feels like an analogy for a chain reaction

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

    With some themed stages for the gravity effects and pretty backgrounds I'd buy this on steam.

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

    You should add the unbreakable blocks as well. Would make things even more interesting.

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

    This reminds me of good times making level sets for LBreakout2. The effects from the soft-body physics are really fun!

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

    i'd literally wanna play this

  • @amber.mp4
    @amber.mp4 2 года назад

    another one i would love to play

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

    Yo

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

    This is noita levels of good!

  • @Yee_.
    @Yee_. Год назад

    Bruh made 2D teardown 💀

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

    AHAaw shitt ! that's greaaaaaat!!!!!!!!

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

    Men of culture, we meet again.

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

    It reminds me about teardown

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

    this is really cool

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

    brilliant gravity

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

    A wonderful spin on a classic game. How soon will that executable demo be?

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

    Mon gars t'es trop chaud, je kifferai être capable de coder avec une qualité similaire a la celle que tu tiens dans tes projets. Continue à nous inoressioner!

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

    Make it 3d plsdss

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

    Now could u make one at a larger scale with special blocks randomly placed and seperated at different intervals depending on how close it to the bottom?