Skip to content

Fosowl/S.T.A.R.S.E.T-Game-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S.T.A.R.S.E.T-Game-Engine

a Pure 2D Game engine made in C / CSFML made in less than 2000 line.

Codacy Badge Build Status

⚠️ If you are an EPITA, EPITECH, or 42 student using this for csfml project will result in a -42 unless you become a contributor for this project.

Installation

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)

Features

Easy to add entities 🏷️

It's easy to add entities !

add-correct.gif

Easy Animation system 🏷️

animation can be set and play in very few line...

animation_engine.gif

Easy Movement system 🏷️

entities can be teleported, follow a point, or follow another entities.

move_engine.gif

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.

democlasss.jpg

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.

collide.gif

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.

destroy.gif

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.

sound_engine.gif

Component system 🏷️

⚠️ Component system is Under devellopement

Docs

Docs main page

Contributing 🔃

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.

Support

Discord

About

2D Game engine made in C.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published