项目作者: PauGuirao

项目描述 :
2D Planet generator in Java
高级语言: Processing
项目地址: git://github.com/PauGuirao/RandomPlanetGenerator.git
创建时间: 2020-12-13T23:34:26Z
项目社区:https://github.com/PauGuirao/RandomPlanetGenerator

开源协议:

下载


Random Planet Generator

This is a random 2D planet generator created in Processing using Java perlin noise
Example Render

Create Planet

Call this functions to create a random 2D planet

  • radius: integer to change the planet radius (normal:150)
  • level_1: float to change the first layer of ground altitude (recommended: > 0.5)
  • level_2: float to change the second layer of ground altitude (recommended: > 0.6)
    1. $ drawPlanet(int radius, float level_1, float level_2)

    Create Moon

    Call this functions to add a moon to the texture
  • radius: integer to change the moon radius
  • distance: integer to change the moon distance from the planet
    1. $ drawMoon(int radius, int distance)

    Create Single 2D Texture

  • name: Name of the image
  • type: File type (‘jpg’,’png’)
    1. $ createTexture(String name, String type)