Giter Site home page Giter Site logo

hacktoon / nami Goto Github PK

View Code? Open in Web Editor NEW
36.0 4.0 2.0 4.79 MB

An old-school game world generator

Home Page: https://hacktoon.github.io/nami/

License: MIT License

JavaScript 97.06% HTML 0.12% CSS 2.60% Makefile 0.22%
procedural-terrain canvas game js

nami's Introduction

NAMI: World Generator

DEMO

https://hacktoon.github.io/nami/

ROADMAP

  • finish rivers and roads to determine surface
    • draw rivers
    • draw roads
  • ZoneMap
    • Create basin midpoint offset
    • steps after region fill - setting regions' surface type by priority:
      • Order of zone steps: roads > rivers > erosion
  • simplify cities into "city seeds"
  • conclude wrapGet migration for grids

General ideas

  • Optimize canvas rendering
    • Use offscreen canvas
    • When map fills screen entirely, snap canvas to viewport, otherwise translate canvas element
  • create world types [medieval, cyberpunk, steampunk]
  • Solve [Violation] 'input' handler message by lazy evaluating commands

CivilLayer

  • Set city type using a fill from capital point
    • Put inns/outposts at borders of city radius
  • Each city in block map can occupy tiles as zones or neighborhoods
  • Dungeon types and levels like cat quest
    • dungeons at high level like 79
  • Add city ruins on dry rivers or dry land
  • create junction points between two route points to set midpath detours
    • follow road and calc nearest junction start

LandformLayer

  • type of stretch often make waterfalls or rapids
  • canyon / volcano / reef

SociologyLayer

  • Start a fill on capitals to determine realms territory

RainLayer

  • Make rain dynamic using noise offset and season temp.get(point, season)

INSPIRATIONS

nami's People

Contributors

hacktoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nami's Issues

API to get points of map as array or other form

Hello, great looking tool. I was wondering if there was a way to receive the final map as an array or object so it can be used with other tools, like transform 2D to 3D or assign textures to each block.

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.