Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucasstarsz/slope-ecs
An Entity Component System written in Java, based on Austin Morlan's C++ ECS.
https://github.com/lucasstarsz/slope-ecs
entity-component entity-component-system java macos maven-repository mit-license slope-ecs ubuntu windows
Last synced: 4 days ago
JSON representation
An Entity Component System written in Java, based on Austin Morlan's C++ ECS.
- Host: GitHub
- URL: https://github.com/lucasstarsz/slope-ecs
- Owner: lucasstarsz
- License: mit
- Created: 2021-02-09T02:35:09.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-13T00:46:54.000Z (over 2 years ago)
- Last Synced: 2023-07-04T04:35:03.754Z (over 1 year ago)
- Topics: entity-component, entity-component-system, java, macos, maven-repository, mit-license, slope-ecs, ubuntu, windows
- Language: Java
- Homepage:
- Size: 362 KB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Slope ECS
### Games, in Java. Crazy thought, isn't it?
[![Windows Build Status][Windows-Build-SVG]][Windows-Build-Action]
[![Ubuntu Build Status][Ubuntu-Build-SVG]][Ubuntu-Build-Action]
[![Mac OS Build Status][MacOS-Build-SVG]][MacOS-Build-Action][![Javadoc][JavaDoc-SVG]][Javadoc-Link]
[![Maven Central][Maven-Central-SVG]][Maven-Central]## About Slope
Slope is a developer-friendly Entity Component System written in pure Java. It enables developers of all kinds to create games and other software built on a no-nonsense, cross-platform, open-source code library.## Highlights
- [x] **Cross Platform** - Fully supports all major desktop platforms (Linux, macOS, Windows)
- [x] **Developer Friendly**
- Robust testing for all supported platforms, ensuring your programs work as you expect.
- Well-documented source code, ensuring each part of the library's purpose to be easily understood.
- [x] **Open Source**
- Under the [MIT License][MIT-License], you're free to use and modify this library for your own needs.## References
- This ECS is designed based on [Austin Morlan's Entity Component System](https://austinmorlan.com/posts/entity_component_system/) blog post.## Adding Slope-ECS to your project
This repository can be found on [Maven Central][Maven-Central] -- as such, it can be easily added to your project as a dependency through the use of a build tool.### Requirements
- [Java 15][AdoptOpenJDK-Link] or later.
- **IMPORTANT**: The eventual target Java version will be Java 17.
- A build tool, such as [Maven][Maven-Link] or [Gradle][Gradle-Link].### Adding the Dependency
When adding the dependency, **make sure to replace `[latest version here]` with the actual latest version** (you'll find this in the Maven Central link up above).A few common dependencies are provided below:
- **Maven**
```xml
io.github.lucasstarsz.slopeecs
slope-ecs
[latest version here]
```
- **Gradle**
- Groovy:
```groovy
implementation 'io.github.lucasstarsz.slopeecs:slope-ecs:[latest version here]'
```
- Kotlin:
```kotlin
implementation("io.github.lucasstarsz.slopeecs:slope-ecs:[latest version here]")
```
- **Apache Ivy**
```xml
```## Learning Slope-ECS
### The Wiki
I highly recommend Slope's [wiki][Wiki-Link], as it will almost always contain the most up-to-date information on understanding how Slope-ECS works. It _is_ still a work in progress -- as I have more time to work on it, much more will be added to it.### Code Examples
After getting an understanding of how Slope works, [these example programs](src/examples) are the best way to learn about using Slope in an actual project.## Building the Source Code
Building Slope's source code is a very easy task. You just need to follow these steps:1. If you don't already have it, download [Git][Git-Link]. It's a powerful source control tool, and is the same source control that Slope-ECS uses.
- You don't need to have Gradle installed to build `Slope-ECS` -- Gradle projects come with the build tool.2. Using Git, clone the Slope-ECS repository.
```bash
git clone https://github.com/lucasstarsz/Slope-ECS.git
```3. Once you've entered the top directory of the project (`cd Slope-ECS`), build the project using the `gradlew` file.
- On Windows, you'll want to use the `gradlew.bat` file.
- For Unix-based systems, you'll need to use the `gradlew.sh` file (after giving it proper execution permissions).
```bash
./gradlew build
```
_Having trouble accessing the `gradlew` file? Read [this][Terminals Are Different]._## Legal Information
This repository is licensed under the [MIT License][MIT-License].[Windows-Build-Action]: https://github.com/lucasstarsz/Slope-ECS/actions?query=workflow%3ABuild-Windows "Windows Build Status"
[Windows-Build-SVG]: https://img.shields.io/github/workflow/status/lucasstarsz/Slope-ECS/Build-Windows?label=Windows%20Build&labelColor=363e45&logo=windows&logoColor=0078D6&style=for-the-badge[Ubuntu-Build-Action]: https://github.com/lucasstarsz/Slope-ECS/actions?query=workflow%3ABuild-Ubuntu "Ubuntu Build Status"
[Ubuntu-Build-SVG]: https://img.shields.io/github/workflow/status/lucasstarsz/Slope-ECS/Build-Ubuntu?label=Ubuntu%20Build&labelColor=363e45&logo=ubuntu&logoColor=E95420&style=for-the-badge[MacOS-Build-Action]: https://github.com/lucasstarsz/Slope-ECS/actions?query=workflow%3ABuild-MacOS "Mac OS Build Status"
[MacOS-Build-SVG]: https://img.shields.io/github/workflow/status/lucasstarsz/Slope-ECS/Build-MacOS?label=Mac%20OS%20Build&labelColor=363e45&logo=apple&logoColor=000000&style=for-the-badge[Maven-Central]: https://maven-badges.herokuapp.com/maven-central/io.github.lucasstarsz.slopeecs/slope-ecs "Slope ECS on Maven Central"
[Maven-Central-SVG]: https://img.shields.io/maven-central/v/io.github.lucasstarsz.slopeecs/slope-ecs?style=for-the-badge&color=blue&label=Maven%20Central&labelColor=363e45&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHaklEQVR4XuVZaWwVVRT+zp23FJVFYgQN4NRSWqgUFFuEgEpAJGFxF03UxMSgwQQ1FASLFAnUFovbD+Lyw2A0BgMkCBgx7qAIKMpOW6SDETVuQaKgfTNzzL0z074HJbTMndfFl7SveZ0593zf+b5z7p1H6EQvfi2fG08CyZn1pCttbYF0JXSmOCdezmMwwDbBTQHdHzukJXctQaIGf/KVPFZrMOA6gJsiOCmgV1l4Ejo8AaryAMjPlH0CXFsSAfR6PBwJHZqAAHxAgGLCBdzABgkD9HBtKAyhbo5S+nZNATd2t5uWMATDZS9dWXlpA6mGHrO7oAJ+mZ/PzITuuY4CnBMn/Gt7bUC1At8GcRCSs8JNhA6pgJ/nDmISQLI3I97ThSEA103rA9IGKcL5CQF6sC4UhlA3R2GBH2cVMsUYIs4AAX2q6ujkq3nMLpA6LvDvMW8MSoL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VG]: https://javadoc.io/badge2/io.github.lucasstarsz.slopeecs/slope-ecs/Javadocs.svg?style=for-the-badge&color=blue&labelColor=363e45&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFEklEQVR4Xu1bbXLbNhBdgFR6mLoWSSX2AfLVnqYZKW4mR8iHPT1NIjfJTH7Gqi1Rck5TkdjOgoJCyaQIkASoicxf8hDE7j487GIfaQYHfrEDjx/uAbhnwJ4iMOn38WQ+t85Q6wbq4vtvGOGj2dS6f9YN1AVgEkZ4cg/AgTJgEoYIwOBgGUD09xiDwfTG+ha1bsA0B0yCEIExwGQJp7e31v2zbsAYgDBCesYF/cnOXgFA1HcZ/F4BoILnjMFDB3tfMXMvGKCCd736nTNgcnyM4PnrNOFq3+fzUmcMyK961cpfhxEKRDiJZ6372/qEOllfBrQaSA6UnfmvowEiYul9HVtVY5wDkF/5B5xDcHN9x4ebaIApyoJgvRw6BSAfPALC6WyT0t+CADnjTgJ3XgXywTMh4NE83gC/q0rghAEbCa8gmVHvnxHePuW3c4J1APLBlSW8NUCWMv2uRGgdgCpqd7n6Tg5CVQBU3a8qY03vO2NAWX9/MAD4jEFU0OSYnAibrnbR8w4YkMlblQnwZ60CFNeuPj+fBFVSciGHd3IQ0mUBnf9PLTQ+nWwBZfQqjJAAKGp5r4IQGdvcja5aY+s5II860Z3+LqJ4V8nQKQAUPLW4QojC3r6LkugcAAJhGg2wsCSuJHGXPUEnAFCA8eAhbmsB9EYYuAcgEE7m7as/nSZBnUMMCSEkfemWwf7oEmXuRIT4/Pdai1nroV3BBC8vkXs+JMslLC7MnLrqh3haY+UDBQQwmL1/ZhST0eCywKO/PiOKFEjnm79/3sqcOozJj/kBAsDMwIdGzoYvL5WOASkKWJz/0Wi+ncwaXWIKCLc7qK78SYWAxYWeL7UdJqpvP8wYBzJO8s7iQo8JfQIREeiNEFDXwDngWjMGoDkFCog1VjU6+4T0LNmPz/Xs1wYgv1rHwzF6XiZmSuumF2NZoLSNEGFRM6GtGWAwRysAmMZra7wCwFkOsBVInXnDs3/kVqLdE2tuP9V91rFX+kwwGlMzB3PDEtjEiSZVqNUtoJIQneRmDQHoj8bo+T2Yvnm800dl04T2ebDtALBhIUtw9NmLSBOpDKk0Sb8Z94F4K2mzvrPJhzQRsPj7blmjPU8VYt6g/LYKgHI7evUFMU1qs1qWQiFKDzSD11/l/NO3Txr733gC3SiPXoyx5zG5xoIBcGRy1ecGCUvXlsk4ZwCYOOVy7D0ANtBWZaluZrbhU9mcVhiQb5Kk4dxRlwwKpPcE9D0kZYSsShRVASEoR5i11KbgWQGAnFAnM1OHNsYzDrN3T635aOUkuB2wFEi4B6QX7L6Y7ASpIdLp/BoBm3u4FrpSfOBUxgBiQwWmLce35zkafsTvmhpA7ZNgePZJdhuIDOJzM+nJVuBqXtpys3fmPmkzIJ/Y9im7B0PSIDlMa+YKLQD6ZGSld2zQh/uQpMvaAoYpK3598QF7ngfcW+WUkiRJW9SKInQ0+ogP/F+yhJaTre4EwjjQuz5MScVTV/ZrVfiAPpOTxZCOxeoGXz1Hc28rS1RKuQ/L5L/duqDhVtBigM5KHY/GSLqenHBV96W2pyWR0Vkgc4W6O3qGPpS81Uxqvw2pz/AkqKZ5oDUAdEBqa8zRnx+w1/Oz/3ZABMa92p1hawCQEkSr2GaC7A/HyDlRn/Y8vXXItpE6OZq+BClagNYAUJNTH6B+J8sEPI8BU5/EK9EDVSg/pJG1I7QVpEROFZdU4maCRxXrWgegyuC+3f8fARJ0X9/EzrEAAAAASUVORK5CYIIA[AdoptOpenJDK-Link]: https://adoptopenjdk.net/ "Download Java from AdoptOpenJDK"
[Maven-Link]: https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html "Maven Build Tool"
[Gradle-Link]: https://docs.gradle.org/current/userguide/installation.html "Gradle Build Tool"
[Git-Link]: https://git-scm.com/ "Git Source Control Manager"
[Wiki-Link]: https://github.com/lucasstarsz/Slope-ECS/wiki "Slope-ECS Wiki"[Terminals Are Different]: https://gist.github.com/lucasstarsz/9bbc306f8655b916367d557043e498ad "Terminals Access Files Differently"
[MIT-License]: LICENSE.txt "MIT Licensing"