"Planet" is libgdx
game prototype where spaceship flies above procedurally generated 3D planet.
- Desktop JAR - https://github.com/afomins/planet/releases/download/v0.1.0/planet-v0.1.0.jar
- Android APK - https://github.com/afomins/planet/releases/download/v0.1.0/planet-v0.1.0.apk
Following GIFs illustrate how "Planet" looks:
Flying above planet | Scaling and rotating around spaceship |
---|---|
Flying above South America | Shooting bullets |
---|---|
libgdx
was used as platform independent framework- Spaceship model was siletly stolen from
libgdx
tutorials - Planet mesh was procedurally generated as described in this tutorial -> http://blog.andreaskahler.com/2009/06/creating-icosphere-mesh-in-code.html
- Following heightmap was used to modify height of icosphere's vertices to generate mountains
- Following colormap was used to adjust color of icosphere's vertices to separate land from see
- Clone
git@github.com:afomins/planet.git
and import Gradle project into your favorite IDE - Allow Gradle to download dependent packages and update project files
- Run
com.matalok.planet.desktop.DesktopLauncher
class