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.jarintolib - Copy
slick.jar,lwjgl.jar,ibxm.jar, andnatives-windows.jarfrom where you extracted Slick2D intolib - Create a folder called
natives-windowsinlib - Move
natives-windows.jarintonatives-windows - Open a command line and
cdinto thenatives-windowsfolder - Run
jar -xf natives-windows.jarto 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.jarin the center area and double-click "Native library location: (None)" - Locate and select the
natives-windowsfolder - Run
io.github.projectchroma.chroma.Chromato 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.Chromaas the main class) - Type
Chroma\Chroma.jarfor 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.