Git Product home page Git Product logo

dungen2d's Introduction

EZ Dungeon

"EZ Dungeon" is procedural 2D top-down grid based generation tool.

Main Features:

  1. Procedural generation
  2. Customisable layout
  3. Room type classification system
  4. Interior generation subsystem
  5. Grid based design

Overview:

Dungeon generation

Whole dungeon generation process is based on two implemented algorithms:

Room type classification

One of the main goals was to ensure some diversity, therefore a system of classifying rooms into types was created.

I have designed some sample types with their primitive use cases:

  • Spawn room - starting room (e.g. place where player character will be spawned)
  • Enemy Room - (e.g. room where enemies are being spawned)
  • Exit room - ending room (e.g. place where gate to next level is located)
  • Special room - (e.g. treasure room or merchant's room)

You can easily add more or reduce number of room types by modifying system's parameters.

Interior generation

In order to add some life into dungeon rooms, an interior generation system has been implemented.

One of the main goals was to create the simpliest way of spawning prefabs of some objects and enemies inside grid based rooms. For this purpose an "Interior object" structure has ben designed.

For each interior object we store:

  • Its prefab
  • Its quantity range (between min and max)
  • Its grid width and height
  • Its possition offset (to prevent the need of playuing with every sprite's pivot)

Thanks to this approach, we are able to easily spawn and manipulate objects and fit them equally with the grid.

My package

Here is a link for my custom package, which i used in this project: https://github.com/Skallu0711/Skallu-Utils

dungen2d's People

Contributors

skallu0711 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.