Skip to content

ECS Survivors-like game. Repository for a blog series. Flecs framework for ECS and Raylib as a graphics and game library.

License

Notifications You must be signed in to change notification settings

ptidejteam/ecs-survivors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

124 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECS Survivors

ECS Survivors is a survivor-like game which is meant to showcase what Entity Component System (ECS) can do. This game is built using Flecs for the ECS framework and uses the Raylib game library for the rendering, sounds, and other functions relevant to game development.

I am taking this opportunity to learn myself about game development with ECS, taking a more hands-on approach by using lower-level libraries than common game engines provide you with.

While developing this game, I will document most of the work through blog-posts. Every blog will be contained in separate branches, and the main one will have the most recent changes.

Blog Entries:

You can also play the latest build on Itch.io

Gallery:

ECS-Survivors

The game

Level-Up

Player progression

Tilemap

Tiled integration using tmxlite

Tools & Assets Used

Building with CMake for Desktop

I'm not proficient with c++ build systems so I will not explain in detail how to build this repository. I myself am using CLion on Windows. I'm fairly certain that using the command line

  • cmake mkdir build
  • cd build
  • cmake ..
  • cmake --build . -target ECS_Survivors specify for release of debug.

Building with CMake for Web Assembly

I wanted to make sure that building for web would be easy, that way I can have a playable build easily accessible on Itch.io Thankfully Raylib and Flecs can both be compiled to web assembly and Raylib provides a comprehensive guide to do so. I suggest you follow it yourself before attempting to build this repository. Once you have all the pre-required tools installed simply add the following arguments to the cmake command:

-DPLATFORM="Web" -DCMAKE_TOOLCHAIN_FILE=<path_to_emsdk>/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake

When the build is complete, navigate to the .html file and run this command: python -m http.server 8080

Contact

laurent.voisard@mail.concordia.ca

About

ECS Survivors-like game. Repository for a blog series. Flecs framework for ECS and Raylib as a graphics and game library.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published