Giter VIP home page Giter VIP logo

urizen's Introduction

Urizen

Urizen is the roguelike dungeon generation library written on Python3. It has various algorithms that can be used to generate maps on scale of single rooms to the whole world.

- Note: This project is on early stage of development.
- It can contain bugs, API breaking changes and lack of documentation.

Features

  • Two main collections - generators and visualizers - that can be used in any variations.
  • Easy-to-use map objects with no need of additional libraries.
  • Modular architecture that allows simple extension.

Examples

Here is some example maps that Urizen can generate:


Quick Start

Installation

Urizen can be installed with pip:

$ pip3 install --user urizen

Or manually. To do it, clone this repository:

$ git clone https://github.com/vurmux/urizen.git
$ cd urizen
$ virtualenv venv

And build it:

$ . venv/bin/activate
$ python3 setup.py install --user

First script

Import this library:

import urizen as uz

Create a 50x50 size map using BSP algorithm:

M = uz.dungeon_bsp_tree(50, 50)

And visualize it using Pillow:

uz.vg_pillow_pixelated(M, scale=5)

The result image will be automatically opened with a default image viewer.

urizen's People

Contributors

vurmux avatar misagai 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.