Creating a Brick Breaker with my PHYSICS ENGINE

แชร์
ฝัง

ความคิดเห็น • 191

  • @Syz_gy
    @Syz_gy 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.

  • @needamuffin
    @needamuffin 2 ปีที่แล้ว +148

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

    • @gabrielecipriani6798
      @gabrielecipriani6798 2 ปีที่แล้ว +12

      Was about to write the same

    • @pipebombmailer
      @pipebombmailer 2 ปีที่แล้ว +18

      whats up guys today we’re going to be cutting a atom in half

    • @ewaldlatreider5127
      @ewaldlatreider5127 2 ปีที่แล้ว +6

      @@pipebombmailer many attoms in half :D

    • @mysterylink7550
      @mysterylink7550 2 ปีที่แล้ว +3

      Nice one 👍☺️☺️

    • @ahmedsaliherel
      @ahmedsaliherel 2 ปีที่แล้ว

      İt would be better if he did this with flying bomb blocks.

  • @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 2 ปีที่แล้ว +1

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

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

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

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

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

  • @Waffle_6
    @Waffle_6 2 ปีที่แล้ว

    you don’t understand how much i look forward to these videos

  • @frogman1
    @frogman1 2 ปีที่แล้ว

    the sound effects are so natural, i love it.

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

  • @Destroy3612
    @Destroy3612 2 ปีที่แล้ว +3

    Truly a brick breaker game, awesome!

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

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

  • @tyrendel
    @tyrendel ปีที่แล้ว +1

    Very nice seeing the steps you take!

  • @nyuh
    @nyuh 2 ปีที่แล้ว

    the gameplay is so chaotic i love it

  • @davidwagner6116
    @davidwagner6116 2 ปีที่แล้ว

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

  • @rodakdev
    @rodakdev 2 ปีที่แล้ว +1

    That chicken has cool glasses for a reason!

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

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

  • @zzz23523
    @zzz23523 2 ปีที่แล้ว

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

  • @trimsky8543
    @trimsky8543 2 ปีที่แล้ว

    You are just a master of math and c++! So cool! Very interesting

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

  • @jhwblender
    @jhwblender ปีที่แล้ว

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

  • @alienmoonstalker
    @alienmoonstalker 2 ปีที่แล้ว

    This is very satisfying. Thank you.

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

  • @Cloruro
    @Cloruro 2 ปีที่แล้ว +15

    Reactor 4 be like 3:21

    • @Hotbody
      @Hotbody 2 ปีที่แล้ว

      Exactly my thoughts 😆

  • @NerdyWordyMatt
    @NerdyWordyMatt 2 ปีที่แล้ว

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

  • @DEV_XO
    @DEV_XO 2 ปีที่แล้ว

    Looks amazing!

  • @noms1711
    @noms1711 2 ปีที่แล้ว

    I have a fascination for destruction and this is amasing keep it up!

  • @knutolsen7987
    @knutolsen7987 ปีที่แล้ว

    Impressive work!!

  • @cannonmann
    @cannonmann 2 ปีที่แล้ว

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

  • @Demircan8
    @Demircan8 2 ปีที่แล้ว

    This video will be watched more than 1 million times

  • @mrtronbl
    @mrtronbl 2 ปีที่แล้ว

    Amazing work.

  • @petraviolabeck9157
    @petraviolabeck9157 2 ปีที่แล้ว

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

  • @mysterylink7550
    @mysterylink7550 2 ปีที่แล้ว

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

  • @byaafacehead
    @byaafacehead 2 ปีที่แล้ว

    3:19 feels like an analogy for a chain reaction

  • @kitty_gamer23
    @kitty_gamer23 2 ปีที่แล้ว

    Reminds me of jardinains. Those were the glory days...

  • @Katniss218
    @Katniss218 2 ปีที่แล้ว

    this is really 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++

  • @l9m241
    @l9m241 2 ปีที่แล้ว

    This is noita levels of good!

  • @VestigialHead
    @VestigialHead 2 ปีที่แล้ว

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

  • @Xyb3rAnims
    @Xyb3rAnims 2 ปีที่แล้ว

    i'd literally wanna play this

  • @SilhouetteSilvertail
    @SilhouetteSilvertail ปีที่แล้ว

    3:20 Weirdly satisfying

  • @alessandrodamato5059
    @alessandrodamato5059 2 ปีที่แล้ว

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

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

  • @krccmsitp2884
    @krccmsitp2884 2 ปีที่แล้ว

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

  • @amber.mp4
    @amber.mp4 2 ปีที่แล้ว

    another one i would love to play

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

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

  • @c3s743
    @c3s743 2 ปีที่แล้ว

    Nice!!!!!👍

  • @krisdabo-yh8bq
    @krisdabo-yh8bq ปีที่แล้ว

    Awesome❤

  • @MichaelMorenoPhilosophy
    @MichaelMorenoPhilosophy 2 ปีที่แล้ว

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

  • @Fummy007
    @Fummy007 2 ปีที่แล้ว

    Looks like fun

  • @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 th-cam.com/users/matthimf

    • @disel8599
      @disel8599 2 ปีที่แล้ว +1

      @@PezzzasWork Thanks

  • @seardadsdasd
    @seardadsdasd 2 ปีที่แล้ว

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

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

  • @LJ_Dude
    @LJ_Dude 2 ปีที่แล้ว

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

  • @echoptic775
    @echoptic775 2 ปีที่แล้ว

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

  • @h989l
    @h989l 2 ปีที่แล้ว

    amazing

  • @BattleMachines
    @BattleMachines 2 ปีที่แล้ว

    Awesome

  • @nebulium6641
    @nebulium6641 2 ปีที่แล้ว

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

  • @dwhorlow8397
    @dwhorlow8397 2 ปีที่แล้ว +5

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

  • @MrCombokey
    @MrCombokey 2 ปีที่แล้ว

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

  • @dragonminz602
    @dragonminz602 2 ปีที่แล้ว

    That looks like a ton of fun! Is it possible to play it somewhere?

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

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

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

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

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

  • @mannguyenduy3688
    @mannguyenduy3688 8 หลายเดือนก่อน

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

  • @joe_croupier
    @joe_croupier ปีที่แล้ว

    brilliant gravity

  • @Petr75661
    @Petr75661 2 ปีที่แล้ว

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

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

  • @yahia1355
    @yahia1355 2 ปีที่แล้ว

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

  • @isg9106
    @isg9106 2 ปีที่แล้ว

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

  • @Goofystarthvbac
    @Goofystarthvbac 2 ปีที่แล้ว

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

  • @starplatinum3305
    @starplatinum3305 7 หลายเดือนก่อน

    How part detection algorithm works ?

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

  • @gmlviper
    @gmlviper 2 ปีที่แล้ว

    Arkanoid... but over 9000!

  • @fhgghg552
    @fhgghg552 2 ปีที่แล้ว

    This so realistic

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

  • @leodenham1710
    @leodenham1710 2 ปีที่แล้ว

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

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

  • @PythonPlusPlus
    @PythonPlusPlus 2 ปีที่แล้ว

    What if you had the bricks attach to their positions with springs?

  • @Trooperos90
    @Trooperos90 2 ปีที่แล้ว

    Is there such part algorithm for 3d?

  • @NoVIcE_Source
    @NoVIcE_Source 2 ปีที่แล้ว

    damn, how can one learn to make such physics

  • @경원전-o7v
    @경원전-o7v 2 ปีที่แล้ว

    I'd love to see a source of this in action. Could you please open the sample source?

  • @nou5440
    @nou5440 2 ปีที่แล้ว

    nice

  • @vilkillian
    @vilkillian ปีที่แล้ว +1

    3:22 he literally made an atom bomb

  • @alexwharton4376
    @alexwharton4376 ปีที่แล้ว

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

  • @Eugensson
    @Eugensson 2 ปีที่แล้ว

    Tetris next!

  • @onceiwas
    @onceiwas ปีที่แล้ว

    ive been waiting for 3 years wheres the demo

  • @Taotaoba
    @Taotaoba 2 ปีที่แล้ว

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

  • @Beatsbasteln
    @Beatsbasteln 2 ปีที่แล้ว

    sweet game

  • @_MrNoob
    @_MrNoob 2 ปีที่แล้ว

    Question, what do you use to make these? And how?

  • @kaserollins9281
    @kaserollins9281 ปีที่แล้ว

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

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