Skip to content

A template project for building a game with sola-game-engine.

License

Notifications You must be signed in to change notification settings

iamdudeman/sola-game-template

Repository files navigation

sola-game-template

Template project for building a game using sola-game-engine.

A Design document template is provided inspired by the content found on develop.games

Project structure

JSON Schema

JSON schema definitions are provided for various asset types. These can assist you in creating valid assets for the sola game engine to load when manually creating or updating them.

IntelliJ setup

  1. Open settings
  2. Go to Languages & Frameworks | Schemas and DTDs | JSON Schema Mappings
  3. Click + and select the schema file to add
  4. Add by file path pattern (recommendations below)
    • SpriteSheet -> *.sprites.json
    • Font -> *.font.json
    • GuiDocument -> *.gui.json
    • ControlConfig -> *.controls.json

Packaging for release

Browser zip file

Run the following gradle command

.\gradlew.bat distWebZip

The output will be at dist/browser/<gameName>-browser-<version>.zip. This can be deployed to places like itch.io when using the "HTML" project type.

Swing + JavaFx fat jar

Run the following gradle command

.\gradlew.bat distFatJar

The output will be at dist/swing/<gameName>-swing-<version>.jar and dist/javafx/<gameName>-javafx-<os>-<version>.jar. Your users will need to have Java 17 installed to run the jar.

Swing + JavaFx .exe

You also have the option to use jpackage to create an executable exe file. Your users will not need to have Java installed.

  1. Install JDK 17
  2. Update $JAVA_HOME path environment variable
    • ex. C:\Program Files\Java\jdk-17.0.5
    • To test configuration run: jpackage --version
      • Should see the current jdk version returned: 17.0.5
  3. Run the following gradle command
.\gradlew.bat distFatJarZip
  1. Output will be in the dist directory

About

A template project for building a game with sola-game-engine.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages