libtcod-vcpkg-template
entt
libtcod-vcpkg-template | entt | |
---|---|---|
15 | 79 | |
17 | 9,469 | |
- | - | |
4.6 | 9.8 | |
5 months ago | 6 days ago | |
C++ | C++ | |
The Unlicense | MIT License |
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.
libtcod-vcpkg-template
-
Sharing Saturday #472
It doesn't teach on its own, but the libtcod-vcpkg-template can help with quickly setting up Vcpkg and libtcod in a cross-platform manner. Parts might need to be updated to work with C++20 or later. This template also creates Emscripten builds.
-
Cannot get libtcod to compile properly using vcpkg on Fedora Linux
Hello all. I'm trying to get the libtcod example project to compile, but seem to be running into errors at every step. When I compile normally and run the binary, I get the error:
-
C++ and libtcod; linker errors
I've just checked, and Visual Studio can build/run the libtcod template. So if you setup a CMakeLists.txt to use Vcpkg then your project should run even without VSCode's CMake Tools plugin.
-
Sharing Saturday #422
libtcod | GitHub | Issues | Forum | Changelog | Documentation | Template
-
RoguelikeDev Does The Complete Roguelike Tutorial - Week 1
I'm working in C++17 and doing the ancient C++ tutorial on RogueBasin. I'm starting from the libtcod C++ template and plan on using the latest libtcod features rather than the older ones taught by that tutorial. My new repository is here.
-
C++ libraries for ascii graphics?
Libtcod's Vcpkg template could work for your conditions. The tools it uses are cross-platform, using VSCode as the IDE rather than Visual Studio, but running CMake manually should work also.
-
Are there any actual full tutorials for installing libtcod with vcpkg and cmake?
I've made this template project, but I've since modified it so that I can use it to develop libtcod with, so right now it only uses Vcpkg to fetch the dependencies for libtcod and then builds libtcod from a submodule. This template is complete as-is and will compile and run if you follow the instructions.
-
Sharing Saturday #409
I've updated the C++ template project to upload build artifacts (listed as automated-builds in any passing workflow.) It also automatically publishes builds as GitHub Releases when you push an annotated tag to the repository. I added one of the libtcod fonts too so that it's clear how to handle data assets in a project.
-
Installing libtcod c++ on Linux/Ubuntu
The GitHub releases don't include a Linux binary, you'll have to compile it yourself. The easiest way is to use the template project which is cross-platform.
-
Sharing Saturday #388
libtcod | GitHub | Issues | Forum | Changelog | Documentation | Template
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.
- Crash Course: entity component system
-
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++
What are some alternatives?
dear-imgui-unity - Unity package for Dear ImGui
flecs - A fast entity component system (ECS) for C & C++
python-tcod - A high-performance Python port of libtcod. Includes the libtcodpy module for backwards compatibility with older projects.
Hazel - Hazel Engine
libtcod - A collection of tools and algorithms for developing traditional roguelikes. Such as field-of-view, pathfinding, and a tile-based terminal emulator.
raylib - A simple and easy-to-use library to enjoy videogames programming
RSRevived
flecs-lua - Lua script host for flecs
tcod_tutorial_v2
Roguelike-Tutorial-2021 - Roguelike tutorial written hard with GDscript
glsp - The GameLisp scripting language
UnrealCLR - Unreal Engine .NET 6 integration