Skip to content

A puzzle game based on the physics of electric charges.

Notifications You must be signed in to change notification settings

mare5x/chargehockey

Repository files navigation

Charge Hockey

A puzzle game based on the physics of electric charges.

Android

Charge Hockey is available on Google Play.

Get it on Google Play

Details

Charge Hockey was written in java using libGDX. Developed with Android Studio.

Setup

  1. Clone the project (git clone).

  2. Import it using Android Studio.

  3. 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

  4. Copy raw_assets/LEVELS/CUSTOM into assets/LEVELS/CUSTOM to use custom levels.

Project structure

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.

About

A puzzle game based on the physics of electric charges.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published