Technical Devlog: Implementing Audio into my Game Engine

  Рет қаралды 95,619

ThinMatrix

ThinMatrix

Күн бұрын

Пікірлер: 264
@ThinMatrix
@ThinMatrix Жыл бұрын
This is a much more technical devlog than usual so if that's not your thing then this one might not be for you (and if it is your thing then yay, enjoy!) We'll be back to more visual features next time with the UI makeover.
@Ferenc-Racz
@Ferenc-Racz Жыл бұрын
I love this kind of content, which is a bit more technical. Congratulation for the huge amount of progress. :)
@deadpl55
@deadpl55 Жыл бұрын
I'm learning game development and i like both or them but this type of content i like most
@user-ob5hj5vn8c
@user-ob5hj5vn8c Жыл бұрын
I agree, this is the content I like the most actually! :)
@artymer5021
@artymer5021 Жыл бұрын
I actually quite enjoy the more technical content. I find it not only interesting but also very inspiring. I am an aspiring game dev as well so these videos often fuel the muse haha
@melekRebai
@melekRebai Жыл бұрын
Both are great but as a non game developer i really enjoy watching technical dev logs cuz it allows me to see a different aspect of programming
@jprice_
@jprice_ Жыл бұрын
Everyone crying over unity while this mad lad just chills with his own engine. Absolute legend.
@Duke6598
@Duke6598 Жыл бұрын
lmao, actually so smart from thinmatrix to do this looking at it retrospectively. Best unintended business decision
@faluhub
@faluhub Жыл бұрын
You're saying this as if it's not actually a problem that unity's doing this.
@pedroduran8927
@pedroduran8927 Жыл бұрын
1. Unity fixed pricing with a 2.5% revenue cap, becoming cheaper than unreal. 2. Making an OWN engine consumes time, you have to be VERY GOOD at math / vector programming to just have some level of a simple camera rendering a cube. 3. Even making an engine that returns an executable application is a real PAIN. now imagine trying to produce multi-platform game on an own engine 💀 Engines costs money because they save time and resouces. You can always go godot but it has its sharp edges too.
@jprice_
@jprice_ Жыл бұрын
@@pedroduran8927 Why even touch godot when king released their own engine for all to use? Both Unity and Godot have a smiliar issue - they are led by a buffoon.
@willcollins5121
@willcollins5121 Жыл бұрын
@@pedroduran8927ehhh this is built on lwjgl cross-platform isn’t a huge issue here
@finalforeach
@finalforeach Жыл бұрын
The procedural sound system you made solved a problem I wasn't even aware of! I suspect most game devs will run into that issue at some point. Glad to be following this series.
@Zonix_Official
@Zonix_Official Жыл бұрын
I'd assume as a by product of this, when it comes to implementing Sound to your Minecraft Recreation that this will majorly help! Nice to see you also watching ThinMatrix, FinalForEach! :D
@finalforeach
@finalforeach Жыл бұрын
@@Zonix_Official I stand on the shoulders of giants! ThinMatrix's videos is how I learned to make good looking water graphics after all.
@haydenap
@haydenap Жыл бұрын
Man the procedural sound effect thing you did for variable interaction time is so cool. Great solution to that problem.
@lukasjost44
@lukasjost44 Жыл бұрын
I think this is exactly how it works in Minecraft
@jamesbaconreid
@jamesbaconreid Жыл бұрын
Love the sounds! Especially the procedural ones - that's so cool!
@raphaelvinh
@raphaelvinh Жыл бұрын
Can we talk about how good this transition at 1:26 is ? good work man !
@alejorag
@alejorag Жыл бұрын
He does it a lot but everytime I see it I still marvel at it lol it just looks so clean
@Joshimuz
@Joshimuz Жыл бұрын
I appreciate the more technical videos! The procedural sound generation for the arbitrary length actions was super nice!
@szabados1980
@szabados1980 Жыл бұрын
Actually I prefer this sort of devlog videos to where only the game play features are shown. 👍👍👍
@JustATempest
@JustATempest Жыл бұрын
For building compound sounds, I would recommend using a builder pattern, as you're effectively building a track. You would create a compound sound with an add track method that takes a track, and returns 'this', allowing you to chain addTrack function calls, that way you don't have a block of variables defined in a row like at 12:35 with incrementing variable names like track0, 1 2 3. You've used the builder pattern with sound 2D builder I think it would work really well with compound sounds. If only to keep consistency of the code. It's still be a good idea. You're using the factory pattern, for the digging sound effect which is a good idea. When you combined with patterns, a new world opens up. Imagine a sound effect factory, that can create the sound effect you need, and using the builder pattern to configure the given sound effect as a compound sound.
@justred2337
@justred2337 Жыл бұрын
I love it how you carefully explain everything while also making a game using Java, most people just use Unity and C# to make basic stuff but you made your own engine! Would love to playtest someday, keep up the awesome work!
@GetaVe
@GetaVe Жыл бұрын
Elegant solution and it sounds like it works well. My main suggestion is less harsh sounds like metal and hard rock. And more soft crunchy sounds.
@lucavogels
@lucavogels Жыл бұрын
Wow! The sound generator idea for the tools was really smart! 😱
@AustinCameron
@AustinCameron Жыл бұрын
Watching this while writing my own AudioController for an audio book app.
@SharkyGamess
@SharkyGamess Жыл бұрын
It’s amazing what sound effects and music can do! Brings the game to life 😍 keep it up!
@msajidsarker
@msajidsarker Жыл бұрын
You have a brilliant mind, and you are creating the most beautiful little garden simulator to cultivate peace.
@sirynka
@sirynka Жыл бұрын
It'd be cool to change the pitch of the sound during the digging or water pouring process so the player would have an intuition on how long the action would take without even looking in the screen.
@ThinMatrix
@ThinMatrix Жыл бұрын
Nice idea!
@madmanmax120
@madmanmax120 Жыл бұрын
@@ThinMatrix To add onto this, it'd be an awesome bit of polish to have, for instance when harvesting a section of crops, to have the "harvest" sound rise in pitch over subsequent harvests. So basically crop 1/5 will be the lowest pitch, 3/5 being in the middle, then 5/5 being the highest, scaling in pitch depending on the size of that particular group of crops. It builds a sense of rising accomplishment when you have an audio source do that, very similar in to how Minecraft does their sfx for breaking blocks. Or y'know, just implement it on a smaller scale and just do it for each individual plant. I think it'd fit right in with your farming game here!
@AgentM124
@AgentM124 Жыл бұрын
And not everything has to follow this system, you could also increase the frequency at which sounds are played to give a sense of speedup. That way not every action sounds like a fire alarm.
@LifeOfMohammed
@LifeOfMohammed Жыл бұрын
I love how far you have come with this and like I love how good the videos are getting with all the transitions and all looks so good! Have you got a goal in mind for releasing this game? I also love the out-of-monitor transition so much haha also pretty neat you are using ur own tutorials to remember stuff!
@ThinMatrix
@ThinMatrix Жыл бұрын
Thanks! I'm currently aiming for end of next year, but that might be a bit optimistic.
@LifeOfMohammed
@LifeOfMohammed Жыл бұрын
@@ThinMatrix That is awesome to hear sadly I was abit to eager to try it out so its awesome you uploaded it on Patreon!
@Alex-fn7kj
@Alex-fn7kj 9 ай бұрын
End of next year ?!! But your game and his loop already is so polished, adding new content like plant and tool and farm upgrade okay, but if you leave yourself until end of next year it mean we haven't seen half of the systems and mechanics build implemented yet, right ? 👀
@ramoncf7
@ramoncf7 Жыл бұрын
Your OpenAL tutorials helped me to add sounds to my game, just for the effort and work it took you to create all those tutorials (and the OpenGL ones) I'm wishing you the best, you're an inspiration for all indie gamedevs! Thank you.
@clonkex
@clonkex Жыл бұрын
I love the secateurs sound! So clean and calm.
@doma3058
@doma3058 Жыл бұрын
Hey man, I really appreciate you and your videos. I used to dream of being a game developer when I was younger, and your videos were my obsession. That was probably around 2015-16 when i was 11-13 years old! Now I am in college for Cybersecurity and am so happy to start watching your content again! Thanks for sticking around man and I am real proud to see how far you have gotten. :)
@ocleidyreve6361
@ocleidyreve6361 Жыл бұрын
Uff Amazing video...technical videos also rocks and people like them. Thanks for taking some of our advices!!
@mrcingo
@mrcingo Жыл бұрын
the fact that the sun is literally kissing you while you're coding is incredible
@AlexScotton-Illizian
@AlexScotton-Illizian Жыл бұрын
Congratulations, this really adds a great layer and makes it so much more immersive. The way you've created the procedural sounds is genius and applicable for much more than an audio system.
@Aquillyne
@Aquillyne Жыл бұрын
Those procedural sounds are incredible! Bravo.
@turnrp
@turnrp Жыл бұрын
I love these devlogs
@OnlyTheVerse
@OnlyTheVerse Жыл бұрын
I'll watch your every single video at least until you finish a city building game, you have my word!
@ianbryant
@ianbryant Жыл бұрын
The procedural sounds are beast my dude.
@wiechciu0
@wiechciu0 Жыл бұрын
That's impressive how well all of these parts work together. The procedural audio sounds really good, neat idea!
@kacper2246
@kacper2246 Жыл бұрын
i always find it incredibly impressive and admirable when someone creates their own game engine for a game love how the game looks, keep it up!
@JohnDoe-bo5yk
@JohnDoe-bo5yk Жыл бұрын
Ohh.. making your own engine.. thought this was just a game devlog.. now I might have to go back to your first
@KrAvE4KaRnAgE
@KrAvE4KaRnAgE Жыл бұрын
As a bit of fun, you could try recording real-world sounds of you performing these tasks! Also, adding a start sound may also be value for certain actions. Such as the sound of a spade hitting the dirt. Loving this series so much, thank you for sharing!
@SvenGarson
@SvenGarson Жыл бұрын
Oh yes - Great idea layering the sounds - Very satisfying to listen to
@LasseRafnDk
@LasseRafnDk Жыл бұрын
Procedural sound (including the click sound) is such a nice QOL thing, makes the game feel so polished.
@bonecircuit
@bonecircuit Жыл бұрын
you can break the song in stems, intro, chorus, bridge and outro and then randomly play the chorus and bridge a few times in variations and cap them off with intro and outro. additional chorus and bridge chunks add to the dynamics
@SpikeStudio
@SpikeStudio Жыл бұрын
Audio is one of the most underrated parts of a game, so its cool to see a Devlog about it. Great audio will not be noticed, but bad audio is heard by everyone, it seems you got a great start!
@EdwardVarner
@EdwardVarner Жыл бұрын
Your solution to problems is always elegant and inspiring. I didn't expect to enjoy this style of video and I was sad when it ended. Well done!
@Skeffles
@Skeffles Жыл бұрын
Brilliant to see how you are tackling sound. My last game had a bunch of issues with sound and I've struggled to find good videos explaining whats going on. This helped
@marcruijs1039
@marcruijs1039 Жыл бұрын
I'm currently working on making my own GUI library. Definitely taking some inspiration from this video 😬 Excited to see what you'll do with the UI!
@TheHanutaXD
@TheHanutaXD Жыл бұрын
I love the idea of the CompoundSound. Very neat :)
@lightludology9081
@lightludology9081 Жыл бұрын
This is so inspirational! As a new viewer, I'm absolutely amazed!
@RandomProduct
@RandomProduct Жыл бұрын
I think that explanation of audio buffering explains how games with a lot of dialogue are able to have skip functionality. It'd probably be a lot jankier if it had to load massive audio all at once, quickly, every time you hit skip
@rigolus
@rigolus Жыл бұрын
I very much enjoy those more technical devlogs, do not be afraid to make more like that! :)
@PultsMoizer
@PultsMoizer Жыл бұрын
Bro had the audacity to use Audacity. Great Video my man, really enjoying to see such a progress in more than a month!
@cameronstroebel3333
@cameronstroebel3333 Жыл бұрын
Very interesting episode, I enjoyed the deep dive :)
@6ocram
@6ocram Жыл бұрын
The procedural sound effects really give a lot of life to the game. Really really good implementation :D
@SaadTheGlad
@SaadTheGlad Жыл бұрын
Dude this is literally perfect, I wanted a good way to implement audio into my game and while it's not gonna be as complex as yours I wanna get some inspiration for future titles. Keep it up!
@Draconicrose
@Draconicrose Жыл бұрын
This is a really cool solution to the sound repetition and definitely adds juice to the game. I am thinking that as the player progresses so will the soundscape of the gameplay loop, which is neat.
@coffeefingies
@coffeefingies Жыл бұрын
The way you implemented the compound sound effects is really clever, well done. Might have to borrow that idea in the future!
@CurtisDoesADig
@CurtisDoesADig Жыл бұрын
Dude, the procedural sound system is amazing! That was so awesome to see in action!
@maxneevo
@maxneevo Жыл бұрын
The procedural sound system was such a cool solution, loving the videos!
@ccoodduu
@ccoodduu Жыл бұрын
This devlog was so interesting and useful! It's amazing how much sound does to a game.
@feathorix8778
@feathorix8778 Жыл бұрын
I am quite new to your channel and I just realized that you do not "only" develop a cozy farming game, but that you use a self-made engine, too! That's so cool, much respect! 🙂 Seems like a big benefit in the current situation, hehe. I really like the idea of the compound sounds, they give a nice polish to the general sound design and make the tasks feel less repetitive. As another comment already mentioned, it could be nice to be able to hear the progress of a task, e.g. by raising the pitch after each tile. Very nice devlog! :)
@natgazer
@natgazer Жыл бұрын
You inspire me so much! Despite I'm more towards meat and stuff, I'm loving your game development!
@possumkeys
@possumkeys Жыл бұрын
Such an absolute chad! You are a really good programmer sir! Loved the sound thing. Loved it.
@kylemason01
@kylemason01 Жыл бұрын
Epic stuff bro! Keep up the amazing hard work!
@MrOmega-cz9yo
@MrOmega-cz9yo Жыл бұрын
I like the information presented and the game is looking good!
@KuroOnehalf
@KuroOnehalf Жыл бұрын
Surprisingly interesting dev log. Good stuff!
@epiphanyatnight8732
@epiphanyatnight8732 Жыл бұрын
Would love to see a video on how you manage this project. Loved your Trello board, so simple and functional.
@JoelFunk
@JoelFunk Жыл бұрын
Brilliant work as always. The sounds add so much weight to the game interactions. Good job!❤
@rcookie5128
@rcookie5128 Жыл бұрын
1:25 This transition was unreal!
@pixboi
@pixboi Жыл бұрын
Dude your home is so peaceful and clean, always admiring that in these videos :D
@HobokerDev
@HobokerDev Жыл бұрын
Gotta say, even those placeholder samples don't sound half bad! Looking forward to the next devlog as usual!
@Pruemedia
@Pruemedia Жыл бұрын
Super impressive work! Keep going! :)
@FacemanArt
@FacemanArt Жыл бұрын
Super cool devlog! Loved how you approached the procedural sfx. Keep up the great work!
@isaacgreen9495
@isaacgreen9495 Жыл бұрын
That shovel sounds great!
@hippylp2306
@hippylp2306 Жыл бұрын
Hey, really like your videos and the games you produce :) I also really enjoy the details you add to your videos like playing the music in the background the way your are describing it in the code :)
@Genesis8934
@Genesis8934 Жыл бұрын
Random clicks sound cool; equally cool might be a step the pitch (up to a limit) in ascending or descending order. ;)
@seb-astian-design
@seb-astian-design Жыл бұрын
Love the procedurally generated sounds! Cool way to create it! Have u thought about raising the pitch when u dig a hole? Idk it just felt would make the pop more satisfying.
@robvp71
@robvp71 Жыл бұрын
Super inspiring and the way you structure your work.. impressive!
@CaelCerf
@CaelCerf Жыл бұрын
Wow, please talk more about the engine. Would love to hear more about it.
@Hessrs
@Hessrs Жыл бұрын
One suggestion (that you may have already done but it's hard to tell) is if you click to perform an action such as digging/planting, if you don't let go of the click but move the tile to another valid tile, that the action still performs so the user doesn't have to click each individual tile. I think this would be something that people probably won't notice if it exists but definitely would notice if it was missing. Love the technical video though!
@ThinMatrix
@ThinMatrix Жыл бұрын
Thanks! And that's already how the tools work :)
@gernivisser593
@gernivisser593 Жыл бұрын
I love these more technical videos !!
@dentjoener
@dentjoener Жыл бұрын
Amazed to spot an eclipse user in the wild 😁. Game's really starting to shape up, keep up the good work!
@thehen101
@thehen101 Жыл бұрын
you should add a retry to creating the openal context(s), sometimes it seemed to fail for me for no reason when the CPU was under high load, but worked when retried
@adrianozuna875
@adrianozuna875 Жыл бұрын
Man i just want to say, I'm still addicted to equilinox, it's such a good game. I have so many high hopes for this latest project
@Kwanzol
@Kwanzol Жыл бұрын
really liked this video :) the end result sounds great!
@ImAnoobDev
@ImAnoobDev Жыл бұрын
I dont know why but I want thin matrix to make a horror game
@tobias-edwards
@tobias-edwards Жыл бұрын
Really enjoyed the insight!
@KingofUshankas
@KingofUshankas Жыл бұрын
love the content thinmatrix!!!
@the-pink-hacker
@the-pink-hacker Жыл бұрын
1:47 "OpenAL library" => open audio library library.
@heandog6481
@heandog6481 Жыл бұрын
Don’t know the exact style you’re going for, but I feel like the game could be more relaxing with a less realistic style of sfx. I’m thinking more in the realm of mini motorways where it’s calming little blips and bloops that make the game somewhat relaxing and satisfying. Anyways, the more technical devlog was awesome and I really enjoyed this episode and the way you showcased and explained parts of your thought process and code!
@j3ns
@j3ns Жыл бұрын
I love these technical devlogs 😀 but I also enjoy the other ones 😊
@Jadushnew
@Jadushnew Жыл бұрын
For me the hardest part is to decide what needs to be in a new class and separating different ideas to different files.
@pritamdavis
@pritamdavis Жыл бұрын
Same brother 😂
@_stephenhubbard
@_stephenhubbard Жыл бұрын
1:25 dat transition though
@eidnoxon
@eidnoxon Жыл бұрын
Hey dude! Love your content
@ThinMatrix
@ThinMatrix Жыл бұрын
Thanks! And yeah, I'll do that during the upcoming UI updates :)
@MAIpeleg
@MAIpeleg Жыл бұрын
You know you're talented when you watch your own tutorials
@ThinMatrix
@ThinMatrix Жыл бұрын
Or just forgetful ;)
@MAIpeleg
@MAIpeleg Жыл бұрын
@@ThinMatrix you can be both!
@lipsach
@lipsach Жыл бұрын
Is the song buffering really needed, cos the song file is like 5-10mb? Isn't that rally small amount of memory now?
@MrFredber
@MrFredber Жыл бұрын
I think, there is the problems with 3d sounds. 2d sounds are playing in both channels (stereo) normally, but all 3d sounds (like watering, digging, etc) are playing mostly in left channel. Right channel is mostly empty, so the feeling of the sounds is not very good. You can hear it very well in your headphones.
@KestrelQ
@KestrelQ Жыл бұрын
11:50 I can't be the only one who enjoyed this, right?
@360McCarthy
@360McCarthy Жыл бұрын
Can I just say how much I love these more technical videos! I was curious also @ThinMatrix what Java version and lwjgl version are you building the game using?
@artembordiuh2802
@artembordiuh2802 Жыл бұрын
The sound system and sounds are great, most of them in my opinion are production-ready (unless of course a different feel is intended for the game). The only suggestion is the UI click sound, it's a bit loud and intrusive, and some of the sounds are spatially shifted when using earphones
@kyaniteschmidt7658
@kyaniteschmidt7658 Жыл бұрын
1:27 very smooth!
@MunzirSuliman
@MunzirSuliman Жыл бұрын
would great if you share how you're using Trello to manage the planning and development. Thanks again for the great content and beautiful game , all of the best.
@matthewboyd1834
@matthewboyd1834 Жыл бұрын
I always wonder how do you have such a full Trello board and forward thinking plan, it'd be great if you explained ur planning process to us meer mortals. I've worked in software companies mainly in sprint and with rapidly changing software requirements but I've never worked through a project begining to end with planned steps and it's refreshing to see you doing it
@pritamdavis
@pritamdavis Жыл бұрын
Yes that would be very helpful
@DBProductions12345-m
@DBProductions12345-m Жыл бұрын
How do you handle QA for something like this? Just you or external providers?
@therhodesy
@therhodesy Жыл бұрын
Those compound sounds are fantastic... love your approach. I'd love to see you mention something about your testing in this project, I assume you're unit testing alot of this? ....
@maxi-g
@maxi-g Жыл бұрын
Finally a programmer how uses Java
@triplezgames3882
@triplezgames3882 Жыл бұрын
The sound effects sound great! Would there be a way for sharing them? I would love to use them in my game
@dentjoener
@dentjoener Жыл бұрын
I'd never use linked lists, for stacks and ques I'd use an ArrayDeque. Less memory use and same speed
@Szczurek15
@Szczurek15 Жыл бұрын
I'm in programming since I was 14. This will be 18 years now. It's not like I have spent those 18 years programming (however, in the hindsight, I wish I did). Nevertheless, I could be sitting there for a month and would never figure it out, that repetitive sound is annoying me, and some procedural generation is required. 😐 You da boss!
Overhauling the Graphics in my Game Engine
15:37
ThinMatrix
Рет қаралды 150 М.
What does a Game Engine actually do?
16:45
Ellie Rasmussen
Рет қаралды 172 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 153 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 22 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 20 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 107 МЛН
Trying to figure out what paths do in my farming game
18:06
ThinMatrix
Рет қаралды 95 М.
Creating a window - Software from Scratch
1:04:12
Muukid
Рет қаралды 159 М.
Homegrown Devlog: Fruit Bushes, Fences, Tomato Canes!
13:25
ThinMatrix
Рет қаралды 87 М.
Programming the Health System for my Farming Game
12:32
ThinMatrix
Рет қаралды 93 М.
My 10 YEAR Indie Game Development Journey
23:58
ThinMatrix
Рет қаралды 599 М.
I Made a 32-bit Computer Inside Terraria
15:26
From Scratch
Рет қаралды 4,1 МЛН
Programming Particle Effects in my Game Engine
13:00
ThinMatrix
Рет қаралды 79 М.
Homegrown Devlog - New UI & Mod Support(ish)
14:53
ThinMatrix
Рет қаралды 126 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 153 МЛН