Тёмный

Creating a Brick Breaker with my PHYSICS ENGINE 

Pezzza's Work
Подписаться 139 тыс.
Просмотров 110 тыс.
50% 1

In this video I present the process of creating a little physics based brick breaker.
Executable demo soon.
00:00 Intro
01:25 Base version
01:37 Add Physics
02:26 Add Sounds
02:56 Add Special Blocks
04:28 A First Level
05:12 Removing Gravity
06:05 Add Upward Gravity

Наука

Опубликовано:

 

28 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 191   
@alacer8878
@alacer8878 2 года назад
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.
@oamioxmocliox8082
@oamioxmocliox8082 Год назад
;)
@ferred3056
@ferred3056 Год назад
What is the game's name?
@needamuffin
@needamuffin 2 года назад
3:20 That's actually a pretty good illustration of self-sustaining fission reactions.
@gabrielecipriani6798
@gabrielecipriani6798 2 года назад
Was about to write the same
@pipebombmailer
@pipebombmailer 2 года назад
whats up guys today we’re going to be cutting a atom in half
@ewaldlatreider5127
@ewaldlatreider5127 2 года назад
@@pipebombmailer many attoms in half :D
@mysterylink7550
@mysterylink7550 2 года назад
Nice one 👍☺️☺️
@ahmedsaliherel
@ahmedsaliherel 2 года назад
İt would be better if he did this with flying bomb blocks.
@Stefanutsu
@Stefanutsu 2 года назад
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 года назад
You can add a heavy one, which goes through many objjects on the way without bouncing from them
@PezzzasWork
@PezzzasWork 2 года назад
That's a good idea!
@nicoleibundgut534
@nicoleibundgut534 Год назад
though about this aswell just playing around with the mass of some balls
@KevinCrouch0
@KevinCrouch0 2 года назад
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 года назад
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 ....
@Cloruro
@Cloruro 2 года назад
Reactor 4 be like 3:21
@Hotbody
@Hotbody 2 года назад
Exactly my thoughts 😆
@redshepard5306
@redshepard5306 2 года назад
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 года назад
Niiiice! It's so satisfying to see how it built up piece by piece! 🤩
@tomsterbg8130
@tomsterbg8130 2 года назад
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 года назад
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
@koifish528
@koifish528 2 года назад
@@win95beta5 do you not pay for any products you use?
@win95beta5
@win95beta5 2 года назад
@@koifish528 Yeah, but rarely, i have life outside computer
@koifish528
@koifish528 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?
@dairop3220
@dairop3220 2 года назад
Tes projets dont toujours aussi stylés, tu m'impressionne à chaque fois srx ! Continue comme ça !
@csh0vel
@csh0vel 2 года назад
Interesting and awesome as always! I love your work, man!
@frogman1
@frogman1 2 года назад
the sound effects are so natural, i love it.
@Destroy3612
@Destroy3612 2 года назад
Truly a brick breaker game, awesome!
@Waffle_6
@Waffle_6 2 года назад
you don’t understand how much i look forward to these videos
@rodakdev
@rodakdev 2 года назад
That chicken has cool glasses for a reason!
@JacobPernell
@JacobPernell Год назад
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!
@alienmoonstalker
@alienmoonstalker Год назад
This is very satisfying. Thank you.
@davidwagner6116
@davidwagner6116 2 года назад
This reminds me of good times making level sets for LBreakout2. The effects from the soft-body physics are really fun!
@bloodkiller-zg3jc
@bloodkiller-zg3jc 2 года назад
i love how capturing your vids are, awesome job (happy New Year, man!)
@PezzzasWork
@PezzzasWork 2 года назад
Thank you! you too :)
@nautilume7114
@nautilume7114 2 года назад
No kidding, I checked this vid out in preview and watched the whole thing there lmao
@tyrendel
@tyrendel Год назад
Very nice seeing the steps you take!
@PezzzasWork
@PezzzasWork Год назад
Thank you!
@knutolsen7987
@knutolsen7987 Год назад
Impressive work!!
@DEV_XO
@DEV_XO Год назад
Looks amazing!
@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
@nyuh
@nyuh 2 года назад
the gameplay is so chaotic 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
@mrtronbl
@mrtronbl 2 года назад
Amazing work.
@fh9123
@fh9123 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
@NerdyWordyMatt
@NerdyWordyMatt 2 года назад
Hell, yeah! I'd play the heck out of that.
@noms1711
@noms1711 2 года назад
I have a fascination for destruction and this is amasing keep it up!
@jhwblender
@jhwblender Год назад
Oh wow! If you turned this into a mobile game I'd download this in a heartbeat. Great job! So so cool.
@Katniss218
@Katniss218 Год назад
this is really cool
@byaafacehead
@byaafacehead 2 года назад
3:19 feels like an analogy for a chain reaction
@KaziiTheAvali_inactive
@KaziiTheAvali_inactive 2 года назад
it is very very nice. i would suggest randomly rotating the explosion effects to make it look less semetrical
@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!
@l9m241
@l9m241 2 года назад
This is noita levels of good!
@cannonmann
@cannonmann 2 года назад
With some themed stages for the gravity effects and pretty backgrounds I'd buy this on steam.
@Xyb3rAnims
@Xyb3rAnims 2 года назад
i'd literally wanna play this
@SilhouetteSilvertail
@SilhouetteSilvertail Год назад
3:20 Weirdly satisfying
@penevsvagina
@penevsvagina 2 года назад
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?
@notanengineer
@notanengineer 2 года назад
He said soon
@Fummy007
@Fummy007 2 года назад
Looks like fun
@krisdabo-yh8bq
@krisdabo-yh8bq 10 месяцев назад
Awesome❤
@h989l
@h989l Год назад
amazing
@amber.mp4
@amber.mp4 2 года назад
another one i would love to play
@dwhorlow8397
@dwhorlow8397 2 года назад
What are the specs of the pc you're running this with?
@LJ_Dude
@LJ_Dude 2 года назад
A wonderful spin on a classic game. How soon will that executable demo be?
@disel8599
@disel8599 2 года назад
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 года назад
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 ru-vid.com
@disel8599
@disel8599 2 года назад
@@PezzzasWork Thanks
@krccmsitp2884
@krccmsitp2884 Год назад
This looks great and like a lot of fun! Is there actually a working game?
@BattleMachines
@BattleMachines 2 года назад
Awesome
@c3s743
@c3s743 2 года назад
Nice!!!!!👍
@Demircan8
@Demircan8 2 года назад
This video will be watched more than 1 million times
@MichaelMorenoPhilosophy
@MichaelMorenoPhilosophy Год назад
This is incredible. How did you learn all of this? Do you have any resources or paths you recommend?
@swift_goose
@swift_goose Год назад
This is awesome! You did all of this in C++? Very well presented video as well
@PezzzasWork
@PezzzasWork Год назад
Thank you very much! Yes it is 100% c++
@leodenham1710
@leodenham1710 2 года назад
At 1:39 what is the "parts detection algorithm" you have used?
@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.
@echoptic775
@echoptic775 2 года назад
Can u explain a little more about it? Where did u learn that, link to some article myb?
@dragonminz602
@dragonminz602 2 года назад
That looks like a ton of fun! Is it possible to play it somewhere?
@_MrNoob
@_MrNoob 2 года назад
Question, what do you use to make these? And how?
@petraviolabeck9157
@petraviolabeck9157 2 года назад
You should add the unbreakable blocks as well. Would make things even more interesting.
@MrCombokey
@MrCombokey 2 года назад
Which programming language and graphic/game libraries did you use? Btw. Great work!
@mysterylink7550
@mysterylink7550 2 года назад
This should have been developed 20years ago . Better late than never humans.
@cobaltxii
@cobaltxii 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.
@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!
@kitty_gamer23
@kitty_gamer23 2 года назад
Reminds me of jardinains. Those were the glory days...
@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?
@nou5440
@nou5440 2 года назад
nice
@mannguyenduy3688
@mannguyenduy3688 2 месяца назад
can you explain more about the parts detection algorithm in 1:37?
@joe_croupier
@joe_croupier 9 месяцев назад
brilliant gravity
@Trooperos90
@Trooperos90 2 года назад
Is there such part algorithm for 3d?
@fhgghg552
@fhgghg552 2 года назад
This so realistic
@Migixkem
@Migixkem 2 года назад
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
@PythonPlusPlus
@PythonPlusPlus 2 года назад
What if you had the bricks attach to their positions with springs?
@alessandrodamato5059
@alessandrodamato5059 2 года назад
compliments But admit it, you got the sound effects from Jak and Dexter :P
@VestigialHead
@VestigialHead 2 года назад
I really hope you have games on sale Pezza. You should be getting income for your skilled work.
@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.
@starplatinum3305
@starplatinum3305 Месяц назад
How part detection algorithm works ?
@thewisepartybuddha3179
@thewisepartybuddha3179 8 месяцев назад
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?
@Goofystarthvbac
@Goofystarthvbac 2 года назад
When you’re inside a nuke and the nuke sets off: 3:23
@nebulium6641
@nebulium6641 2 года назад
This looks and sounds a lot like a virtual casino game lol
@kaserollins9281
@kaserollins9281 Год назад
does anyone have any idea what language/software was used to make this?
@gmlviper
@gmlviper 2 года назад
Arkanoid... but over 9000!
@m.shakibhosseinzadeh8415
@m.shakibhosseinzadeh8415 2 года назад
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.
@seardadsdasd
@seardadsdasd 2 года назад
This will be like teardown but its 2D also I'd recommend working on the vehicles after you release the demo
@migerrancan554
@migerrancan554 2 года назад
cool
@Eugensson
@Eugensson 2 года назад
Tetris next!
@WhipsterCZ
@WhipsterCZ Год назад
Hello im i'm interested if "Executable demo soon" is actual information ? Looking forward to try this game :) good job as always
@oscarishino5883
@oscarishino5883 2 года назад
sweet
@user-mx8sn1yt9o
@user-mx8sn1yt9o Год назад
I'd love to see a source of this in action. Could you please open the sample source?
@Beatsbasteln
@Beatsbasteln 2 года назад
sweet game
@cmyk8964
@cmyk8964 2 года назад
How do you win though
@yahia1355
@yahia1355 2 года назад
AHAaw shitt ! that's greaaaaaat!!!!!!!!
@JordanShurmer
@JordanShurmer Год назад
You should look into this game called Noita, and the Falling Everything engine
@PezzzasWork
@PezzzasWork Год назад
Yes I saw this game, really nice! They have a very different approach but in the end the result is quite similar
@sebbes333
@sebbes333 2 года назад
*@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
@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
@ohnocoder
@ohnocoder Год назад
1:40 what is the algorithm name? Sorry for bad English =)
@onceiwas
@onceiwas 11 месяцев назад
ive been waiting for 3 years wheres the demo
@chax0208
@chax0208 2 года назад
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 года назад
Not sure about this specifically but his ants simulations he’s used C++ with SFML for graphics and input
@PezzzasWork
@PezzzasWork 2 года назад
I am indeed using C++ and SFML for this project as well
@hellstone5500
@hellstone5500 2 года назад
Is this going to be the 2d version of teardown?
@Solrex_the_Sun_King
@Solrex_the_Sun_King 2 года назад
Add a level editor and a price tag and this is worth 5$ minimum at that point.
Далее
Writing a Physics Engine from scratch
9:24
Просмотров 190 тыс.
Turning bugs into Art
7:43
Просмотров 193 тыс.
Shu bahormi ? | Million jamoasi
00:57
Просмотров 1 млн
aespa 에스파 'Armageddon' MV
03:33
Просмотров 15 млн
Real time Fire Simulation
7:23
Просмотров 153 тыс.
I Made an Entire Game from Particle Physics
9:01
Просмотров 453 тыс.
Can You Beat Poly Bridge 2 Using Only Ropes?
16:57
Просмотров 731 тыс.
AI learns to beat a crazy map
18:13
Просмотров 638 тыс.
Nice bug
3:07
Просмотров 989 тыс.
AIs learn to WALK
20:21
Просмотров 49 тыс.
Generating Videos in Geometry Dash with Evolution
13:06
Китайская зарядка❌НЕЛЬЗЯ
0:24
Wow AirPods
0:17
Просмотров 1,2 млн
IPad Pro fix screen
1:01
Просмотров 8 млн