/snegg-game

A LibGDX based Snake game using Google Play Game and hand-drawn graphics

Primary LanguageJavaMIT LicenseMIT

Snegg GitHub

A free Snake clone for Android with hand-drawn graphics by Benjamin Kan (former Benjamin Sautermeister) and Vanessa Kan. The game is powered by LibGDX, and this project's main purpose was to learn that cross-platform Java game development framework by example.

App Logo

You can download the game from Google Play Store.

Features

  • Online leaderboards and achievements

Technical Setup

Use Java 11 to build and run the project.

Technical Setup

Use Java 11 to build and run the project.

IntelliJ

Desktop run configuration

On MacOS, the VM argument -XstartOnFirstThread is required to launch the project on desktop. Setting this flag is already defined the in the desktop:run Gradle task. However, if you simply run the main method of the DesktopLaumcher class, the auto-created IntelliJ run configuration does not actually use that Gradle task. Instead, simply create this run configuration yourself:

  1. Select Edit configurations...
  2. Add a new Gradle configuration
  3. Use desktop:run as the command to Run
  4. Launch the created run configuration

While this might only be strictly necessary for MacOS, it does not harm to do that for any platform, to ensure the proper Gradle task to run the desktop project is used.

iOS run configuration

  1. Install the MobiVM plugin into Android Studio
  2. Install Xcode
  3. Create a run configuration
    1. Select Edit configurations...
    2. Add a new RoboVM iOS configuration
    3. Select the project's Module
    4. Select Simulator toggle (which does not need a provisioning profile)
  4. Launch the run configuration

Acknowledgements

Thanks to Scott Holmes for allowing us to use this his song in our non-commercial game. The song is free to use under FREE Creative Commons License.

License

This work is published under MIT License.