Git Product home page Git Product logo

genbuildings's Introduction

genbuildings

A Clojure library designed to generate genetic buildings within the context of The Great Game framework, implementing and developing ideas described in Modelling rural to urban, take two.

Usage

Broadly, for a type of building, a build function will be a function which takes as arguments

  1. A vertex, being a two dimensional point where each dimension is an integer in the range 0...1x10^9, considered as a number of millimetres;
  2. A heading, being a real number in the range 0...360 (or possibly we may use radians, if that turns out to be simpler;
  3. A world, being a data structure as described in the-great-game.world.world;
  4. A culture, being a keyword identifying a culture within that world;
  5. A holder, being a data structure as described in the-great-game.agent.agent;
  6. units, being an integer in the range 1...100 (but for normal buildings more typically 1...10) defining the number of building units (roughly, rooms) in the building.

and returning a renderable model of a building, such that in a large game world identical building models will be generated rarely.

Copyright and Licence

Copyright © 2020 Simon Brooke; licenced under the GNU General Public Licence, either version 2 or, at your option, any later version.

genbuildings's People

Contributors

simon-brooke avatar

Watchers

James Cloos avatar  avatar  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.