- 23
- 280 095
Madbook
United Kingdom
เข้าร่วมเมื่อ 19 ก.ย. 2018
If it's 2D and made of pixels, I'll probably love it.
Making indie game dev videos roughly every week.
Making indie game dev videos roughly every week.
Essential Maths For Beginner Gamedevs - Which Math is Useful?
There's plenty of tutorials on learning maths for gamedev, but why and where is this maths actually useful? Here, I try to give examples of how and when different types of mathematics pop-up, and how they are actually used when making a game. I have added links throughout the video and below if you want to learn these topics in more detail, but hopefully this will make you aware of the different areas of maths used in gamedev!
----------
Tutorials and Learning Resources for each topic covered (I have tried to include one video, one blog and one interactive thing to account for different types of learners!):
Numbers
+, -, x and ÷ are used frequently! The good thing here is that even if you aren't the best at doing sums quickly, the computer is! As long as you recognise when you should be using each operation, you'll be fine (e.g. subtract some health when your player takes damage).
Brush up on BODMAS! It's important to know what order more complicated calculations will calculate in - while remembering that you can use brackets to specifically order the way a sum will resolve: www.skillsyouneed.com/num/bodmas.html
Discrete Maths
An umbrella term for lots of maths. Wikipedia splits it into 17 sub-topics (which are all individually still very broad): en.wikipedia.org/wiki/Discrete_mathematics#Topics_in_discrete_mathematics
You will almost definitely do a discrete maths course at university, if you do CompSci or a related degree. You could learn about any of these sub-topics for years.
Logic
Video tutorial on boolean logic (its for GMS2, but the logic and concepts apply universally): th-cam.com/video/QmrOYwN10bQ/w-d-xo.html&ab_channel=SamSpadeGameDev
Coordinate Systems
Most 2D games use an x and y-axis - 3D games will use the z-axis too. Here's what I mean when some are inverted: FreyaHolmer/status/644881436982575104
Video on non-Euclidean games: th-cam.com/video/lFEIUcXCEvI/w-d-xo.html
Blog on non-Euclidian games: zenorogue.medium.com/non-euclidean-geometry-and-games-fb46989320d4
Trigonometry
Tutorial on angles (also vectors and some other topics too): th-cam.com/video/DPfxjQ6sqrc/w-d-xo.html
An interactive visualisation of trig: www.mathsisfun.com/algebra/trig-interactive-unit-circle.html
Pythagoras Theorem
Video tutorial: th-cam.com/video/uthjpYKD7Ng/w-d-xo.html&ab_channel=MathHelp.com
Article/guide: www.mathsisfun.com/pythagoras.html
Vectors
Video: th-cam.com/video/_OqwrxTtThY/w-d-xo.html&ab_channel=ThePhantomGameDesignsThePhantomGameDesigns
Professor Dave's intro to vectors: th-cam.com/video/KBSCMTYaH1s/w-d-xo.html&ab_channel=ProfessorDaveExplainsProfessorDaveExplainsVerified
Blog/guide: www.gamasutra.com/blogs/MarcBeaujean/20200518/363095/Vector_Maths_for_Game_Dev_Beginners.php
Vector Normalisation
Khan Academy blog with interactive example at the bottom: www.khanacademy.org/computing/computer-programming/programming-natural-simulations/programming-vectors/a/vector-magnitude-normalization
Video tutorial on normalisation: th-cam.com/video/7fn03DIW3Ak/w-d-xo.html&ab_channel=FireflyLecturesFireflyLectures
Dot Product
Dot product video tutorial: th-cam.com/video/BcxfxvYCL1g/w-d-xo.html&ab_channel=LookingGlassUniverseLookingGlassUniverse
Codeer’s Video: th-cam.com/video/2E_Kx9ROX08/w-d-xo.html&ab_channel=CodeerCodeer
Interactive dot product visualisation: maththebeautiful.com/dot-product/
Cross Product (Advanced Topic)
Video explanation of the cross product by Professor Dave: th-cam.com/video/gPnWm-IXoAY/w-d-xo.html&ab_channel=ProfessorDaveExplains
Article/guide on cross product from Maths is Fun: www.mathsisfun.com/algebra/vectors-cross-product.html
Visualisation: www.mathsisfun.com/algebra/vectors-cross-product.html
Quaternions (Advanced Topic)
Blog: developerblog.myo.com/quaternions/
Video Tutorial: th-cam.com/video/4mXL751ko0w/w-d-xo.html&ab_channel=Sutrabla
Graph Theory
This is a broad topic. Wikipedia gives some good insight into the variety of uses: en.wikipedia.org/wiki/Graph_theory#Applications
Tutorial series on finite state machines by MATLAB: th-cam.com/video/-Yicg2TTMPs/w-d-xo.html&ab_channel=MATLABMATLAB
Interactive Path Finding: qiao.github.io/PathFinding.js/visual/
---------
Remember to Subscribe!
Follow me on twitter: madbookstudios
Join the madbook discord: discord.gg/JYqFddm
Check all my FREE games on itch: madbookstudios.itch.io/
---------
Timestamps
0:00 - Intro
0:30 - The Problem
1:15 - The Solution
1:52 - Calculus Not Needed for Making Games
2:19 - Numbers
3:38 - Discrete Maths
4:44 - Logic
6:40 - Coordinate Systems
8:09 - Trigonometry
10:17 - Pythagoras Theorem
10:58 - Vectors
12:51 - Vector Normalisation
14:31 - Dot Product
16:01 - Cross Product
16:51 - Quaternions
18:26 - Graph Theory
19:42 - Recap
----------
#math #gamedev #mathingames #indiedev #gamedevmath
----------
Tutorials and Learning Resources for each topic covered (I have tried to include one video, one blog and one interactive thing to account for different types of learners!):
Numbers
+, -, x and ÷ are used frequently! The good thing here is that even if you aren't the best at doing sums quickly, the computer is! As long as you recognise when you should be using each operation, you'll be fine (e.g. subtract some health when your player takes damage).
Brush up on BODMAS! It's important to know what order more complicated calculations will calculate in - while remembering that you can use brackets to specifically order the way a sum will resolve: www.skillsyouneed.com/num/bodmas.html
Discrete Maths
An umbrella term for lots of maths. Wikipedia splits it into 17 sub-topics (which are all individually still very broad): en.wikipedia.org/wiki/Discrete_mathematics#Topics_in_discrete_mathematics
You will almost definitely do a discrete maths course at university, if you do CompSci or a related degree. You could learn about any of these sub-topics for years.
Logic
Video tutorial on boolean logic (its for GMS2, but the logic and concepts apply universally): th-cam.com/video/QmrOYwN10bQ/w-d-xo.html&ab_channel=SamSpadeGameDev
Coordinate Systems
Most 2D games use an x and y-axis - 3D games will use the z-axis too. Here's what I mean when some are inverted: FreyaHolmer/status/644881436982575104
Video on non-Euclidean games: th-cam.com/video/lFEIUcXCEvI/w-d-xo.html
Blog on non-Euclidian games: zenorogue.medium.com/non-euclidean-geometry-and-games-fb46989320d4
Trigonometry
Tutorial on angles (also vectors and some other topics too): th-cam.com/video/DPfxjQ6sqrc/w-d-xo.html
An interactive visualisation of trig: www.mathsisfun.com/algebra/trig-interactive-unit-circle.html
Pythagoras Theorem
Video tutorial: th-cam.com/video/uthjpYKD7Ng/w-d-xo.html&ab_channel=MathHelp.com
Article/guide: www.mathsisfun.com/pythagoras.html
Vectors
Video: th-cam.com/video/_OqwrxTtThY/w-d-xo.html&ab_channel=ThePhantomGameDesignsThePhantomGameDesigns
Professor Dave's intro to vectors: th-cam.com/video/KBSCMTYaH1s/w-d-xo.html&ab_channel=ProfessorDaveExplainsProfessorDaveExplainsVerified
Blog/guide: www.gamasutra.com/blogs/MarcBeaujean/20200518/363095/Vector_Maths_for_Game_Dev_Beginners.php
Vector Normalisation
Khan Academy blog with interactive example at the bottom: www.khanacademy.org/computing/computer-programming/programming-natural-simulations/programming-vectors/a/vector-magnitude-normalization
Video tutorial on normalisation: th-cam.com/video/7fn03DIW3Ak/w-d-xo.html&ab_channel=FireflyLecturesFireflyLectures
Dot Product
Dot product video tutorial: th-cam.com/video/BcxfxvYCL1g/w-d-xo.html&ab_channel=LookingGlassUniverseLookingGlassUniverse
Codeer’s Video: th-cam.com/video/2E_Kx9ROX08/w-d-xo.html&ab_channel=CodeerCodeer
Interactive dot product visualisation: maththebeautiful.com/dot-product/
Cross Product (Advanced Topic)
Video explanation of the cross product by Professor Dave: th-cam.com/video/gPnWm-IXoAY/w-d-xo.html&ab_channel=ProfessorDaveExplains
Article/guide on cross product from Maths is Fun: www.mathsisfun.com/algebra/vectors-cross-product.html
Visualisation: www.mathsisfun.com/algebra/vectors-cross-product.html
Quaternions (Advanced Topic)
Blog: developerblog.myo.com/quaternions/
Video Tutorial: th-cam.com/video/4mXL751ko0w/w-d-xo.html&ab_channel=Sutrabla
Graph Theory
This is a broad topic. Wikipedia gives some good insight into the variety of uses: en.wikipedia.org/wiki/Graph_theory#Applications
Tutorial series on finite state machines by MATLAB: th-cam.com/video/-Yicg2TTMPs/w-d-xo.html&ab_channel=MATLABMATLAB
Interactive Path Finding: qiao.github.io/PathFinding.js/visual/
---------
Remember to Subscribe!
Follow me on twitter: madbookstudios
Join the madbook discord: discord.gg/JYqFddm
Check all my FREE games on itch: madbookstudios.itch.io/
---------
Timestamps
0:00 - Intro
0:30 - The Problem
1:15 - The Solution
1:52 - Calculus Not Needed for Making Games
2:19 - Numbers
3:38 - Discrete Maths
4:44 - Logic
6:40 - Coordinate Systems
8:09 - Trigonometry
10:17 - Pythagoras Theorem
10:58 - Vectors
12:51 - Vector Normalisation
14:31 - Dot Product
16:01 - Cross Product
16:51 - Quaternions
18:26 - Graph Theory
19:42 - Recap
----------
#math #gamedev #mathingames #indiedev #gamedevmath
มุมมอง: 107 224
วีดีโอ
Making an EXTREME SPORT GAME In 48 Hours! (Ludum Dare 48 Devlog)
มุมมอง 1.2K3 ปีที่แล้ว
For 48 hours I took part in the Ludum Dare 48 game jam! This is how my entry, Super Base Jumper, was made! I really hope you enjoy it! Play the game for free: madbookstudios.itch.io/super-base-jumper Rate the game: ldjam.com/events/ludum-dare/48/super-base-jumper Remember to Subscribe! Follow me on twitter: madbookstudios Join the madbook discord: discord.gg/JYqFddm Check all my FRE...
I Made An Elemental Pinball Roguelike Game - Youtuber Game Jam Invitational
มุมมอง 8993 ปีที่แล้ว
I did an indie game dev game jam with some other people! This is sort of a devlog that shows the inspiration, motivation and making of the game, some aspects of it's game design and how it was made! 48 hour hour game jam - try a 7 DAY game jam instead! This game was made in 7 sets of 24 hours. Play Some Games! Curse Of The Pinball Wizard: madbookstudios.itch.io/curse-of-the-pinball-wizard Conte...
The Idea Of A Difficulty CURVE Is All Wrong | Better Game Design
มุมมอง 4.3K3 ปีที่แล้ว
The common interpretation for how a game's difficulty curve should work is generally wrong. Understanding how they should actually be used can be really helpful for when we are testing and trying to balance our games. Video Links David's Stuff: Twitter: DavesInHisPants Blog: www.davetech.co.uk/ Try Tadpole Tales: store.steampowered.com/app/1428900/Tadpole_Tales/ Battletoads Perfect ...
How To Break Down Game Design (3 Easy Steps)
มุมมอง 1.4K3 ปีที่แล้ว
What makes games interesting and fun? How do we identify the most important elements of a game's design. We break down the problem into simple steps that everyone can learn and practise. Doing this will not only make you better at designing games, but it will allow you to put more thought into which games you buy next. Josh Bycer's Gamasutra post: www.gamasutra.com/blogs/JoshBycer/20200319/3597...
Should you STEAL game ideas and mechanics?
มุมมอง 1.7K3 ปีที่แล้ว
I often find there is a huge emphasis on creating completely unique designs for every aspect of our games - however, this might be making us less innovative and creative. The games we know and love today are here because they are heavily inspired by by other classics. Plagiarism is obviously not okay, but iterating on previous design, adhering to gameplay standards and re-inventing old ideas is...
This Tool Turns YOUR PIXELART Into 3D Models! (KenShape)
มุมมอง 8K3 ปีที่แล้ว
Want to convert your 2D pixel art into 3D models easily and quickly? Well now you can! KenShape is a brilliant new tool from Kenny, an artist well known for providing high-quality, free art assets in the gamdev community. I personally found this tool way faster to use than something like blender, and the results are really good too! Link to KenShape: tools.kenney.nl/kenshape/ Reminder this vide...
Which Indie Dev Archetype Are You? (Derek Yu's Helpful Fictional Creations)
มุมมอง 1.1K3 ปีที่แล้ว
Derek Yu's design work in Spelunky is incredible and something I admire and aspire to. He has recently published an article on his website about the indie developer archetypes he sees people fall into, and how that can stop them from finishing their game projects. They are very useful and interesting to think about, so I hope they help you! Here's a link to the write-up on his website: www.dere...
Why UI is More Interesting Than You Think...
มุมมอง 9763 ปีที่แล้ว
There are 4 incredibly useful terms for understanding the UI in games. Learning these can help to give a different perspective on the way we think about UI in the games we make and play. Here, I explain each term for UI design and how it is used in games we are familiar with, as well as how it is used in my current roguelike game project, "Project Drifter". Remember to Subscribe! Follow me on t...
Don't Let Scope Creep Snipe Your Games
มุมมอง 8353 ปีที่แล้ว
Overscoping and mis-managing projects is the number 1 reason I see people give up on their games. As such, I thought I would provide some insight into how I manage the scope of my projects to stop them going completely off the rails. Hopefully it helps! Remember to Subscribe! Follow me on twitter: madbookstudios Join the madbook discord: discord.gg/JYqFddm Check all my FREE games on...
The Real Reasons We Find Games Fun | A E S T H E T I C S
มุมมอง 2.3K3 ปีที่แล้ว
Why are games actually fun to play? It can be really hard to narrow down, but the MDA Framework created by Robin Hunicke, Marc LeBlanc and Robert Zubek aims to distil the feelings we get into core aesthetics - the emotions that keep us wanting to play more. This video was a ton of fun to make, so hope you get something useful out of it! Remember to Subscribe! Follow me on twitter: m...
Why Cause and Effect is Vital for Great Game Design
มุมมอง 1.2K3 ปีที่แล้ว
We all want the games we play and make to just FEEL good, but how can we ensure that happens? We need to make sure that the world we create has a sensible flow of Cause and Effect, every action made by the player needs to cause an effect in the world that is obvious and understandable. This video aims to show how juicy, great gameplay is the result of implementing Cause and Effect, and isn't ex...
How Tutorials Are Holding You Back
มุมมอง 3.8K3 ปีที่แล้ว
Feeling like you are stuck and not making progress? Gamedev and programming can be really difficult skills to learn, let alone master, but a huge part of the process can be understanding how to deal with tutorial hell. In this video, I outline exactly what tutorial hell is to me, how we should approach it and how to get out of the stuck feeling! Remember to Subscribe! Follow me on twitter: twit...
How To Become More Creative (Simple and Effective Game Dev Trick)
มุมมอง 4.9K3 ปีที่แล้ว
When creating games as an indie developer, it can be easy to get stuck in a creative block, not knowing how to keep coming up with creative ideas and grinding to a halt. However, We can actually become even more creative, and come up with better ideas with a process that kickstarts our thinking and gets us going. Remember to Subscribe! Follow me on twitter: madbookstudios Join the m...
Free Game Development Tools! (2021)
มุมมอง 9K3 ปีที่แล้ว
The must have tools for any gamedev on a budget, each offering professional quality output for FREE! Every tool I describe here will handle a different part of gamedev including game engines, game art, audio and video recording software. I have personally used the majority of these tools, or am planning to use them based on the high recommendations of others, so be sure to check them out as the...
Why You SHOULD (not) Care About Optimisation - How I Made My Game Run 100x Faster
มุมมอง 3.7K3 ปีที่แล้ว
Why You SHOULD (not) Care About Optimisation - How I Made My Game Run 100x Faster
3 Devs Take Turns With ONE Unity Game FOR 6 HOURS!
มุมมอง 3753 ปีที่แล้ว
3 Devs Take Turns With ONE Unity Game FOR 6 HOURS!
Generating Worlds For Players To Get Lost In - Project Drifter Devlog #1
มุมมอง 4214 ปีที่แล้ว
Generating Worlds For Players To Get Lost In - Project Drifter Devlog #1
9 Hacks And Ideas To Juice Up Your Indie Games (Quick and Easy)
มุมมอง 1.8K4 ปีที่แล้ว
9 Hacks And Ideas To Juice Up Your Indie Games (Quick and Easy)
How To Make Music FAST and FREE for your Indie Games!
มุมมอง 119K4 ปีที่แล้ว
How To Make Music FAST and FREE for your Indie Games!
Best Jam Games of Ludum Dare 47 | My Personal Favourites
มุมมอง 8914 ปีที่แล้ว
Best Jam Games of Ludum Dare 47 | My Personal Favourites
I Made A Trippy Arcade Game For Ludum Dare 47 | Stuck In A Loop
มุมมอง 3914 ปีที่แล้ว
I Made A Trippy Arcade Game For Ludum Dare 47 | Stuck In A Loop
These Games Are Exceptional! - Best Free Itch.io Games This Week!
มุมมอง 4.5K4 ปีที่แล้ว
These Games Are Exceptional! - Best Free Itch.io Games This Week!
this was an amazing video!
This is such a good video helped a lot :) I also liked the little funny details ;D
Hello Sir, Can I use it for my commercial game?
Beginner gamedev here. Sometimes knowing these things exists also can help you sort through documentation. For instance, I realised I could use pythagoras in my code, which worked. But then because I also knew that square root is inefficient, I looked up if there was a more efficient way, and found that in Godot you can just use vector2.length() to do the same thing. I wouldn't have found that if I hadn't approached already knowing pythagoras. Knowing math doesn't just help you solve problems, it helps you find what you need on complex topics, and more easily understand what the explanations mean.
Very, very nice video. Thanks!
well the math like plus and the minus is good also multipliction like 5 x5 or 10 x 5 is also good. some people saying you need vectors but not that important! i just use plus minus multipliction and i made many game like zeldas, the super mario nintendo, the dragon of steel, the spyro ratchet clank and bandicoot. thanks
The assertion about dot product, as stated, is not correct. The assertion applies only to normalized vectors. When two vectors are not normalized, their dot product can have _any_ value!
😊
I actually made some better than expected tunes with this! Thanks a million
guys: don't learn discrete maths. you will die.
great tutorial, thanks ! i have a music background so wish me luck trying to make music for my games
this is great content dude wow!! thanks
I miss you man
nice video, but how we sell our music and where ??
I'm seeking opportunities to plug my music into games! Willing to do it for a low cost or free--I'm a novice musicmaker and I'm looking to build my resume. Most of my sounds skew eerie, ambient, and abstract, but I am able to shift to specific scenarios or moods depending what you're looking for.
Very useful video! I'm reorienting my career towards game development. I haven't done math like this in about 12-15 years. It's helpful to know what math is needed, when it's used, and why it's important. This will allow me to review the necessary math before starting my university degree in video game programming and animation.
I suspect there would be highly specialised software which can take care of movement and vectors. Is it necessary to learn math to code games these days?
I think it depends on how much control you want over the lower level mechanisms of the game. You can get away with using build-in functions but at some point you'll want to tweak things for the specific requirements of your game
10:40 yes but also because the Greeks did it with triangles. Eastern math systems used arcs and strings before triangles. Super cool history to it
thank you for the good explanation
I was listening to this and took the suggestion. But dang, it doesn't seem to work. I went to chordchord as suggested and found a melody I like. I put it in as instructed but the intsruments sound like a mess while on chordchord it sounded beautiful. I think it has something to do with the notes being able to fade but on LMMS its all monotone and holding the same pitch? Volume? I don't know.
Thanks so much for this video, really helped a lot!
The ghost (or grim reaper) that's forcing you to clear the level faster has been a thing since the era of New Zealand Story, Bubble Bobble, Snow Bros etc. It's a design concept from a previous millennium, even though it does bring forth its own improvements to the classic formula. Considering your implementation doesn't even use a ghost or some indestructible character directly following the player, I'd say you're actually improving the gargamel mob (that's what we used to call it in the 90s) more than Spellunky did on the original concept.
Thanks! ❤
Amazing Man!!!! I am just speechless Maths is sooooo wonderful! Hats off to you!!
Thank you so much fir this video!
I know this is not the best video for music theory. But, you helped me with something else. LMMS. I always wanted to try making stuff on this thing, but was never able to start as I didn't wanted to learn a whole new software. Seeing you use it, I now know tha it's not as difficult as I thought it would be. Thank you very much.
The first helpful video I've watched on this topic, you are a fucking wizard my friend
Why is his camera constantly switching between being more blue or green or red? It’s very distracting.
Thanks for the tutorial m8!
extremely helpful
Bro literally dropped a banger and dipped
Hey! Great video and you're a great teacher, but the music in the background is really distracting.
what is the name of the game with the parachute 2:06 ?
anyone know the tank game at 0:25?
Why did he stop uploading
Brilliant!! Thanks
you look like young elon musk!
At 8:40 the A in the A minor chord is put in as a G instead. This makes the progression C Bb C Dm instead of C Bb Am Dm Otherwise great video 👍🏻 😊 I can definitely see a young composer learning from this
I thought I was going to lose interest in learning this but after listening to it in the background. I couldn't help but find myself looking up and zoning in on it to learn and I will say, this is always going to be my go to when learning the basic of music. I am glad you took the time to make this. This is a very useful tutorial and is a good way to get those who are interested in music started. Again, Many thanks. Keep up the good work. This is indeed going into my playlist of Creativity.
That was helpful, thank you <3
for lmms get vst and sound fonts the daw is sick
very informative thank you
My brother why did you make this video look like it came from 2011
THANK YOU FOR THIS!
I was looking exactly for this, I was already toying with LMMS so perfect fit!
This video was really well done. I watched this video for fun and had a good time!
these concepts are more related to physics than maths.
Maths and physics are very closely related. We often use maths in physics, and physics can often motivate the maths! Thanks for sharing this perspective!
@@Madbook math is the language of science, which is physics. learning words without knowing the meaning behind them is not beneficial. as such, learning math without learning the underlying physical concepts will not make much good. even abstract mathematical concepts are tied to physical concepts. boolean algebra, in the contexts of computers, boils down to transistors being bi-state devices. my humble advice to programmers, especially to game developers, is to learn physics.
Freya holmer has a playlist of 10 videos about math for game devs that would change your life
Yep! They are excellent videos that I would highly recommend for anyone wanting to get stuck into these topics!
marble blast gold messed up the diagonal movement thing
Fantastic! I’m learning game programming using Lua language and pico8. I limited myself in a small environment to focus on the fundamentals. Big engines can be really handy for those that know what they’re doing, but for me now, it’s like use a full car workshop to fix my bicycle. This video was everything that I needed! Thanks!