Skip to content

iamdudeman/acid-rain

Repository files navigation

Acid Rain

This is a game made for the One Lone Coder Codejam 2022. The theme for the codejam was "The Weather." It was built on sola-game-engine using repo template sola-game-template to start the project.

Play it on itch.io!

Acid Rain cover art

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

Screenshots

Acid Rain screen shot new game Acid Rain screen shot first few donuts eated Acid Rain screen shot bad situation Acid Rain screen shot game over

Packaging for release

Browser zip file

Run the following gradle command

.\gradlew.bat distWebZip

The output will be at browser/build/<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 swing/build/<gameName>-swing-<version>.jar and javafx/build/<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 build/jpackage directory