Dominik Madarász 0f57b5f61e | ||
---|---|---|
art | ||
cmake | ||
code | ||
docs | ||
flecs-dash/etc | ||
.editorconfig | ||
.gitignore | ||
CMakeLists.txt | ||
LICENSE | ||
README.md | ||
project.4coder |
README.md
Introduction
zpl.eco2d is a small framework / game engine made out of curiosity. It attempts to bridge several libraries to create a playable sandbox with ease of extensibility and with performance in mind. The goal is not to create a generic 2D game engine, but to build a prototype of a game that can be further used for various experiments. As such,
The game runs on top of raylib technologies and makes use of the zpl ecosystem alongside the cwpack library for data serialization. The game logic and lifecycle is maintained with the use of flecs library and its suite of tools that help us improve the development efficiency.
It was built with networked game sessions in mind from the ground up and therefore provides 2 major ways to play the game:
- Networked game (UDP) - networked sessions benefit from the use of enet library.
- Local Only sessions - Data is streamed via local buffers.
In both cases, the game engine does not differentiate between these 2 options and makes the concept of server<>client infrastructure fully abstract. Gameplay logic is only tied to living entities, where entity might happen to represent a networked client / local controller.
All data is transferred via packets that are fully automated by our own serialization rule system, which uses the cwpack library in the background.
On top of that, the game client is also capable of spinning up multiple client heads and cycle between them, which allows us to easily debug new features locally without having to physically start the server.
In the abstract sense, we call the Server the game master hosting all gameplay rules and features, while the Client represents a terminal sending key inputs and receiving data to render.
Major things to do
- More believable world generation.
- Networking implementation, the communication part is done, but there's currently no way to start a headless server or connect to it anyhow.
- Improved rendering - the current world structure does not allow for layered blocks, but it's something worth looking at.
- UI and visual effects
Build the project
We use CMake to generate project files and manage builds. You can do the following on the command line to create and build this project:
git clone https://github.com/zpl-c/eco2d.git
cd eco2d
cmake -S . -B build
cmake --build build
Run the following command to see all the options:
Windows:
build\Debug\eco2d.exe -?
Linux:
build\eco2d.exe -?