A 2D puzzle platformer built on colors and shapes
- Clone this repository (
git clone https://github.com/ProjectChroma/Chroma.git
) - Install git-lfs using the directions at the bottom-left
- Download Slick2D and extract its contents
- Open Eclipse
- Set your workspace to the folder you cloned into (i.e.
C:\Users\You\workspace
) - Create a new project called "Chroma" (same name as the folder); at the bottom, there should be a notification that the project will be configured automatically
- Create a folder in the project called
lib
- Download
gson-2.6.2.jar
intolib
- Copy
slick.jar
,lwjgl.jar
,ibxm.jar
, andnatives-windows.jar
from where you extracted Slick2D intolib
- Create a folder called
natives-windows
inlib
- Move
natives-windows.jar
intonatives-windows
- Open a command line and
cd
into thenatives-windows
folder - Run
jar -xf natives-windows.jar
to extract the jar's contents' into the folder - Go back to Eclipse, and refresh the project (right-click -> refresh or click -> F5)
- Right-click the project and open "Build Path" > "Configure Build Path..."
- Click "Add JARs..." and select
gson-2.6.2.jar
,slick.jar
,lwjgl.jar
, andibxm.jar
- Expand
lwjgl.jar
in the center area and double-click "Native library location: (None)" - Locate and select the
natives-windows
folder - Run
io.github.projectchroma.chroma.Chroma
to run the game
The launcher does all of the hard work for running the game, so the export process is very simple.
- Right-click the project in Eclipse
- Click Export...
- Expand "Java" and select "Runnable JAR File", then click "Next"
- Select the run configuration for the project (should point to
io.github.projectchroma.chroma.Chroma
as the main class) - Type
Chroma\Chroma.jar
for the jar-file path - Select "Package required libraries into generated JAR"
- Click "Finish"
Your changes should now be made to Chroma.jar
in the project root, which will be detected by the launcher.