FilesEngine is a simple tool designed to create 2D games. It's mostly a tool for creating games.
- Files Engine use java 21.
- This engine use
LWJGL
library. - Files Engine also have a custom
ECS
(Entity Component System) with division into components and scripts. - Each component has its own script class with name
<CompName>Scripts
.
To get started with FilesEngine, download this repository and create an artifact with main class App
. if you want for test start just run .jar
file.
But if you want to run scene redactor start with arg SM or scene-manager.
For example: java -jar out/artifacts/ur_artifact/fe-tools.jar SM
.
- Create script in
src/main/java
. - Add
extends FilesScripts
to your script class. - Override
start()
&update(float dt)
methods. - In file
assets/scripts.json
write inSCRs
your script link example: (com.example.UrScript).
You can see test script here: src/main/java/testscrgl.java.
- Write scripts class of your component in file
assets/scripts.json
inComps
. - That's all!
- Type in terminal
git clone https://github.com/adisteyf/fe-tools.git
. - Type in terminal
mvn clean install
in root project (where is pom.xml). - Run
target/FilesEngine-<ver>-jar-with-dependencies.jar
.
This project is licensed under the MIT License - see the LICENSE file for details.