Modular, extensible, fast. https://engine.staropensource.de
Find a file
JeremyStarTM 2db14012f8
Some checks failed
build-and-test / build (push) Failing after 1m58s
build-and-test / test (push) Failing after 2m4s
build-and-test / generate-javadoc (push) Failing after 2m7s
Remove all remaining traces of ImmutableHashMap
2024-11-25 01:59:16 +01:00
.forgejo Add caching to workflows 2024-08-18 20:25:09 +02:00
.idea Fix copyright replace regex 2024-09-06 01:28:34 +02:00
ansi Rewrite logging infrastructure 2024-11-05 02:54:50 +01:00
base Rename some Miscellaneous methods, add stacktraceAsStringRecursive 2024-11-24 15:39:48 +01:00
dist Update icon 2024-11-24 13:28:28 +01:00
docs Update documentation to reflect last commit 2024-11-10 20:56:35 +01:00
gradle/wrapper Update gradle wrapper 2024-10-03 21:38:01 +02:00
notification Remove all remaining traces of ImmutableHashMap 2024-11-25 01:59:16 +01:00
rendering Cleanup rendering subsystem 2024-11-25 01:47:00 +01:00
slf4j-compat Perform code maintenance 2024-11-24 13:28:15 +01:00
src/main/javadoc Fix copyright notice copyright attribution 2024-09-27 23:02:16 +02:00
testapp Very experimental rendering subsystem changes 2024-11-24 16:39:11 +01:00
testing Update maven repository URL 2024-10-15 13:53:16 +02:00
.gitattributes Add .gitattributes file for language detection 2024-08-18 12:39:16 +02:00
.gitignore Ignore JVM segfault log files 2024-11-10 20:56:52 +01:00
build.gradle Merge and rename windowing subsystem 2024-11-10 20:55:01 +01:00
gradle.properties Bump version 2024-11-10 17:17:10 +01:00
gradlew Update to Gradle 8.9 2024-08-01 02:04:54 +02:00
gradlew.bat Update to Gradle 8.9 2024-08-01 02:04:54 +02:00
LICENSE You know what? Yeet! 2024-09-05 01:17:08 +02:00
README.md Perform code maintenance 2024-11-24 13:28:15 +01:00
settings.gradle Merge and rename windowing subsystem 2024-11-10 20:55:01 +01:00

StarOpenSource Engine

The StarOpenSource Engine (or sos!engine for short) is a modular, extensible and easy to use Java game and application engine.

WARNING

The StarOpenSource Engine is under heavy development and is extremely unstable. Code will break often, prepare for potential major refactors when trying the engine out.

Index

About

... the engine

The StarOpenSource Engine is a modular and extensible framework for building applications and games written in one of the multiple JVM programming languages. The engine consists of various subsystems, each separate and responsible for only a few closely-related tasks.
Not only that. The engine also features various useful classes, interfaces and methods making development fun and simpler, while being lightweight.

... the repository

The sos!engine repository is a monorepo, consisting of the core engine, multiple official subsystems and their documentation.

Priorities

These are in no particular order.

  • configurable
  • do one thing and do it well (subsystems concept)
  • fast
  • few runtime dependencies (note: we will cut down on some of them during development)
  • modular & extensible
  • small & lightweight

Documentation

You can view the engine documentation at engine.staropensource.de. It provides information, guides and tutorials about the core engine and subsystems. If you want the API reference, you can visit the Javadoc for the engine and it's subsystems.

Contributing

Requirements

You need the following things to be able to contribute code to the StarOpenSource Engine:

  • knowledge of Java
  • knowledge about the internals of engine

What IDE to use?

We recommend and are using IntelliJ IDEA Community Edition for development because it is flexible, extendable, customizable, provides good completions and error detection. It's also open source.

Code style

We recommend looking at existing classes and code for a good understanding on how we'd like code to be written. Here's a quick rundown on the most important things:

  • Document EVERYTHING. Every single class, field and method, even if private.
  • Make comments about your code, unless it's extremely simple and easy to understand.
  • Make sure to add and update @since in javadoc comments (update if the javadoc changes a good amount).
  • Keep stuff simple, no need to elaborate what a logger is. Though remember to not make it too simple.
  • Make sure every field and method has a newline to separate it.
  • Files must end with a newline or cats might get angry.
  • Use your brain.

Pull request guidelines

Before creating a pull request, make sure you've:

  • created tests for the functionality you've added, changed or removed (if applicable),
  • tested your changes,
  • made sure that everything works,
  • is compatible with other code in the monorepo, and
  • is compatible with other applications. If not, tell us in your pull request description.

Making your first contribution

TODO

Gradle properties

Gradle's behaviour can be changed by changing gradle project properties. To change them, simply append -P<property> or -P<property>=<value>, like this: ./gradlew -Pjobs=4 test.

Parallelism

Use the jobs property to control how many jobs will get executed simultaneously. On Linux, specify -Pjobs=$(nproc). Defaults to 8.

Rendering

You can use the renderingPlatform property to control which rendering platform to initialize for.

JVM Home

You can use the graalHome property to specify the $JAVA_HOME of your local GraalVM installation. Only used in the nativeImage task. Useful if you aren't using GraalVM as your primary JDK.

Testing

You can use the following properties to modify the behaviour of the test-task:

  • test.control.mode (default empty)
    • force-enable: Disables all test classes except the ones specified
    • force-disable: Enables all test classes except the ones specified
    • everything else: Enables all test classes
  • test.control.classes (default empty): A comma-separated, case-sensitive list of test classes which (depending on test.control.mode's value) enable or disable the specified classes. Example: -Ptest.control.mode=MiscellaneousTest,DependencyResolverTest,EngineConfigurationTest
  • test.control.warning (default false): If true, will emit a warning before a restricted test method exits
  • test.loggerLevel (default silent_warning): Will set UnitLogger's logger level. Works like -Dsosengine.base.loggerLevel. See UnitLogger#loggerLevel for more information