Skip to content

Frameworks are getting better than engines especially if doing a 2d game in 2024?

I worked with unreal engine for some years. I know its not the best engine for 2D games. But it does 2D games the same way it does 3D games.

A lot of what im going to say applies mostly to Unreal Engine. I know unity and Godot fares a bit better in terms of coding straight to the point.

Though now that i know unreal i see no point in learning Unity or Godot, and it seems that its smarter to just use a framework if i need an alternative.

Game engines with all their bloat, and all their caveats. With all the buttons, and menus. The visual scripting. The closing and opening of editor. The compiling time. All of this seems to just hinder the development of a game.

Chatgpt can't code properly, ok... But can spit out entire functions that 90% of it works, and just needs some human eye double check.

Often times you can detect immediately where is the flaw, tell it, and it corrects it. That doesnt occur with blueprints.

Even if you really enjoy blueprints. It takes a lot of time, it becomes messy, and sometimes to fix a problem you google it and can barely find a solution. That you are not sure yet if it works, so you test it (more time), doesnt work, look again. Blueprints are starting to feel obsolete. Because finding code, reading it, and testing it is 100x faster.

I love blueprints and Unreal Engine, and thats what im going to use for a 3D game. But a lot of my game ideas are 2D.

I enjoyed making 2d games in unreal, despite what a lot of people say. For me its the same as doing a 3D game, but with ortographic camera, and planes as sprites. The performance is very good.

Now of course i can code in C++ in unreal. But i absolutely despise how you have to close and open the editor, compilation times. It seems the C++ in unreal is made as an after thought. You create a class in C++, its a mess to even remove it, or rename it. The C++ of unreal engine is nice, but it seems its something you will use as a supplement.

I'm not totally done with unreal when it comes to 2D. Because i developed very specific methods that are great for performance. So if i want a 2D rts with hundreds of thousands of units, I will still use unreal.

And unreal material editor is amazing, thats another caveat.

I found it 100x faster to make a game using just code. In my case, SFML or JS Canvas.

And you might say, why not use godot. Well why not use SFML? Its faster, cleaner, less bloated, more flexible.

The other point in favour of using a framework. Is that you are getting experience in analyzing actual code, and coding. Sure blueprints are code too, but they are not the same thing. Its very limited.
Frameworks are getting better than engines especially if doing a 2d game in 2024?

8 points17 comments
Open on Reddit
About this post
Posted
Archived
Score
8 · 72% up
Kind
Text
ID
1e4rlro

Author

279
posts
187
comments
31
media
View profile

18 comments

I think it’s a particular issue of Unreal blueprints that you’re applying to every engine.

I work mostly on unity and 75-90% of my time is coding in plain code.

9 points

Something you miss with frameworks is packaging and distribution. A lot of the "bloat" of engines like Unreal allows you to target specific platforms. I have no idea how I'd get a JS canvas game onto the PS store, for example.

7 points

thats true. And its something said in a lot of similar posts to this that i searched before. Though all my games i packaged them to windows. Tried to package in unreal for mobile. It was a total mess. And didnt work at all.

2 points

From my understanding unreal isn’t meant for mobile at all, mainly mid to high end PCs and consoles. Godot is good for PC exports, and Unity can do it all with a price for console exports.

0 points

When it comes to 2D games, I do prefer coding them myself rather than having to work with an engine because it gives me more flexibility and is often faster. I just want to write some nice clean C++ instead of figuring out all the intricacies of an engine.

I would say there is a lack of open source 2D game frameworks which provide all the necessary tools to ship a game. If I had to make a short list of some features I would want from a 2D game framework it would be:

  • Cross-platform support (pc, xbox, playstation)
  • Robust GUI and font library with good scaling, preferably HTML based (like Ultralight)
  • Light weight with no dependency on large libraries like Boost
  • Performant and fully open source

The closest thing I could find to match those requirements was raylib but it doesn't seem to have console support and the GUI library doesn't seem to have the level of flexibility I desire.

3 points

What about sfml? or sdl?
For raw c++ i found these tutorials to be the most useful:
https://www.youtube.com/watch?v=xXXt3htgDok

1 points

I've never really used SFML but it looks ok, although it doesn't seem to have console support or a GUI library, so the GUI would have to be built with sprites, shapes, or some other type of low level OpenGL rendering.

That's one of the main reasons I want a GUI system which is HTML based, it allows me to make very complex designs very quickly since I already have web design experience, and it allows the user interface to easily scale.

It also makes it easier to create the GUI since it's easy to display HTML, so even though I'm using a framework without any sort of IDE I still have a visual way to inspect and test my GUI, without even having to run the game.

2 points

And you might say, why not use godot. Well why not use SFML? Its faster, cleaner, less bloated, more flexible.

You said you never tried Godot, how are you saying all this so confidently? Godot is fast, clean, not bloated and very flexible. You can even modify the Godot engine yourself if there's something you don't like about it. You used an engine that's made for high fidelity games to make a 2D game, the problem is not with Unreal Engine, the problem is that you used the wrong tool for the job.

You also seem to think that all engines use visual coding (blueprints) but even in Unreal Engine you are not forced to use blueprints to work, you can simply code normally, just like all other engines out there.

2 points

Some people do just prefer frameworks, but your complaints seem to be a lot of unreal specifics. Blueprints/visual coding? I’ve made a SMALL unreal game (like you can move around and shoot enemies) and even then I thought that system would get messy as it grows. That being said unreal one of the few engines I can think of that pushes its blueprints. Engines like Godot and Unity might have a plugin made by someone, but they’re code specific. Also you can just use code in unreal but yeah compile times suck.

If you hate compile times, then why not try Godot? You’re calling every engine bloated, but they’re not. You’re trying to make a simple 2D game with an engine designed for triple A 3D beautiful graphics, of course it’s bloated for you. Unity tries to do a bit of everything making it bloated for many. Meanwhile Godot is basically the opposite of that, at least for now.

Not to mention the benefit of having a visual interface to put together all the pieces. There’s plenty of reasons to use an engine, but if you prefer a framework that’s fine, just use what works for you. What’s fast is subjective. Of course with unreal and Unity you’ve got compile times, but the fastest engine will be whatever you have the most experience in. There’s more to a development time then just waiting for code to compile (although it seems unreal is the worst at that part from my experience so far)

1 points

Thanks. However, whenever i hear about "try unity" or "try godot", it just throws me back to unreal instantly.

I prefer coding in C++ than in C#. As you said unity tries to do everything. And I only need something for 2d now. If i do 3d I will use unreal... Learning unity just for this doesnt seem like a good idea... And will take me a lot of time. this time should be spent getting better at unreal, or a framework, imo. This is my impression, and please counter it if im wrong.
So this leaves me with Godot, which from my impression, and the tutorials i watched (didnt watch many to be honest), and the grasp i got of it, it seems like it provides quite a fun experience. Though GDScript is a complete turn off for me, and i know you can do it in C++ and C# but there is little tutorials and documentation... So for me GDScript seems a lot lik e blueprints. I also heard the performance is similar.

Performance in unreal engine blueprints is terrible. It is unnacceptable for an rts. You must do it in C++.
And I believe godot will be the best engine in like 5 years from now. But as of now its too early.
So i'd rather work with monogame C#, or js canvas, at least im getting hands on experience with these languages than using GDScript that wont be of any use outside of godot.

3 points

I made a prototype for a 2D game in Godot a little while ago and I actually quite liked it, I definitely prefer it over Unity for making 2D games. However I'm a C++ person like you, and although GDScript doesn't seem terrible, I prefer to write performant C++ code.

Even if C++ was the primary scripting language, I'd still have to learn all the engine specific functionality and I have to write my code withing the confines of the engine pipeline. I also have to learn how to use any framework or libraries, but they often have good documentation.

But I think it's mainly the flexibility which I desire. I often want to mess around with the rendering pipeline and do things in unusual ways that would probably be a pain in a typical engine. I also just like to have a solid base I can start working from to rapidly develop prototypes.

2 points

I can see where you’re coming from, and if you’ve really given Unity and Godot a chance and just don’t like it then that’s fine, but now you know! Learning a new engine or framework imo is NEVER a waste of time. It gives you insights on how another program prefers structuring projects and code and you can use that knowledge to further develop the way you prefer to organize your games.

For instance, switching to Godot from Unity with their node based system took a moment to get used to, but now I like it for the most part. And the code structure I’ve developed with Godot just further develops my programming knowledge.

But I also learned what I don’t like. As you said Godot uses gdscript, while this isn’t a deal breaker for me I definitely prefer C# over it, but I’ve gotten more used to it. Sometimes I’m inclined to do C# with Godot, but once you have experience with how the engine works with gdscript it can be hard to switch to C# cuz it’s just not as smooth in terms of user experience.

I also disagree with it being a waste of time to learn something else, partially for the example states above with unity and Godot, but it’s also situational. Like, are you developing a portfolio to apply for game programming jobs? Then C++ or C# is basically a must a lot of the time, in which case sticking to those languages can be very beneficial for that. Also unreal and Unity are the main players for what companies want so I’d recommend sticking with one of those. But if it’s a more hobby thing then you can just use whatever you like.

You mention learning gdscript as a waste but I strongly disagree with statements like these. Again, if you’re focusing rn on job prospects, then yeah stick to C++ or C#, otherwise learning another language is never a mistake imo. Every language you learn makes the next easier as you have a bigger knowledge base for how languages work in general. Not to mention the basics of coding transfer to any language. I picked up gdscript decently after a week, and felt totally fine after a month coming from a C++/C# background. Gdscript is also very much like python and Lua, so it’d make picking those up down the line even easier.

You mention defold and gdevelop, I’ve never looked into gdevelop as I see no reason to, but I have been looking into defold for mobile games since that’s what it’s known for. Once you learn one engine, learning another is pretty simple usually. Not to mention tutorials are rarely engine specific. Lots of engines have equivalents in each other, so you can definitely make use of Unity tutorials in Godot or vice versa, so there’s always that to take into account.

Overall I never think learning a new engine or framework is a waste, you further develop your overall knowledge of game dev and programming languages, and can often take what you learn to further develop your programming style that you may have otherwise not figured out without a fresh perspective. I’m personally learning raylib as well to pick back up my rusty C++ skills and make a game with no engine doing a lot of the backend work.

Also you mentioned C++ being not as popular for jobs, but do you mean game jobs or in general? Cuz when applying for jobs you want to specialize your portfolio to what you’re doing. And if you want to be a game programming, like I said C++ is industry standard, next to C# with Lua often being used to implement mod support.

But yeah anyways, I learned gamemaker technically first, then Unity, then Godot, tried gamemaker again and realized I no longer like it with my Unity and Godot experience now, and now have an even bigger backlog of engines and frameworks I wanna learn or at least try 😅 defold and unreal are on my list as well as pygame, love2D and raylib. I find learning new methods quite fun, although if I was to focus on getting a job then I’d probably focus on unreal and raylib or Unity first the time being.

2 points

Do you have tool to drag & drop UI for 2d game without game engine? I would love to test on some framework like FNA but the thought of manually coding the component (UI comp) make me terrified AF.

Currently i have to use React on my our game project (Roblox game) and it sucks so hard.

1 points

I would think you could layout out all the pieces in photoshop or something and import it, but if you want the screen resolution to change outside of the normal aspect ratio then you’d have to implement your own alignment system and stuff, although I think lots of popular frameworks probably have something made by someone you can just use instead of making your own.

2 points

Godot
Game engines with all their bloat, and all their caveats. With all the buttons, and menus. The visual scripting. The closing and opening of editor. The compiling time. All of this seems to just hinder the development of a game.

You have clearly not used Godot. Godot doesn't really have bloat. GDScript is not visual scripting and it isn't compiled either so no time spent waiting for it to compile. Sure there are caveats with Godot, I'll give you that. But everything related to programming has caveats.

What you have done is you've used Unreal Engine for a while and are now projecting its flaws on all other engines.

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.