BMoAlmost every game has some sort of collectible or pickup system - the player runs into the item and picks it up. But many people struggle to setup a system thats flexible to handle a whole bunch of different types to collect without getting their code all tangled up.
In this Unity Tutorial we'll cover how to use a simple interface and events to setup a flexible collection system that lets you handle and respond to all of the different types of items your game has to collect.
Maybe the items go into your inventory, maybe they get logged in an achievement system, maybe they all want to play a sound and play an animation, with this architecture you'll be able to setup all of that incredibly fast.
Give it a try and let me know what you think, its not perfect, but its very powerful.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to become a big handsome billionaire, probably
➤LIKE the video if you enjoyed, it really helps the channel!
Flexible Pickup / Collectible System in Unity With EventsBMo2022-03-22 | Almost every game has some sort of collectible or pickup system - the player runs into the item and picks it up. But many people struggle to setup a system thats flexible to handle a whole bunch of different types to collect without getting their code all tangled up.
In this Unity Tutorial we'll cover how to use a simple interface and events to setup a flexible collection system that lets you handle and respond to all of the different types of items your game has to collect.
Maybe the items go into your inventory, maybe they get logged in an achievement system, maybe they all want to play a sound and play an animation, with this architecture you'll be able to setup all of that incredibly fast.
Give it a try and let me know what you think, its not perfect, but its very powerful.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to become a big handsome billionaire, probably
➤LIKE the video if you enjoyed, it really helps the channel!
#gamedev #indiedev #gamedevelopmentLonely? Play this game.BMo2025-07-01 | I've been getting comments to make a game in Lua with Love 2D, clearly because my viewers are lonely and can't find love in their lives. I accept the challenge.
#shorts #gamedev #programmingMaking a Game in Lua with Love2DBMo2025-06-24 | Everyone keeps telling me to make a game in Lua with Love2D because some game called Balatro was made in it. Hey! Speaking of that, did you know that Balatro was made in Lua with Love2D? You should try it.
Raylib is an open source code library and low level game framework created by Ramon Santamaria (hence the name, Raylib, his nickname!). Ray is an avid game developer and teacher who started this project, but didn't expect it to grow into the popular tool it is today! It aims to offer simple and easy to use tools to create games with, and even though its not as powerful as a modern game engine, what it does offer is fun to play with.Making A Game In Go With EbitengineBMo2025-05-12 | Go is a simple and fast programming language that's booming in popularity... but how is it when it comes to Game Development? There isn't a big community of Go game developers, but there are some options, like the Ebitengine. Ebitengine is an open source 2d game engine that makes strong claims, but isn't heavily used. No time like the present to try out emerging tools though, so today I make a game using Go and the Ebitengine myself to see what its really all about.
Ebitengine is a 2D Open source game engine created by developer Hajime Hoshi based out of Tokyo Japan. Go or Golang is a programming language created by Google to offer a performant and simple to use language for building applications. It is tailored for inexperienced developers to jump into and immediately be able to contribute. It has a phenomenal concurrency model, but is ultimately not a first choice for Game Development. That doesn't make it a bad pick at all though, atleast I would assume that. Garbage collection is always going to be a criticism compared to C/C++ but that doesn't have to be the only deciding factor. The only way to see if it is a viable tool, is to try it!Making A Game In C With SDL3BMo2025-04-21 | How hard can it be to make a game from scratch in C? We're going old school, but with a twist of using a new library SDL 3! SDL helps make your game cross platform, and is used by top tier developers like Valve. It's great.... or is it? I find out by making a game for myself in this video!
SDL is a code library created and maintained by Sam Lantinga, the famous World of Warcraft character in the Eastern Plaguelands. SDL 3 just released, which includes a ton of helpful functions to handle drawing to the screen, playing audio, and capturing user input across a multitude of devices. While the majority of devs prefer tov use C++ in game dev, I'll be using plain old C. After all C is a subset of C++, at least people say that frequently and others get mad.Making an ICONIC Game in ScratchBMo2025-01-20 | Call me a Scratcher.
Play Scratch Cat Says here: https://scratch.mit.edu/projects/1120778718
I have heard about Scratch for a long time, but I never used it! Scratch MIT is a neat little game engine where you use visual scripting to make games that you host directly on the platform for other Scratchers to play. That is also a wild name to call your community, but I'm here for it. Perfect for beginner game devs or people learning how to program.I Made A Game To Reignite My Fiery Love For Game DevBMo2024-12-08 | I have been SLACKING. No longer. My love for game dev burns as the sun in the sky and I will spam you all with so many new videos you will hate my guts.
Discord: discord.gg/g9j8yrHTEDI made a Battle Royale BUT youre the Bus DriverBMo2024-05-18 | Battle Bus drivers deserve our love and respect, never forget to thank them
I Made A Platformer Game But You're The Enemy: youtu.be/_0h7YMyTp5kI Made A Platformer Game But Youre The EnemyBMo2024-01-30 | I made a platformer game, just like Mario, but you don't play as Mario... you play as the Goomba.
Only together can we bring the justice Goombas rightfully deserve discord.gg/g9j8yrHTED
3D in general can be really overwhelming for new developers which is why most end up starting with 2d games. 3D Animation can be its own deep skillset that many people steer clear from.
Fortunately there are resources out there like Mixamo that let you download animations that you can apply directly to your characters really quick and easily.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
#unity #tutorial #3danimation #3dgamesLevel Up with Experience Points in UnityBMo2023-05-17 | Many games have some sort of level up system where you gain experience through some method, once you gather enough exp you level up and your character gets stronger.
Here's a simple - yet flexible way of implementing such a system using the Observer Pattern in just a few minutes!
#unity #tutorial #gamedevSimple DASH Mechanic in UnityBMo2023-05-12 | You can setup a player dash in like 7 lines of code. It's super easy.
All you need to do is:
1. Determine if you can Dash 2. Increase Player move speed for a set duration 3. Set an optional cooldown to dash again 4. Allow the player to dash again
#unity #movement #tutorialCUTSCENES in Unity using TimelineBMo2023-05-10 | If you ever wondered how to create Cutscenes in Unity, you can get started right away using Unity's built in Timeline tool.
Similar to video editing or animation timelines, you can basically add a variety of different clips, from audio, to GameObject animations, and then place them along a Timeline to play in an organized sequence.
#unity #cutscene #tutorialEasy Enemy Health Bars in UnityBMo2023-05-03 | The main difference between a Player's Health Bar in the HUD vs an Enemy's is creating the Health Bar in WORLD SPACE.
In stead of overlaying UI on the Camera, the Enemy or Game Object itself has a Canvas attached to it as a child object, and the UI is a part of the Enemy GameObject.
The benefit of this is the Health Bar follows the Enemy around, the downside is we need to make sure it stays oriented and positioned properly as it does.
Learn all about how to solve for that easily here without needing a single asset of your own.
Using Unity's Slider UI component out of the box we can use the guts of that to make a working health bar in close to 5 lines of code.
Join the Discord: discord.gg/g9j8yrHTEDTrying to Make NPC Conversations AI GeneratedBMo2023-02-19 | I love AI, it is so great, they're my best friends! Please don't hurt me.Trying to Make NPC Conversations AI GeneratedBMo2023-02-19 | I love AI, it is so great, they're my best friends! Please don't hurt me.Flexible LOOT SYSTEM in Unity with Random Drop RatesBMo2022-10-26 | Loot makes exploring and killing all of those enemies really worth it. Everyone wants a reward.
In just 2 simple classes and a few lines of code you can setup a powerful loot system that lets you dynamically set drop rates and loot tables on individual GameObjects using Scriptable Objects and Random Number Generation.
Build the foundation for any loot system you'd want to incorporate in your game in a few minutes.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to become the very best game dev, like no one ever was 💘
➤LIKE the video if you enjoyed, it really helps the channel!
➤Join our DISCORD SERVER: discord.gg/g9j8yrHTED We have channels to help you with your problems!
Thanks for watching!
#bmo #unity #tutorial #lootGenerating Random Values in UnityBMo2022-10-19 | Random numbers are pretty useful in any game you can think of, and can be used as a tool to add interesting behavior to your game.
There are key things to know with generating Random values, how different types work, what utility the Random class provides, and how to seed your random numbers to get predictable results.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
COMMENT if you have any questions or use random numbers in an interesting way!
SUBSCRIBE for all the follow up videos and to become rich and famous and beautiful
➤LIKE the video if you enjoyed, it really helps the channel!
#bmo #unity #tutorial #randomTest Multiple Phones with Unity Device Simulator!BMo2022-10-06 | With how many phone models are out there mobile development can be overwhelming. Many new developers stick to a single phone when testing their games and layouts, only to find issues with other phone models once they publish to the app store.
Unity provides a device simulator to test your games on in the Unity Editor to play around with a huge list of devices and see how your game performs on them. This is a really powerful tool, I would call it a must have, even though it is still being developed by Unity.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE or I'll uhh simluate your.. device
➤LIKE the video if you enjoyed, it really helps the channel!
➤Join our DISCORD SERVER: discord.gg/g9j8yrHTED We have channels to help you with your problems!
#mobile #unity #tutorialCinemachine Is Really Powerful, Set It Up EASILYBMo2022-07-13 | When it comes to tools you must be using during game development, Cinemachine is right near the top. Easily top 3. I think many people can get overwhelmed with how to use it and never take the leap, but its dramatically more powerful than the Main Camera can ever hope to be.
Here is how you can setup a variety of different camera configurations in your game in literally minutes.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE or I'll follow you around and record you 🎥
➤LIKE the video if you enjoyed, it really helps the channel!
➤Join our DISCORD SERVER: discord.gg/g9j8yrHTED We have channels to help you with your problems!
Thanks for watching!
#bmo #unity #tutorialHow to Add a TRAIL EFFECT to Anything in UnityBMo2022-05-02 | Unity offers a TrailRenderer Component, and in like 30 seconds you can add customizable trailing effects to any moving GameObject.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to inflate my ego with a bigger number 💖
➤LIKE the video to leave a trail of how much you... liked this video
#unity #tutorial #bmoHow to Make An Enemy Chase The Player in UnityBMo2022-04-27 | The most basic AI you can have is for your enemies to chase the player around in game. You can set this up with literally just a few lines of code, and at that point you can setup a damage system when the enemies collide with the player.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to inflate my ego with a bigger number 💖
➤LIKE the video to help the algorithm or I'll chase you
#unity #tutorial #bmoSuper Easy DRAG and DROP Unity TutorialBMo2022-04-21 | In practically 3 lines of code, learn how to add Drag and Drop mechanics into your game by allowing you to use your mouse to click on a GameObject, drag them to a new position, let go of the mouse button and their position will update.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to inflate my ego with a bigger number 💖
➤LIKE the video to help the algorithm or I'll drag & drop you
#unity #tutorial #bmoHow To Fix Unity Animation Position IssuesBMo2022-04-21 | A common mistake when using the Unity Animator is having GameObjects moving to incorrect positions.
Here is a really quick way to fix that issue so that you can have GameObjects animate relative to where they are in game
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to inflate my ego with a bigger number 💖
➤LIKE the video to help the algorithm or I'll put you in the wrong position?
#unity #tutorial #bmoQuick and Easy Unity Debugging BasicsBMo2022-04-19 | I get so many questions everyday on my videos of people asking why their code isn't working. Sometimes its a simple typo you can infer from an error message, other times its a deeper issue.
Many beginner tutorials first tell you to start putting Debug.Log statements everywhere, which can work and if done well can be a good practice - but its much better to actually learn how to breakpoint your code and step through it to understand how its working.
This is effective for all areas of software development, and as a beginner can be an absolute game changer.
Veterans definitely know this, and for great reason - you won't find a professional that doesn't know how to step through code.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to inflate my ego with a bigger number 💖
➤LIKE the video to help the algorithm or I'll step through you
#unity #tutorial #bmo #debugEasy Ammo & Reloading System in UnityBMo2022-04-18 | Setting up an Ammo system is just creating a few integer variables and doing a check or 2. Reloading might seem a little more complicated, but can be done in just a few lines of code.
In this 2d Unity Tutorial learn how to setup a really easy ammo and reloading system you can adapt to your game. It works really well.
I build this off of my 5 Minute Top Down Shooter tutorial, so do that first if you want to have a project setup like I do.
#unity #tutorial #bmoHow To DAMAGE Enemies in UnityBMo2022-04-16 | Attacking enemies is a staple in the overwhelming majority of games.
Learn how to setup a Damage system on enemies in just a few lines of code, and also how to use Events to broadcast messages when an enemy is killed, damaged, spawned, etc. so that your other GameObjects can react to what is going on in a clean and decoupled way.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to inflate my ego with a bigger number 💖
➤LIKE the video if you enjoyed, or else you're my enemy and I'll damage you
➤Join our DISCORD SERVER and become the worlds first trillionaire????: discord.gg/g9j8yrHTED
Thanks for watching!
#unity #tutorial #bmoThe Easiest Way to Make a High Score in UnityBMo2022-04-14 | You can save a High Score in Unity in literally a single line of code, and showing off the highscore can be done in another single line of code.
PlayerPrefs in general have very limited functionality, but for a High Score (or Hi-Score) in Unity it is one of the best use cases for it.
Best used for small arcade games and game jams.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE TO MAKE GAMES AND BECOME BEZOS RICH, ALSO BEAUTIFUL ❤️
➤LIKE the video if you enjoyed, it really helps the channel!
➤Join our DISCORD SERVER: discord.gg/g9j8yrHTED We have channels to help you with your problems!Unity 2D Magnet / AoE Pickup CollectiblesBMo2022-04-12 | Colliding with a collectible to pick up the item is one thing, but how would you implement a system to pull the items to the player once you get close enough?
In this 2D Unity Tutorial learn how to create a magnet or AoE pickup effect in just a few minutes.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE and I'll give you all my money (real)
➤LIKE the video to give me a chance in this youtube life
➤Join our DISCORD SERVER: discord.gg/g9j8yrHTED because we'll help you out for free and be best friends
Thanks for watching! #bmo #unity #tutorialThe 4 Gamer Personality TypesBMo2022-04-10 | Dick Bartle came up with 4 types of players everyone in the world boils down into.
Which one are you?
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE so I can gift you more knowledge and friendship 🧑🤝🧑
➤LIKE the video if you enjoyed, it really helps the channel!
➤Join our DISCORD SERVER: discord.gg/g9j8yrHTED or else you're gonna be in huge trouble
Thanks for watching!
#bmo #gamedev #unityGift Your Future Self with Custom UNITY PACKAGESBMo2022-04-07 | So many people work so hard on features in game development, and the moment they leave that project everything they've worked on fades into the abyss. Change your entire approach to game development by packaging valuable functionality and carrying it over into your other projects.
This is true for tools as well as entire game genre templates. Platformers, Racing games, RTS, RPGs, FPS, 2D games, 3D games, etc. there's so many systems you can package up and then when you have a game idea down the line you could import some of these and start working immediately without wasting time on the setup.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE so I can gift you more knowledge and friendship 🧑🤝🧑
➤LIKE the video if you enjoyed, it really helps the channel!
➤Join our DISCORD SERVER: discord.gg/g9j8yrHTED or else you're gonna be in huge trouble
Thanks for watching!
#bmo #unity #tutorial5 Minute Top Down Shooter Unity TutorialBMo2022-03-31 | I've made a longer, more detailed tutorial on how to handle 2D Top Down Shooting, but heres the abridged version when you need a refresher on how to get things running asap.
In this Unity Tutorial learn the basics to have a player move, rotate with the mouse, and shoot bullets when clicking the left mouse button down.
#unity #tutorial #bmo #5minuteEasy Heart Health System in UnityBMo2022-03-31 | I see a lot of Heart Systems that don't focus on how to handle half or quarter hearts. In this Unity Tutorial learn how to have a dynamic heart health system in just 2 scripts.
This is a health system used in games like The Legend of Zelda. Other buzzwords that will make youtube rank my video higher. Buzzword buzz word, synnergy,
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to win a secret prize one day unexpectedly maybe
➤LIKE the video if you enjoyed, it really helps the channel!
➤Join our DISCORD SERVER to be forever in my heart health system: discord.gg/g9j8yrHTED
Thanks for watching!
#unity #tutorial #bmoUnity Magic Functions / Script Lifecycle MethodsBMo2022-03-28 | Everyone knows about Start and Update in your Unity scripts, but how do they work? Are there any others? When do they get called?
In this Unity Tutorial we'll cover the basics of how many Magic Functions there are and how they work.
#unity #tutorial #bmoYou Need to Game Jam More OftenBMo2022-03-27 | Game Jams are easily one of the most stressful and most fun activities in game development. That's why there are so many!
Building your dream game made from love and passion is the poetic notion that drives most of us.... but have you prototyped a really stupid idea lately?
Sometimes that's way more fun. And refreshing!
I think participating in Game Jams from time to time is essential in pushing you to learn more and to challenge yourself. Many times it refreshes your desire to work on your dream game. Many times you find a new game idea that you become passionate about. And every time you should come out of the jam with valuable experience!
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤LIKE the video if you enjoyed, it really helps the channel!
#bmo #gamedevelopment #gamejam #unitySimple Inventory UI in Unity With Grid LayoutsBMo2022-03-26 | ➤Previous Inventory System Tutorial (Watch First): youtu.be/geq7lQSBDAE
Creating an inventory isn't so hard, but displaying it in a nicely presented way can be... but its also a lot of fun.
There are so many UI options for an inventory that can all function differently that its really hard to make a tutorial for it, but I figure most people atleast just need to be able to display inventory slots inside some larger container.
Using Layout groups (grid, vertical, horizontal) can give you the grid your looking for in Unity.
By the end of this unity tutorial you'll be in a good place to expand your Inventory UI in any direction you want.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to inflate my ego with a bigger number 💖
➤LIKE the video if you enjoyed, it really helps the channel!
➤Join our DISCORD SERVER and become the worlds first trillionaire: discord.gg/g9j8yrHTED
Thanks for watching!
#unity #tutorial #inventory #bmoFlexible INVENTORY SYSTEM in Unity with Events and Scriptable ObjectsBMo2022-03-24 | Full Disclaimer: Displaying an inventory is not shown in this video - but everything you need to setup an inventory to display in the first place will be covered.
Using Interfaces/Scriptable Objects/Events we can setup a pretty flexible Inventory System in a clean way that will provide a lot of utility and longevity to your projects.
Every game needs to store some sort of items, and in this Unity Tutorial you'll leave with something you'll use quite a bit I imagine.
I only go into some basic fields, the fun part for you will be adapting it to fit the needs of your game.
COMMENT if you're having trouble or have a better way of doing inventories!
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
SUBSCRIBE for all the follow up videos and to become rich and famous and beautiful
➤LIKE the video if you enjoyed, it really helps the channel!
➤Join our DISCORD SERVER to become a god amongst men: discord.gg/g9j8yrHTED Thanks for watching!
#bmo #unity #tutorial #inventoryBasic Saving and Loading in Unity with PlayerPrefsBMo2022-03-21 | Playerprefs lets you save strings/floats/ints in key-value pairs, and is nice because it comes right out of the box with Unity without having to import any packages or do any extra work.
However, Playerprefs as a save system is very limited, and is not actually intended to store game data, but rather Player Preferences (hence the name) that you might find in, say, an options/settings menu.
With that said, its useful to know, and is actually an excellent use case for things like GameJams if you want to have a Save system running quickly and it doesn't need to be complex!
#bmo #unity #tutorialProject Management Tools I Use EVERY SINGLE DAYBMo2022-03-21 | Have a ton of ideas for your dream game and are now on your way to billions of dollars? Did you remember to write those ideas down somewhere?
In this video we talk about the incredibly important topic of project management and how to structure progress on your game to actually see yourself complete it one day.
Whether a solo dev or working with a team here are a few tools that are essential to your day to day, even in ways that are non-project related. So here are a few project management tools I use every single day.
Btw - I'm not sponsored by any of these, just my genuine opinions
COMMENT down below any project management tools you use, would love to hear about them.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
#bmo #unity #gamedevelopmentSetup 3D Pathfinding Agents In Minutes Using UnityBMo2022-03-18 | Unity offers so many tools that get under utilized... The Nav Mesh being something that is so powerful and used to be such a pain to setup in older engines yourself.
I show how you can setup working pathfinding in a game in literally a few clicks. Obviously this is a simple example, but I think its important to jump into using it yourself to start playing around with it, and I think people get intimidated without seeing how easy it really is.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to see follow up videos in how we can use Nav Meshes in interesting ways.
➤LIKE the video if you enjoyed, it really helps the channel!
#bmo #unity #tutorialGAME OVER Menu In Unity TutorialBMo2022-03-17 | A Game Over menu is actually incredibly simple, but how to implement one really can depend on the type of game your making.
With the approach discussed in this Unity Tutorial I'll cover how to use Events so regardless of the genre of your game and the condition of your "Game Over" you'll be able to adapt this to any project in a clean way.
Comment down below if you need any help understanding anything!
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to not get a game over
~~
➤LIKE the video if you enjoyed, it really helps the channel!
➤Join our DISCORD SERVER: discord.gg/g9j8yrHTED We have channels to help you with your problems!
Thanks for watching!
#bmo #unity #tutorialThe Single Way To Feel About The SINGLETON PATTERNBMo2022-03-15 | The Singleton is the most popular design pattern used in Unity (aside from probably the component pattern because... well the engine inherently runs off that), but its also the most hated pattern by veterans.
Whats good? Whats bad? What should you look out for when using it? And also... what is it?
I cover that here and show how you can make an instance of a singleton with an AudioManager example.
TLDR - Its quick and easy to implement, its abused by the inexperienced, and I'll still use them in every game jam I attend.
COMMENT down below your thoughts on the singleton pattern, I'd love to have a discussion on this.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to learn more about other design patterns as I cover them next!
#bmo #gamedev #programmingSee Your Project To A Cleaner Setup With The OBSERVER PATTERNBMo2022-03-13 | The Observer Pattern is probably one that confuses people the most, but is not only rather simple - it feels the most gratifying to put into a project and have your components run off of events.
In video games the observer pattern typically breaks down into 2 parts - a broadcast is sent, and a bunch of "observers" or "listeners" are waiting to be notified of that broadcast, and then do something.
This is primarily driven with events and delegates, and the big bonus here is your components do not need to know about each other, they only need to know about the events that the observers can subscribe to.
This is useful for anything that happens in your games, unity or otherwise. Pickup events, damage events, game over events, enemy killed events, trigger events, etc etc etc. Games are driven by events already, the observer pattern just structures your project to give you that full separation.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
COMMENT down below how you use the Observer Pattern, or if you're having trouble understanding it.
➤SUBSCRIBE to learn more about other design patterns as I cover them next!
#bmo #gamedev #programmingWhat You Need To Know About The COMMAND PATTERNBMo2022-03-12 | There are a ton of Code Design Patterns, and the Command Pattern is one of the most commonly used ones when it comes to games.
The obvious and most used example would be something like a Real Time Strategy game (like starcraft/warcraft/age of empires) where you can give your units a sequence of commands.
Another might be a Tactics game like Fire Emblem or Final Fantasy tactics or any turn based game really where you might want to record your actions or UNDO an action.
Other less obvious examples might be creating a messaging system for a multiplayer game between the server and client.
Or maybe handling monetary transactions where the sequence of events is critical.
Let me know in the comments what else you've used the Command Pattern before.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to learn more about other design patterns as I cover them next!
#bmo #gamedev #programmingHow Code Design Patterns Can Spare You A HeadacheBMo2022-03-11 | Almost all games are unique, but the problems you face building them are not. Code Design Patterns are well known solutions that have been vetted by the industry as a whole to solve common problems everyone will run into eventually - especially in game dev.
Are design patterns the end all be all? Absolutely not. Are they worth learning a bit about? Absolutely.
Just be careful not to feel like you're pigeon holed into using the pattern if you try one out, think of them more as guides then rigid laws.
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
➤SUBSCRIBE to learn more about design patterns as I cover them next
➤Join our discord we have cookies and ice cream. I also don't say pattern so much on there: discord.gg/g9j8yrHTED
Thanks for watching!
#bmo #gamedev #programmingKey Differences Between New and Mid-Level DevelopersBMo2022-03-10 | Just wanted to talk about a few things experienced programmers consider when coming up with solutions that beginner programmers can learn from.
➤Would love to hear your thoughts, drop a comment below
#bmo #gamedev #tutorialDrag and Drop ENEMY AI With Scriptable Objects in UnityBMo2022-03-09 | Learn how to setup Enemy Brains or AI Behavior using Scriptable Objects allowing you to easily drag and drop new ai behavior through the Unity inspector.
Scriptable Objects are a powerful tool in structuring your code cleanly, and here is no exception. With this approach you can setup a complex enemy a.i. behavior tree while all of the behavior logic is separated into individual scriptable objects.
This follows the delegate pattern, which enables separation of concerns amongst your scripts which is an important practice in producing clean, maintainable code that will see your project through to the end.
Also its fun to play around with enemy "brains".
✨Want to support the channel? Buy me a coffee ☕: ko-fi.com/bmoli
SUBSCRIBE or else I'll play around with your brain