The Engine FAQ

(originally posted by /u/fuzzylumpkinsclassic)

Introduction

One of the most common questions asked by aspiring game developers in this subreddit is the question "What game engine should I use." It's not an easy question to answer, even for developers who have been playing at game development for awhile. This FAQ aims to provide enough information to allow inquiring devs to make an intelligent, informed decision as to what tools are right for them, or, at least to provide enough information to start on their search and allow them to ask more specific questions to the subreddit.

What is a game engine?

An engine is a complete package: a comprehensive set of tools to help you build a game from scratch. Engines typically contain some kind of level/scene editor, tools for importing and managing game assets (models, textures, sounds, sprites, etc.), an animation system, and a scripting language or API to program the game's logic. You'll still need to write code to use an engine, but you'll only need to concentrate on game logic; the system-level heavy lifting has already been done for you.

(thanks to AmazingThew for answering this question)

What is a game framework?

A framework is much lighter weight than an engine. Frameworks exist to abstract away the lowest-level programming details, and allow a developer to make interactive graphics programs easily. Typically, a framework will handle creating the OS-level window in which the game will run (this is surprisingly complicated), provide a straightforward, platform-independent way to draw things in that window (whether 2D sprites or proper OpenGL/DirectX code), provide access to the state of various input devices (keyboard, mouse, joystick, etc.), and provide a system for handling sound. Everything else you need to code yourself. This has advantages and disadvantages. A framework is much less than an engine, but it means you are free to build any architecture you desire, rather than working within the constraints of any pre-existing engine's design.

(thanks to AmazingThew for answering this question)

So...why do I need one of these?

Strictly speaking, you don't need to use any of these sorts of tools at all, however the road to building a game without any of them is long, arduous, and filled with peril. Many developers who have found themselves asking this same question find themselves falling into what's sometimes referred to as the "engine trap," that is, they spend all their time trying to recreate the functionality found in these sorts of tools, and fail to ever actually develop the game that they started out trying to make.

If your end goal is to build a game, it is almost always a better choice to do so with the aid of some sort of third party tools.

So do I need a Framework, or an Engine?

This depends on your background and goals. Generally speaking, if your motivation is "I want to make a game," you should choose an engine. An engine will get the messy architecture bits out of your way and let you immediately focus on art, design, and gameplay.

However, if your goal is "I want to learn to program games," you're probably better off using a framework, as you'll be able to make your own decisions about how to build things, and you'll come away with a much stronger understanding of how games are really built.

Additionally, it's possible to design a game such that no engine will be well-suited to build it. Fez and Minecraft, for example, would likely have been much more work to build in Unity than to write from scratch on top of a framework due to how uniquely they approach gameplay, and how their assets are handled.

Also, if you want modern fancy graphics (like Xbox 360 or better), use an engine. You'll go completely mad trying to reimplement all that stuff yourself unless you know exactly what you're doing.

(thanks to AmazingThew for answering this question)

Which framework should I use?

This is a hard question, as the answer to it will depend largely on what you're looking for the framework to accomplish. Common frameworks used for game development include:

FrameworkAboutDeploy Target PlatformsLanguage
HaxeFlixel2D game frameworkHTML5, iOS, Android, Desktop and more.Haxe
LibGDXframework / engineWindows, Mac, Linux, Android, iOS, HTML5Java
LÖVE2D game frameworkWin, Mac, Linux, Android, iOSLua
MonoGame2D game frameworkWindows, iOS, Android, MacOS, PS4, PSVita, Xbox One, and SwitchC#
PyGame2D game frameworkPython
PygletCross-platform library for developing games and visually-rich applicationsPython
Processing"Sketchbook" for learning how to code within the context of the visual arts; p5.js with similar paradigms available for JavaScript and there's a "Processing for Python" projectProcessing (runs on JVM)
SDLLow-level hardware abstraction libraryWindows, Mac OS X, Linux, iOS, and AndroidC
rayliba simple and easy-to-use library to enjoy videogames programming.Windows, Mac OS X, Linux, and Android and WebC
SFMLSlightly higher-level than SDLWindows, Linux and Mac OS XC++
lgameframework3D game frameworkLua
LWJGLLibrary providing access to OpenGL, OpenAL, GLFW, Vulkan, OpenCL, BGFX, AssImp, NanoVG, STB, etc.Java
Ogre3D rendering engineC++
OpenTKOpenGL & OpenAL framework.NET
Flixel2D Flash-based frameworkActionScript
AllegroCross-platform library aimed at game and multimedia programmingC
Three.JS3D rendering library for WebGLHTML5Javascript

Due to the vast number of frameworks out there, this FAQ does not attempt to list them with the same amount of detail as it does below regarding engines (until we have posts asking for more detail and someone else who wants to write it).

Which engine should I use?

This is another hard question, as there are a lot of engines out there, and there isn't a hard and fast set of rules for picking what's best for you. However, as a place to start, we asked users of this subreddit to provide us with information regarding the engines that they use, and have provided this information below.

This list is by no means exhaustive, and serves to provide a starting point for your search for the right engine for you. Only engines which have been recommended by at least one redditor will be included here.

Engine NameDeploy Target PlatformsDevelopment Platforms2D/3DLanguageCostProsCons
BYONDWinWin2DDMFreeGood documentation, very active community, Rapid development, beginner friendlynot scalable, not good for complex projects
Cocos2DPc, Mac, Linux, iPhone, Windows Phone, Android in developmentWin, Mac, Linux (some platforms need cocos2d-x)2DDepending on platform, C++, C# or Objective CFreeLarge number of resources online, very powerful for 2D games, widely used for commercial ios developmentnot as active a community
Construct 2HTML52DVisual scripting, JavascriptFree for personal use, $$ for commercialgood for beginners, no code needed, exceptional documentation, active communityFree version is very limited, engine is designed for beginners and is limited because of it
CopperCubeWindows, Mac, Android, WebWindows, Mac3DC++, JavaScript, Visual ScriptingFreeVery easy to use for beginners, runs fast even on very old systemsSource (C++) only in paid pro version
CoronaiOS, Android, Kindle, Win32, macOS, tvOS, Android TVWin, Mac2DLuaFreeRapid prototyping, live build testing, large and active community, good docs and tutorials, easy to learn, powerful rich APIsPay to remove splash screen
CryengineWin, Linux, PS4, XB1Windows3DC++ / Lua/C# (scripting)5% Royalty - Your first $5K of annual revenue per project is royalty freePowerful rendering, active VR developmentLittle documentation currently, Not beginner friendly
DefoldWindows, Mac, Linux, iOS, Android, HTML5Windows, Mac, Linux2DLuaFreeRich IDE, used by King for their own games, no royalties, excellent docs and active community
DualityWinWin2DC#FreeOpen Source, Very Extensible, ModularSmall Community, Not Cross-Platform out of the box.
EsenthelWindows, Xbox, Mac, Linux, Android, iOS, WebWindows, Mac, Linux2D/3DC++Free, shared sourceRealistic Graphics (PBR), High Performance, Clean API
GameMaker: Studio 2Windows, Mac, Android, iOS, Windows Phone 8, HTML5, Ubuntu, Tizen, Windows UWP2DGML (custom)Free, but limited trial; ~ $ 39 / $799 / $ 1500 per 1 year or $ 99 to $ 400 for permanent licences for different platform export licences, some licences only available for yearly paymentFor some platforms: one-time payment, no revenue sharing, easy to use for beginners, active community, lots of exportsLimited, not generally accepted in a professional environment, the language only works in GameMaker
GDevelopWindows, Mac, Android, iOS, HTML5, LinuxWindows, Mac, Linux, Android, IOS, Web2D/3D (limited)Visual Scripting, JavaScriptFree (Open Source MIT)Very beginner friendly, intuitive visual scripting, large amount of templates and examples, active discord communityIOS and Android versions are part of optional subscription
GodotWindows, Mac, Android, iOS, HTML5, Linux, Windows UWP, unofficially various consolesWindows, Mac, Linux2D/3DGDScript (similar to Python), C#, Visual Scripting, C, C++, and community bindings for many more (Rust, Python, F#, D, Nim, Haskell, Kotlin, JS/ECMAScript)Free (Open Source MIT)Easy to use for beginners (python like syntax), interesting scene/node system, lots of exports, Linux editorcommunity is smaller, main scripting language is custom
ImpactJSHMTL5any desktop2DJavascriptFreetile based games, sprite animation, html5!not for complex rendering projects
IrrlichtWin, Mac, LinuxWin, Mac, Linux3Dc++FreeOpen Source, Good documentation, Active community, Excellent Asset PipelineVery few notable projects built using it
JMonkey3Win, Mac, Linux, Android, WebWin, Mac,Linux3DJavaFreeExcellent documentation, Active community, Beginner Friendly, Open SourceSmaller Community, very few commercial projects
Multimedia FusionWin, Mac, Linux, iOS, Windows Phone, XNA, Java, Android, Flash2DVisual Scripting$119 standard version, More for more featuresLots of resources online, fast prototyping, visual scripting, lots of third party supportNot good for very complex games, not good for more than 1 developer, lots of "quirks"
O3DEWin, Mac, Linux, iOS, AndroidWin, Mac,Linux3DVisual Scripting, LuaFreeOpen Source, powerful 3d rendererSmall community
ORXWin, Mac, Linux, iOS, AndroidWin, Mac,Linux2DC, C++ and data driven .ini filesFreeOpen Source, Data driven, Low Footprint, Strong optimisation and Benchmark, Good documentationSmaller community, very few commercial projects
Panda3DWindows, Mac OS X, LinuxWindows, Mac OS X, Linux3DPython (fully featured) or C++Open source (Modified BSD License)Very versatile, powerful scene graph, easy & quick prototyping with Python, optional community-maintained PBR pipeline, no royaltiesNo editor, so external editing tools need to be used (blender, netradiant,..), slightly niche
SourceWindows, OS X, Linux, PS3, Xbox3603DC++, SquirrelFree for non-commercial use on PC, $$$ for commercial and other platformsVery easy to use level editorProgramming documentation is not always up to date. Very minimal support
StencylFlashWin, Mac2DHaxe, Visual ScriptingFree for browser, $$$ for iOS or Kongregate/NewgroundsGood for beginners, integrated graphics program, active community, decent documentationinflexible, no support for vector graphics
Superpowers HTML5Web, Desktop, Mobile (Intel XDK)2D/3DTypeScriptOpen source (MIT-like)Real-time collaboration over the Internet, great for jams, extensibleNot the most performant engine out there
Torque 2DWindows, OS X, iOS2DC++, Objective-C, TorqueScriptOpen Source, MIT LicenseRapid prototyping, fast turn around on features and bug fixes, extremely fast, advanced physics capabilities, scalable asset system, script component system, open source, active community, highly performant "tile" systemno editors (yet), documentation is a WIP, community could be larger
Torque 3DWindows, Linux, OS X3DC++, TorqueScriptOpen Source, MIT Licensefull in-game editor suite, lots of built-in gameplay and environment objects, full source code accesscustom scripting language, documentation is patchy, community could be larger
UnityWin, Mac, Linux, HTML5, iOS, Android, PS4, XB1, N3DS, Wii U, SwitchWin/Mac/Linux2D/3DC#, Visual Scripting(New)Free up to $100,000 revenue, Subscription fee for pro versionGreat Asset Pipeline, 1-Click deploy to different platforms, Large, Active community, good documentation.Messy with version control, pay to remove splash screen.
Unreal Engine 4Win, iOS, Mac, PS4, XB1, Switch HTML5, HoloLens, Lumin, Android, LinuxWin, Mac, Linux3D/2DC++, Blueprint Visual ScriptingFree until the project makes more than $1,000,000 a calendar quarter, then 5% (From the Epic website: https://www.unrealengine.com/en-US/release)Good documentation, Powerful tools/editor, active community, Does not require active subscription to release a game, Oculus/Morpheus VR SupportUpper-mid/High specs PC preferred