Creating a Brick Breaker with my PHYSICS ENGINE

  Рет қаралды 109,989

Pezzza's Work

Pezzza's Work

Күн бұрын

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

Пікірлер: 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 2 жыл бұрын
;)
@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 😆
@TodePond
@TodePond 2 жыл бұрын
Niiiice! It's so satisfying to see how it built up piece by piece! 🤩
@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!
@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.
@frogman1
@frogman1 2 жыл бұрын
the sound effects are so natural, i love it.
@alienmoonstalker
@alienmoonstalker 2 жыл бұрын
This is very satisfying. Thank you.
@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
@Destroy3612
@Destroy3612 2 жыл бұрын
Truly a brick breaker game, awesome!
@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?
@Waffle_6
@Waffle_6 2 жыл бұрын
you don’t understand how much i look forward to these videos
@tyrendel
@tyrendel Жыл бұрын
Very nice seeing the steps you take!
@PezzzasWork
@PezzzasWork Жыл бұрын
Thank you!
@DEV_XO
@DEV_XO Жыл бұрын
Looks amazing!
@knutolsen7987
@knutolsen7987 Жыл бұрын
Impressive work!!
@davidwagner6116
@davidwagner6116 2 жыл бұрын
This reminds me of good times making level sets for LBreakout2. The effects from the soft-body physics are really fun!
@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!
@trimsky8543
@trimsky8543 2 жыл бұрын
You are just a master of math and c++! So cool! Very interesting
@mrtronbl
@mrtronbl 2 жыл бұрын
Amazing work.
@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!
@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
@nyuh
@nyuh 2 жыл бұрын
the gameplay is so chaotic i love it
@Katniss218
@Katniss218 Жыл бұрын
this is really cool
@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!
@jhwblender
@jhwblender Жыл бұрын
Oh wow! If you turned this into a mobile game I'd download this in a heartbeat. Great job! So so cool.
@rodakdev
@rodakdev 2 жыл бұрын
That chicken has cool glasses for a reason!
@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
@KaziiTheAvali_inactive
@KaziiTheAvali_inactive 2 жыл бұрын
it is very very nice. i would suggest randomly rotating the explosion effects to make it look less semetrical
@fh9123
@fh9123 2 жыл бұрын
I think someone watched "Juice it or lose it" ;) Very nice work
@krisdabo-yh8bq
@krisdabo-yh8bq 10 ай бұрын
Awesome❤
@c3s743
@c3s743 2 жыл бұрын
Nice!!!!!👍
@l9m241
@l9m241 2 жыл бұрын
This is noita levels of good!
@h989l
@h989l Жыл бұрын
amazing
@MichaelMorenoPhilosophy
@MichaelMorenoPhilosophy 2 жыл бұрын
This is incredible. How did you learn all of this? Do you have any resources or paths you recommend?
@cannonmann
@cannonmann 2 жыл бұрын
With some themed stages for the gravity effects and pretty backgrounds I'd buy this on steam.
@Fummy007
@Fummy007 2 жыл бұрын
Looks like fun
@BattleMachines
@BattleMachines 2 жыл бұрын
Awesome
@LJ_Dude
@LJ_Dude 2 жыл бұрын
A wonderful spin on a classic game. How soon will that executable demo be?
@Demircan8
@Demircan8 2 жыл бұрын
This video will be watched more than 1 million times
@Xyb3rAnims
@Xyb3rAnims 2 жыл бұрын
i'd literally wanna play this
@byaafacehead
@byaafacehead 2 жыл бұрын
3:19 feels like an analogy for a chain reaction
@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
@dwhorlow8397
@dwhorlow8397 2 жыл бұрын
What are the specs of the pc you're running this with?
@krccmsitp2884
@krccmsitp2884 Жыл бұрын
This looks great and like a lot of fun! Is there actually a working game?
@dragonminz602
@dragonminz602 2 жыл бұрын
That looks like a ton of fun! Is it possible to play it somewhere?
@amber.mp4
@amber.mp4 2 жыл бұрын
another one i would love to play
@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!
@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.
@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
@echoptic775
@echoptic775 2 жыл бұрын
Can u explain a little more about it? Where did u learn that, link to some article myb?
@nou5440
@nou5440 2 жыл бұрын
nice
@swift_goose
@swift_goose 2 жыл бұрын
This is awesome! You did all of this in C++? Very well presented video as well
@PezzzasWork
@PezzzasWork 2 жыл бұрын
Thank you very much! Yes it is 100% c++
@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?
@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.
@leodenham1710
@leodenham1710 2 жыл бұрын
At 1:39 what is the "parts detection algorithm" you have used?
@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!
@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 kzbin.info
@disel8599
@disel8599 2 жыл бұрын
@@PezzzasWork Thanks
@SilhouetteSilvertail
@SilhouetteSilvertail Жыл бұрын
3:20 Weirdly satisfying
@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?
@mysterylink7550
@mysterylink7550 2 жыл бұрын
This should have been developed 20years ago . Better late than never humans.
@_MrNoob
@_MrNoob 2 жыл бұрын
Question, what do you use to make these? And how?
@kitty_gamer23
@kitty_gamer23 2 жыл бұрын
Reminds me of jardinains. Those were the glory days...
@VestigialHead
@VestigialHead 2 жыл бұрын
I really hope you have games on sale Pezza. You should be getting income for your skilled work.
@seardadsdasd
@seardadsdasd 2 жыл бұрын
This will be like teardown but its 2D also I'd recommend working on the vehicles after you release the demo
@mannguyenduy3688
@mannguyenduy3688 2 ай бұрын
can you explain more about the parts detection algorithm in 1:37?
@fhgghg552
@fhgghg552 2 жыл бұрын
This so realistic
@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
@migerrancan554
@migerrancan554 2 жыл бұрын
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
@joe_croupier
@joe_croupier 9 ай бұрын
brilliant gravity
@Trooperos90
@Trooperos90 2 жыл бұрын
Is there such part algorithm for 3d?
@yahia1355
@yahia1355 2 жыл бұрын
AHAaw shitt ! that's greaaaaaat!!!!!!!!
@Beatsbasteln
@Beatsbasteln 2 жыл бұрын
sweet game
@oscarishino5883
@oscarishino5883 2 жыл бұрын
sweet
@starplatinum3305
@starplatinum3305 2 ай бұрын
How part detection algorithm works ?
@user-mx8sn1yt9o
@user-mx8sn1yt9o 2 жыл бұрын
I'd love to see a source of this in action. Could you please open the sample source?
@Eugensson
@Eugensson 2 жыл бұрын
Tetris next!
@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
@nebulium6641
@nebulium6641 2 жыл бұрын
This looks and sounds a lot like a virtual casino game lol
@hellstone5500
@hellstone5500 2 жыл бұрын
Is this going to be the 2d version of teardown?
@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.
@kaserollins9281
@kaserollins9281 Жыл бұрын
does anyone have any idea what language/software was used to make this?
@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.
@Teegik
@Teegik 2 жыл бұрын
👌
@ohnocoder
@ohnocoder Жыл бұрын
1:40 what is the algorithm name? Sorry for bad English =)
@minkjay3218
@minkjay3218 2 жыл бұрын
I come for your pfp pic lol
@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
@Goofystarthvbac
@Goofystarthvbac 2 жыл бұрын
When you’re inside a nuke and the nuke sets off: 3:23
@gmlviper
@gmlviper 2 жыл бұрын
Arkanoid... but over 9000!
@cmyk8964
@cmyk8964 2 жыл бұрын
How do you win though
@onceiwas
@onceiwas 11 ай бұрын
ive been waiting for 3 years wheres the demo
@endeyfire
@endeyfire 2 жыл бұрын
i want this on my phone
Writing a Physics Engine from scratch
9:24
Pezzza's Work
Рет қаралды 191 М.
Turning bugs into Art
7:43
Pezzza's Work
Рет қаралды 193 М.
Do you have a friend like this? 🤣#shorts
00:12
dednahype
Рет қаралды 58 МЛН
КАРМАНЧИК 2 СЕЗОН 6 СЕРИЯ
21:57
Inter Production
Рет қаралды 509 М.
Китайка и Пчелка 4 серия😂😆
00:19
KITAYKA
Рет қаралды 2,8 МЛН
Making My Physics Engine 10x Faster and Simulating Trusses
11:28
AngeTheGreat
Рет қаралды 148 М.
Creating a Space Invaders clone using my C++ engine and SFML
11:58
Pezzza's Work
Рет қаралды 36 М.
Real time Fire Simulation
7:23
Pezzza's Work
Рет қаралды 153 М.
Godot FINALLY Got Better Softbody
2:00
PiCode
Рет қаралды 4,6 М.
Physics of JellyCar: Soft Body Physics Explained
17:02
Walaber Entertainment
Рет қаралды 109 М.
AIs learn to WALK
20:21
Pezzza's Work
Рет қаралды 51 М.
I Made A Difficult Game About Climbing
15:04
Pontypants
Рет қаралды 1,9 МЛН
Optimizing my Game so it Runs on a Potato
19:02
Blargis
Рет қаралды 370 М.
KEVA plank destruction: PBS final project
2:15
Thunabrain
Рет қаралды 2,4 МЛН
I Made A Physics Engine
6:59
Zyger
Рет қаралды 140 М.
😱НОУТБУК СОСЕДКИ😱
0:30
OMG DEN
Рет қаралды 3,3 МЛН
Mi primera placa con dios
0:12
Eyal mewing
Рет қаралды 591 М.
ЭТОТ ЗАБЫТЫЙ ФЛАГМАН СИЛЬНО ПОДЕШЕВЕЛ! Стоит купить...
12:54
Thebox - о технике и гаджетах
Рет қаралды 153 М.
Iphone or nokia
0:15
rishton vines😇
Рет қаралды 1,1 МЛН