Giter Site home page Giter Site logo

fantasy-planet's Introduction

CircleCI

fantasy-planet

Generate, populate, and display procedurally-generated fantasy worlds. A limited demo can be found here.

Fantasy Planet Viewer

Requirements

  • Java 17

Building

  • Project is built using the Gradle Build Tool, with a provided wrapper file.
  • Gradle will self-install, requiring no specific action other than using the wrapper to perform a task, e.g. ./gradlew build.

Running

  • Run the web application with the gradle application plugin: ./gradlew app:run
  • Application can then be interacted with at: http://127.0.0.1:5000/

Packaging

  • The Shadow Gradle plugin can be used to package the application and dependencies together as a 'Fat' or 'Uber' Jar: ./gradlew app:shadowJar.
  • This Jar can then be deployed and run with java -jar path/to/jar.

Demo Mode

  • While the application is designed to generate worlds on request, in some instances limiting generation to a specific seed is desired.
  • The following environment variables control activation of demo mode:
    • DEMO_MODE - defaults to false, set to true to enable limiting of world to a specific seed.
    • DEMO_SEED - controls the seed to which generation is limited.
  • Example: DEMO_MODE=true DEMO_SEED=98765 ./gradlew run

Name Generation

  • The application uses a name-generating API by Pamela Fox which requires credentials. Set environment variable PLANET_NAME_GENERATOR_KEY to the appropriate header value for "Ocp-Apim-Subscription-Key" (See api documentation.)

fantasy-planet's People

Contributors

eliottgray avatar

Stargazers

Gavin Heverly-Coulson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.