A puzzle game based on the physics of electric charges.
Charge Hockey is available on Google Play.
Charge Hockey was written in java using libGDX. Developed with Android Studio.
-
Clone the project (git clone).
-
Import it using Android Studio.
-
Default 'android' configuration should work. Add the following configuration for desktop use:
Desktop (Application):
Main class: com.mare5x.chargehockey.DesktopLauncher
Working directory: path_to_project\assets
Use classpath of module: desktop -
Copy
raw_assets/LEVELS/CUSTOM
intoassets/LEVELS/CUSTOM
to use custom levels.
Supported projects (gradle): desktop and android.
-
./assets
: contains all the actual packaged assets, whereas./raw_assets
contains all raw assets.Use the levels in
CUSTOM/
for consistent benchmarking.To generate PNGs from SVGs use the python script in
assets/gdx-texturepacker-4.7.3/svg2png.py
.To generate texturepacks use
gdx-texturepacker
.To copy levels to the
assets/
folder use:raw_assets/LEVELS/levels.py
. -
./android
: android project../android/src
: android specific source files.
./android/res
: launcher icons.AndroidManifest.xml
is important!Note: using proguard and app bundles. Google Play app signing.
-
./core
: source code shared by all projects.ChargeHockeyGame.java
contains an abstract class which is subclassed and run by platform specific projects (android and desktop). -
./desktop
: desktop project../desktop/src
: desktop specific source files.