entt
MonoGame
Our great sponsors
entt | MonoGame | |
---|---|---|
79 | 95 | |
9,428 | 10,751 | |
- | 1.1% | |
9.8 | 9.0 | |
5 days ago | 6 days ago | |
C++ | C# | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
entt
-
Using Jolt with flecs & Dear ImGui: Game Physics Introspection
EnTT is a popular alternative to flecs for C++, which has different performance/memory characteristics.
-
Focus: A simple and fast text editor written in Jai
https://pastebin.com/VPypiitk This is a very small experiment i did to learn the metaprogramming features. its an ECS library using the same model as entt (https://github.com/skypjack/entt). In 200 lines or so it does the equivalent of a few thousand lines of template heavy Cpp while compiling instantly and generating good debug code.
Some walkthrough:
Line 8 declares a SparseSet type as a fairly typical template. its just a struct with arrays of type T inside. Next lines implement getters/setters for this data structure
Line 46 Base_Registry things get interesting. This is a struct that holds a bunch of SparseSet of different types, and providers getters/setters for them by type. It uses code generation to do this. The initial #insert at the start of the class injects codegen that creates structure members from the type list the struct gets on its declaration. Note also how type-lists are a native structure in the lang, no need for variadics.
Line 99 i decide to do variadic style tail templates anyway for fun. I implement a function that takes a typelist and returns the tail, and the struct is created through recursion as one would do in cpp. Getters and setters for the View struct are also implemented through recursion
Line 143 has the for expansion. This is how you overload the for loop functionality to create custom iterators.
The rest of the code is just some basic test code that runs the thing.
-
Introducing Ecsact
Since we wanted a common game simulation that would be on both the server and the client we looked into a few libraries that would fit our ECS needs. It was decided we were going to write this common part of our game in C++, but rust was considered. C++ was a familiar language for us so naturally EnTT and flecs came up right away. I had used EnTT before, writing some small demo projects, so our choice was made based on familiarity. In order to integrate with Unity we created a small C interface to communicate between our simulation code and Unity’s C#. Here’s close to what it looked like. I removed some parts for brevity sake.
-
Sharing Saturday #472
Are you sure you don't want to use a C++ package manager? Libtcod is on Vcpkg and with that setup you could add the fmt library or EnTT. fmt fixes C++'s string handling and EnTT fixes everything wrong with the entities of the previous tutorials.
- Where can I find the juiciest, most complex and modern c++ code?
-
What are the limits of blueprints?
There's also a performance question. While we can now use Blueprint nativization to convert Blueprints to C++ the result will be a fairly naive version, fast enough for most purposes but not if you're trying to push every bit of performance. This is where you're looking at making sure you're hitting things such as using the CPU cache as well as possible for an ECS system (Look at ENTT or Flecs if you want to see what they're about and why you'd want one), or a system needing to process massive amounts of data quickly such as the Voxel Plugin.
-
any resources for expanding on ECS?
For a modern engine you’re probably best looking at Unity’s DOTS. You may also want to check out some of the different open source ECS libraries such as flecs and EnTT are two popular ones for C++, but there’s lots of them. Largely you’ll see lots of different approaches taken, all with their own pros and cons. Not all of them will be performant (some focus more on the design benefits) while others will be optimised for certain use cases. What you should prioritise will depend on your specific needs.
-
DynaMix 2.0.0 Released
You can think of DynaMix as combining one of these libraries with an ECS like entt(https://github.com/skypjack/entt)
-
Flecs – A fast entity component system for C and C++
https://github.com/skypjack/entt is a fantastic alternative; also, one of the most beautiful codebases/elegant designs I 've come across.
MonoGame
-
Not only Unity...
https://github.com/MonoGame/MonoGame /
-
MonoGame VS kni - a user suggested alternative
2 projects | 10 Oct 2023
-
OSS Game Engines are increasing their stars on GitHub due to Unity's missteps
Yes, it is possible, but you need to use a game framework not a game engine.
Example of a game framework: http://www.monogame.net.
-
Unity's Trap
Monogame, though it doesn't do much hand-holding: https://github.com/MonoGame/MonoGame
Webassembly support is spotty, though in progress AFAICT.
Used by a few 2D games like Stsrdew Valley and Celeste.
-
Which tools should I use to create my game ?
Some that I am aware of and that support at least Windows and Android are (Monogame)[https://www.monogame.net/], (Cocos2D)[https://www.cocos.com/en/cocos2d-x], (LÖVE)[https://love2d.org/]. But there are likely many more. Even more basic ones which are just another abstraction layer on top of SDL (like (Oxygine)[https://oxygine.org/]).
-
What mobile game engine to choose for a simple multiplateforme gacha game?
- https://www.monogame.net/
- Celeste's Software
-
Miasma Devlog 0: The first 40 days
Almost everywhere I've worked over the last few years is using Unity, Unreal, or React to develop titles, but I have always enjoyed the lower level no batteries included development style of the XNA framework which was popularized during the Xbox360 era. More recently the framework has been reborn and modernized as MonoGame, while maintaining the same feel and development style.
-
Senior software engineer - what game engine should I start with ?
I have a similar profile, and I have tried many different engines/frameworks/libraries. Some thoughts: - ebiten, written in Go, is a very light game dev lib. I like Go, so writing "my own engine" with it was pretty fun (I have some libs for ebiten here). Mostly 2d. - Love2d is sort of the same thing, but written in C++, and scriptable in Lua. I absolutely love this level of abstraction, and this is probably the one I have been the most productive with (example here). Mostly 2d, but people have done 3d with it too. - Godot has a bright future, at least from my point of view. The 2D workflow is very very fast, much faster than Unity in my experience (you don't spend time waiting for stuff to recompile every time you edit a script, for starters), and they just released v4, which comes with insane improvements in 3D rendering. I have never delved into 3D, but from what I can see, it's on par with what Unity can produce these days. Plus, the founders have created a separate commercial entity to provide support for consoles (called W4games), because the open source licensing attached to Godot is not compatible with the NDAs involved in publishing for consoles - raylib and monogame might be interesting for you if you want to go old-school. They're both inspired by the same framework (XNA) and they work similarly. Also very close to the way Love2d does things, and a comparable level of abstraction. - Unity is slow. I honestly dislike it a lot, just for this reason. There's also a lot of "we've refactored this, and there's no docs yet, but you can also use this other system, and also the legacy one, and that one, or build your own based on these primitives" and it's hard when you're a beginner. If you know what you're doing I guess it's fine, or if you don't care, but as a software engineer, you will probably be like me and try to find the "best" solution to your problem, which is tiring and hard to do with Unity.
-
About game engines
If you prefer a framework instead of an engine and editor they do exist, MonoGame is a popular one. I wouldn't recommend it unless you're doing it more as a hobby (in which case it's totally valid to do whatever suits you best), using engines with their editors and scripting languages is the industry standard.
What are some alternatives?
flecs - A fast entity component system (ECS) for C & C++
Raylib-cs - C# bindings for raylib, a simple and easy-to-use library to learn videogames programming
FNA - FNA - Accuracy-focused XNA4 reimplementation for open platforms
Stride Game Engine - Stride Game Engine (formerly Xenko)
raylib - A simple and easy-to-use library to enjoy videogames programming
Nez - Nez is a free 2D focused framework that works with MonoGame and FNA
SkiaSharp - SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
Hazel - Hazel Engine
love - LÖVE is an awesome 2D game framework for Lua.
CocosSharp - CocosSharp is a C# implementation of the Cocos2D and Cocos3D APIs that runs on any platform where MonoGame runs.
flecs-lua - Lua script host for flecs