a Pure 2D Game engine made in C / CSFML made in less than 2000 line.
Option 1 ➡️ test the engine
1. clone this repositorie :
git clone https://github.com/Fosowl/S.T.A.R.S.E.T-Game-Engine.git
2. compilation :
make clean ; make re ; ./test
option 2 ➡️ import to your project
1. clone this repo :
git clone https://github.com/Fosowl/S.T.A.R.S.E.T-Game-Engine.git
2. import to your project
cp -r ./S.T.A.R.S.E.T-Game-Engine/engine <path to your repo>/engine
3. call engine Makefile from your makefile 🔨
$(BIN_NAME):
@cd $(ENGINE_DIR) ; make
@gcc -o $(BIN_NAME) $(SRC) $(ENGINE_DIR)/$(ENGINE_NAME) $(CFLAGS)
Easy to add entities 🏷️
It's easy to add entities !
Easy Animation system 🏷️
animation can be set and play in very few line...
Easy Movement system 🏷️
entities can be teleported, follow a point, or follow another entities.
Class and name system 🏷️
each entities have a name and can also have a class,
witch alow you to select multiple entities of the same class at the same time.
Collision system 🏷️
All collision are detected beetween entities if "is_trigger" is false (false by default),
collison are handled using real life formula for realistic effect.
mouse hovering an entitie is detected too
Destruction system 🏷️
each entitie can be destroy during runtime, you can also destroy all entities when you stop using them.
Binaural sound effect 🏷️
Each entitie can emit a sound witch is hear in the relative direction beetween the entitie and the player,
player entitie must be named "player" and declared before other entities that make sound in order for the binaural effect system to work + also make sure the sound is mono and not stereo.
Component system 🏷️
Component system is Under devellopement
first way ➡️ pull request :
1. fork this repo 🍴.
2. clone your forked repo.
3. make change with your favorite editor.
4. make a pull request, I will check when I have time ;)
second way ➡️ issue, report bug 🪲 or make a suggestion.