1
1
mirror of https://github.com/agateau/pixelwheels.git synced 2025-10-05 17:32:39 +02:00
Files
pixelwheels/docs/building.md
Aurelien Gateau 3ba2bb0e2a Use asetools
2024-07-11 15:45:09 +02:00

1.2 KiB

Building Pixel Wheels

The Docker-based build is simpler but the manual build gives you more control.

Docker-based build

Setup

Make sure Docker is setup on your machine.

To run your newly-built game you will at least need a Java Runtime Environment (JRE) installed.

Run the ci/build-docker-image script.

Building

Run the ci/docker-build-game script.

Running the game

cd android/assets
java -jar ../../desktop/build/libs/desktop-1.0.jar

Manual build

Dependencies

Building Pixel Wheels requires the following components:

Python packages

You can install the required Python packages with:

pip3 install -r requirements.txt

Assets

Some assets must be generated from work files with:

make assets

Pack images

Once assets have been generated, you can pack them into atlases with:

make packer

Build the game

Run:

make

You can also build and run it with:

make run