Should you make games from scratch?

  Рет қаралды 3,375

Barney Codes

Barney Codes

Күн бұрын

Пікірлер: 55
@BarneyCodes
@BarneyCodes 4 ай бұрын
Get 40% off CodeCrafters + 1 week free! app.codecrafters.io/join?via=BarneyCodes Been a while since you've seen my mug on here, hopefully it's not too confronting!
@beidero
@beidero 4 ай бұрын
I think another common trap once you use an engine is to get stuck making tools. Tools are nice to have and you might be able to sell them, but in the end if your goal is to release games then spending time polishing tools does not achieve that goal.
@BarneyCodes
@BarneyCodes 4 ай бұрын
Ahh I'll definitely have to look out for this when I start using an engine, thanks for the heads up!! It's so easy to procrastinate when you can kid yourself that it's productive!
@mikkelens
@mikkelens 4 ай бұрын
I think this totally depends on what tools you're already provided. I have used a "ready for production" game engine (Unity) for quite a few years and its still nearly impossible for me to work on solo projects because I still make editor tools. What matters more, in my opinion, is whether the tools you're provided feel satisfactory or if you feel you could do better.
@GonziHere
@GonziHere 4 ай бұрын
"Don't do everything yourself" and "use an engine" aren't synonymous and shouldn't be used this way, IMHO. I usually compare it to cooking. I don't want to build my own stove and cast my own pan, etc. However, the existing engines are like McDonalds kitchen, which is the other extreme. I want to buy a pan, pick between iron cast or Teflon, maybe go for a wok shape, etc... but ultimately I want to setup my own kitchen for the kind of cooking I'll be doing. I really don't want to go into the McDonalds kitchen to try to adapt it for making pasta or pizza. Even the sentiment of "just make a game". Game isn't a painting that you just paint. Game is a piece of software. Games are basically the only software that have this kind of tooling. Every other software is built via normal build processes, not by launching an app, that has a button to make another app. Like, I don't disagree with your sentiment in general, and most of your points, I'm just adding this to point out why engine still might not be the answer.
@BarneyCodes
@BarneyCodes 4 ай бұрын
Very good point that I somehow managed to miss. Frameworks definitely have a place and can be a great middle ground
@_devilfish303
@_devilfish303 2 ай бұрын
ive always subscribed to the idea that you code the game in mind and an “engine” is the end result of that. It is not a general purpose engine though, but a highly specialized one only designed to run the game you set out to make, no more no less
@BarneyCodes
@BarneyCodes 2 ай бұрын
That's sort of what I've been doing with my current game, it's definitely not a general purpose engine! The issue with that is you've basically got to re-start any time you want to do a different style of game, which can eat up a lot of time! I totally get the appeal of doing things from scratch, but from a practicality stand point, if you're trying to get things done, I think it makes sense to use an off-the-shelf engine or at least a framework, so that the heavy lifting is already done for you!
@_devilfish303
@_devilfish303 2 ай бұрын
@@BarneyCodes there's a set of programming paradigms that i recommend you look into: SOLID When you understand SOLID you will not only become a better programmer, but code that you write, no matter how specialized, will tend to be modularized in a way that can be reused for other projects. That said, i totally get where you're coming from. I started out writing a game from scratch myself only to stop and think if what im doing is even fun. In my case i do require a custom renderer, as it is meant to be a voxel ray traced game and in such a case i need to squeeze out as much performance as possible out of the hardware. Godot is a non-starter for me unless i modified the engine code and stripped out absolutely everything i don't need... HOWEVER! i am planning on prototyping it first, in Godot, to see if it would even be worth making. Is my game idea fun? is the question i want to answer before i dig myself in too deep with a custom "engine"
@DNAmaster10
@DNAmaster10 3 ай бұрын
Someone else already mentioned this somewhere else, and you also replied, so I guess I'll just add to the pot: The line between "from-scratch" and "full engine" is often quite blurred. I agree with you that, in a lot of cases, doing things from scratch is often significantly more time-consuming, difficult, and annoying in the long-run. However, I think the subjectivity of the matter comes a lot more from where exactly you start. When you're developing your games, at least as far as I'm aware, you're not using assembly at all. Arguably, you could be going a lot more "from-scratch" if you wanted to, be it machine code, building a computer from the logic-circuit up, or even mining and refining the materials for the computer yourself. I quite liked the sheep and knitting analogy you used, but I wouldn't really say it's fully accurate. I might be able to shear the wool off the sheep myself, but at the same time, I could also buy the wool directly from a farm, while still spinning the wool into yarn myself. I think this can be applied to game dev in many ways, too. Sure, I could write my entire game using a custom physics engine, but at the same time, I could also use a physics library. Maybe I could opt to use a higher-level language such as Python, so that all the memory management is handled for me, unlike with languages such as C. I suppose what I'm trying to say is that it's not a binary between from-scratch and game engine, it's a spectrum between the two. I can go full game engine if I want to, but I could also opt to use a library, such as LWJGL or Raylib, which removes many of the difficulties which come associated with writing a full game engine from scratch. Aside from that, though, I'm loving your channel! It's hard to find non-clickbaity videos where there isn't some guy screaming into the microphone.
@BarneyCodes
@BarneyCodes 3 ай бұрын
Great comment, and I have to agree! I left out frameworks/libraries entirely from my video which may have been a bit of an oversight, they definitely offer a very nice middle ground where you can still get your hands dirty, but you don't need to start from 0. My main aim with this video was just to get people to think about what they are actually trying to achieve and I think in most cases, going from scratch is not the answer! Thanks again for the comment and the kind words!
@HorseyTime
@HorseyTime 4 ай бұрын
Bro I really hope you finish strong and update us along the way. I need some legitimate dev log content in my life
@BarneyCodes
@BarneyCodes 4 ай бұрын
Haha thanks mate, that's the plan!
@kiosmallwood576
@kiosmallwood576 4 ай бұрын
Yes. Now I'll watch the video. Edit. Loads of good points. I'm definitely in the camp of build an engine around a crazy concept and see if a viable game can be made, rather than make a game people want to play.
@BarneyCodes
@BarneyCodes 4 ай бұрын
That's definitely how I got started in game dev too, always just trying something technically interesting that I wanted to code, then try and turn that into a game. I carried that mentality forward though when I was setting out with the goal of making a game which was a bit silly of me haha!
@jackfrost884
@jackfrost884 4 ай бұрын
interesting perspective
@SHAO_L1N
@SHAO_L1N 4 ай бұрын
I feel like something like Bevy, sits really nicely in between a game engine and a framework. Its what ive been exploring recently.
@BarneyCodes
@BarneyCodes 4 ай бұрын
I've been meaning to check bevy out for a while now, it seems really interesting! I think a framework (or similar) might be a really great way for me to still feel hands on and code-oriented, without having to do everything from scratch!
@SHAO_L1N
@SHAO_L1N 4 ай бұрын
@BarneyCodes Being code orientated while not having to so absolutely everything is what I really like about Bevy. Also, Bevy docs are simply amazing. Ps. Great video by the way 👏🏿
@luigiistratescu2756
@luigiistratescu2756 4 ай бұрын
I loved your video. I totally get you, and I somewhat agree and disagree. Building things from scratch (provided you have experience) is a bit more straight forward because you're familiar with the process. Especially when it comes to 2D games, you can easily make a game without really an engine. I've done it in the past. But using a commercial engine like UE5 or Unity can be sooooo much better ONLY if you already know how to use them. Like you mentioned, lighting, bloom, etc. no need to configure a framebuffer yourself and code it yourself or even tweak shaders, you can just enable Bloom from the game engine option or click and drag a light actor into the scene. But... the downside of an engine is that, very much like programming things from scratch, it takes A LONG TIME TO LEARN THE ENGINE... and get used to it. So, in other words, you're back at square 1. Not to mention some engines require languages you might have never programmed in... such as GDScript or C#... I've only ever done C++. Either way, I don't regret not using an engine because it made me a better programmer. Now I've just installed UE5 and I'm learning Paper2D... Hopefully I can fully transition to it simply because... sound effects and music for free, and letter formatting for free that comes with an engine... as well as other visual effects, ohh that's just so convenient...!!! Less technical work for me to do and more focusing on the actual game! I just subbed, awesome video the way you phrased everything is to the point and very well explained!
@BarneyCodes
@BarneyCodes 4 ай бұрын
Thanks for the great comment! Totally agree that there's a BIG investment in learning everything required to use an engine. Hopefully, having done things from scratch in the past, we'll have a good starting point and the transition shouldn't be too painful! There's always a bit of bumbling around when learning something new (like a new language), but I think the more you do it, the easier it is, because the concepts are transferable, it's the HOW that changes! Good luck for your UE5 journey!
@ZuranMyllhor
@ZuranMyllhor 4 ай бұрын
Well, I've got this on my mind after a few programmer friends asked me about just moving to an engine while the game is considerably done, so I'll join the rant- I'm currently on like... 8 months of gamedev, and while I didn't go for a game engine, I didn't make it from scratch, per se... I'm using a game library, Raylib to be specific. That did help a bunch because all the work for the collision, the shaders etc have been "skipped", but it's still focused on programming, which is my forte, and I still have the flexibility of coding "from scratch", since I can just overload or not include parts of the game library that I'm using. There is a reason for me to do that, and I'll mention it soon. I've not that much finished-game-gamedev experience. I've only some small platforming things and some collision details solved to my name, but I've tagged along platforming gamedevs on bugs and glitches enough to feel comfortable, and that's what's making me comfortable with my choice, most of all. There's also the thing that I have a long-term plan of supporting the game once I have it done, with varying levels of success taken into account. The capability to be able to adjust the "root" level of the physics to deal with pesky corner cases years after the launch is something that I'm sure that I'll need, and the level of optimization is really important for the genre (Platform Fighter, which needs to be CONSISTENTLY at 60 fps), so those are the main reasons I'm picking the game library route. Would I recommend to go for game libraries to just put commercial games out there? Dear GOD no, even with the "skip" that the library gives its still too much effort. Do I regret going the way that I'm going at it? No, at least not yet, and I got a feeling that I won't. Does it take some major concentration and patience to do it? Yes. Every step needs much more preparation before the reward of seeing stuff take place in your screen. It is a huge commitment, and you need to think thoroughly to go through it. If you think it is necessary though, don't be afraid to do it. Just keep in mind, you'll have to appreciate the smaller things much more to keep yourself motivated. But I'm sure it is worth it.
@BarneyCodes
@BarneyCodes 4 ай бұрын
I didn't mention frameworks in my video which was a bit of an oversight on my part, but I think they're a great middle ground where you get a lot of control, but you've also got some building blocks to work with that hopefully make it realistic/sustainable to actually make things with it! I might have to explore some framework options in the future, because I do really enjoy doing things in a more code-oriented way!
@amaryllis0
@amaryllis0 4 ай бұрын
Most voxel games (on the level of Minecraft) even are perfectly suited for game engines; it's only if you want to go super crazy with high fidelity voxels, voxel raytracing, particle physics etc. that an engine might fail you
@floschy_1
@floschy_1 4 ай бұрын
as a (not game) developer I understand the urge to do everything on your own, that way you know how everything works and you can always customize, expand and change the behaviour to work with the other parts of the project, you don't rely on other packages and you learn a lot of plain knowledge and Principles behind some things as well as learning and having control over optimizations. Since i've never done stupidly big projects it worked out so far, but I can imagine the scope of the project just balloons out of control quick But on the other other hand, when you do a lot of things custom in the right way, eventually you'll have an ever growing toolset that you can use in other projects too, but then you also need to maintain its functions for all applications which is again a lot of work
@BarneyCodes
@BarneyCodes 4 ай бұрын
You can learn sooo much by doing things yourself, and the feeling of control is really nice, but like you say maintaining it all becomes just as much of a job as using it to build things! Very much comes down to what you're trying to achieve I think!
@tsitski
@tsitski 4 ай бұрын
so incredibly real
@ThePouetman
@ThePouetman 4 ай бұрын
You should put visuals of your game in the first seconds of the video, I didn't notice I was looking at one of your videos before I saw the game
@BarneyCodes
@BarneyCodes 4 ай бұрын
Oh that's a good idea, thanks for the tip!
@adamrushford
@adamrushford 4 ай бұрын
Wicked Engine!
@BarneyCodes
@BarneyCodes 4 ай бұрын
I had to look it up cos I've never heard of it before, but it looks very interesting! I might have to investigate further!
@adamrushford
@adamrushford 14 күн бұрын
@@BarneyCodes skip it, move on to Almond Engine.. I made it, #1 best engine
@diegofloor
@diegofloor 4 ай бұрын
While I agree with most of what you are saying, it also gave me the impression that you are underestimating the struggles of using an already made engine. Which isn't to say that your overall message isn't true. I actually agree that making your own engine should be the exception. But the time investment in learning someone else's solution is not negligible, specially when compared to making your own simplified version. I used Unity for years, and I'm too familiar with banging my head against some unity's system, trying to make it work. Weeks later I give up and make my own in an afternoon. This isn't an isolated event. Also not uncommon is updating the engine and breaking the entire project. Also not isolated. Then there's the more pressing problem of not having a very good free and open source solution out there, in my opinion. Licensed engines, like unity will impose extra costs on you as well. Which sucks on a profession that's very hard to make a living on. Anyway, this is a good video. Subscribed. I'm curious to know how your opinion will update after your use one of these engines for your next projects!
@BarneyCodes
@BarneyCodes 4 ай бұрын
That is almost certainly the case, since I haven't done anything more than mess around a little bit in a pre-made engine. I'm sure there are all sorts of struggles and headaches that come along with using them, especially on larger/more complex games! I think frameworks are a very good middle ground of giving you some more control while also giving you enough to finish projects in a reasonable time frame. I'm sure my opinion will become a bit more nuanced as time goes on, but I think in general my stance is "make sure you've got a GOOD reason to do it from scratch" and at the moment, I don't have one!
@diegofloor
@diegofloor 4 ай бұрын
@@BarneyCodes However, one thing is certain: for prototyping, exploring game design, etc, it has to be a full blown engine. You need to iterate quickly. So unity, game maker, have to be part of the toolkit. Even if you want to move it back to another engine later.
@braydonfisher9273
@braydonfisher9273 Ай бұрын
You forget factorio, the most polished game since snake. Built on a custom engine for 10+ years to massive success
@BarneyCodes
@BarneyCodes Ай бұрын
I think factorio is basically the perfect example of NEEDING to make your own engine because it's doing something super unique (just like the example I gave in the video of Noita etc)
@alfredogodoy6854
@alfredogodoy6854 4 ай бұрын
would be awesome if you make some tutorials about gdextension
@BarneyCodes
@BarneyCodes 4 ай бұрын
I'll have to learn about it myself first, but if I come across anything cool I'll definitely share it!
@viikoreaux
@viikoreaux 4 ай бұрын
Trap that's been luring me in: "Games with bespoke engines are easier to release updates for because the engine can be modified at any time. i.e. EVE Online"
@wchorski
@wchorski 4 ай бұрын
being able to say "I made the game engine from scratch" can be such a good selling point. The fact that a game isn't bound by an engine's limitations is what really makes for unique experiences. But agreed that you'll be spending more time squashing bugs than design and features. Probably a good idea to at least prototype in an engine and then possibly transition to a custom engine when it needs it.
@BarneyCodes
@BarneyCodes 4 ай бұрын
My understanding is very limited, but I feel like there would often be things that are said to be limitations of the engine but are actually limitations of the developer (obviously there would be ACTUAL limitations, but they're probably a lot wider than what some people think) Like you say, it's probably wise to prototype in an engine first and then figure out if you need something custom!
@useronyoutube314
@useronyoutube314 4 ай бұрын
Fun fact. I’ve subscribed because you make your own engine 😂
@BarneyCodes
@BarneyCodes 4 ай бұрын
Oh no 😅 I'll still be doing some low level stuff, just not when I want to make a game!
@Jintenzo
@Jintenzo 4 ай бұрын
Please take one step back from the camera lol
@BarneyCodes
@BarneyCodes 4 ай бұрын
Lol yeah I need to get a wider-angle lens, the one I've got is too zoomed in and I can't go back any further hahaha
@gyokzoli
@gyokzoli 4 ай бұрын
I don't get that why would anyone think it is a better idea to create an own game engine...
@BarneyCodes
@BarneyCodes 4 ай бұрын
I think learning, having fun, and making a technically complex game that can't be made with a pre-made engine are the only really legitimate reasons. I genuinely enjoy the programming that I'm doing while working on my engine, but my main goal is to release games, in which case, as you say, it doesn't really make sense to make my own engine!
@Nerthexx
@Nerthexx 4 ай бұрын
1. Making engines and making frameworks are entirely two different things. 2. Godot is nowhere near enough for practical game developement. 3. Unity is bloated, I don't know a single good game that doesn't lag in comparison with AAA games that don't and actually look better. 4. Unreal Engine is also bloated. Same arguments as with Unity. I remember playing Green Hell and it was... not fun. On my GTX 960 (at that time), Witcher 3 on normal settings was giving me around 80-ish fps and looked good, while green hell looked like a 2011 game at best at settings that gave me at most 60 fps. I understand that people that use these engines usually overlook the underlying processes, techniques and architecture and spiral into the route of bad practices, resulting in a bad player experience. Licensing is another part of all of this. Game engines try to be a magic bullet, solution for all problems, but in reality, you're stuck on reimplementing your own graphics pipeline, your own physics, your own UI, implementing your own game mechanics, and for people that don't - marketplace exists, which add on to the problem by brute-forcing the solution, sometimes trying to fit them all together. IMHO - practical engines/frameworks that solve only one problem (your game) are better for many reasons.
@everettw
@everettw 4 ай бұрын
"Godot is nowhere near enough for practical game development" Have you used godot? Have you seen the shipping games using it?
@Nerthexx
@Nerthexx 4 ай бұрын
​@@everettwYes. And you still have to implement 90% of what you want or find hacky ways because of lack of support. I'm not saying it's impossible, just not practical.
@Kobold666
@Kobold666 4 ай бұрын
Those public engines are made in a way that lets you click together a simple "game" in an evening. Once you're really into using them and coding around their quirks, they become nothing more than a framework that lets you open a window, upload textures and shaders and handle user input. You can have this in a few kilobytes using something like SDL, GLFW, Raylib or whatever, or you can waste a gigabyte for an engine of which you don't have a clue what it even does with all the resources.
@BarneyCodes
@BarneyCodes 4 ай бұрын
I did overlook frameworks quite a bit in this video, which is my mistake! I can definitely see them being a good middle ground where you still get a fair bit of control, but also get given enough to be able to actually finish a project in a reasonable time frame.
@vvstwo
@vvstwo 3 ай бұрын
i think game engine's need to expose more of the garbage collector or let the developer manage resources themselves it seems there's really no such thing as a full proof garbage collected game engine, many big unity games suffer from memory leaks which devs are always fighting. another issue seems to be the engine wanting to load every resource in the entire level, instead of streaming textures in and out which is supposed to be a feature of off the shelf engines but it seems that in many cases it'll decide to load everything into ram, the devs never think about this stuff they blame unity or unreal.
Beginner's Guide to Shader Distortion Techniques
17:03
Barney Codes
Рет қаралды 7 М.
Fixing the REALTIME terrain shadows using YOUR suggestions!
8:40
Barney Codes
Рет қаралды 71 М.
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 109 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 205 МЛН
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 21 МЛН
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 42 МЛН
I Made My First Game in Godot in 3 Weeks...
26:21
Jack Sather
Рет қаралды 428 М.
I Paid Fiverr Game Developers to Make the Same Game
10:25
BadGameDev
Рет қаралды 740 М.
I created a game in only 3 hours
9:36
PenguiDev
Рет қаралды 4,2 М.
I Added Infinite Crafting to Minecraft (with AI)
13:08
Blucubed
Рет қаралды 1,9 МЛН
Why Do Big Video Game Studios Avoid Blender?
6:49
The Cantina
Рет қаралды 689 М.
Using noise in shaders (texture blending)
8:28
Barney Codes
Рет қаралды 12 М.
Real-time 2D shadows | HUGE improvements!
9:32
Barney Codes
Рет қаралды 39 М.
God-Tier Developer Roadmap
16:42
Fireship
Рет қаралды 7 МЛН
Realtime shadow casting on 2D terrain
4:33
Barney Codes
Рет қаралды 116 М.
I Trained an AI for 2 Years on Trackmania. It's Breaking Records.
27:50
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 109 МЛН