Skip to content

The goal of this project is to make a Graphics Engine in Java supporting both 2d and 3d graphics in a way that could be used in a game. It may end up containing components of a Physics engine.

Notifications You must be signed in to change notification settings

math0898/SugaEngine

Repository files navigation

Suga Engine Maintainability Test Coverage

The Suga Engine is a complete game engine written in Java written from scratch.

Installation

Installation is the same across Linux, Windows, and Mac.

Dependencies

The Suga Engine requires Java 18 Runtime to be installed on the consumer's system. Developers should have the Java 18 Development Kit, and their choice of build system. Included are instructions for Maven and Gradle.

Gradle

  1. Create Secrets File

Create a new file. In this example I've named mine secrets.properties. Replace the file contents with your GitHub username and token.

USERNAME=YOUR_GITHUB_USERNAME
TOKEN=YOUR_GITHUB_TOKEN

Make sure to add this file to your .gitignore!!!

  1. Load Secrets File With Gradle

Place the following at the top of your build.gradle file.

def secrets = new Properties()
file("secrets.properties").withInputStream { secrets.load(it) }

Remember to change the file name if you used a different name for part 1.

  1. Add GitHub Packages Repository
repositories {

    // ...

    maven {
        name = "GitHubPackages"
        url = uri("https://maven.pkg.github.com/math0898/SugaEngine")
        credentials {
            username = project.findProperty("gpr.user") ?: secrets.getProperty("USERNAME")
            password = project.findProperty("gpr.key") ?: secrets.getProperty("TOKEN")
        }
    }

    // ...

}
  1. Add Suga Engine Dependency
dependencies {
    
    // ...
    
    implementation 'io.github.math0898:suga-engine:2.3.2'
    
    // ...
}

Make sure to replace this version with the desired version.

Maven

<dependencies>
    <dependency>
        <groupId>io.github.math0898</groupId>
        <artifactId>suga-engine</artifactId>
        <version>2.3.2</version>
    </dependency>
</dependencies>

Make sure to replace this version with the desired version.

About

The goal of this project is to make a Graphics Engine in Java supporting both 2d and 3d graphics in a way that could be used in a game. It may end up containing components of a Physics engine.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages