All Projects → quxios → Randommapgenerator

quxios / Randommapgenerator

Licence: mit
Generate random maps from premade rooms in Unity

Labels

Projects that are alternatives of or similar to Randommapgenerator

Nerf unity
Unity project for nerf_pl (Neural Radiance Fields)
Stars: ✭ 27 (+80%)
Mutual labels:  unity
Ubernet
Flexible networking library for Unity
Stars: ✭ 10 (-33.33%)
Mutual labels:  unity
Unityprojecttreegenerator
This script will generate universal folder structure for your Unity3D project.
Stars: ✭ 12 (-20%)
Mutual labels:  unity
Shaderlabvs
ShaderlabVS is a Visual Studio plugin for Unity Shaderlab programming
Stars: ✭ 841 (+5506.67%)
Mutual labels:  unity
Ocean community next gen
Next gen iteration of the unity community ocean shader
Stars: ✭ 855 (+5600%)
Mutual labels:  unity
Testbedhdrp
Testbed project for Unity HDRP (High Definition Render Pipeline)
Stars: ✭ 859 (+5626.67%)
Mutual labels:  unity
Pokemonunity
A framework to build Pokémon RPG games.
Stars: ✭ 934 (+6126.67%)
Mutual labels:  unity
Unity Fragment
用于UGUI界面间的跳转 类似Android中的Fragment
Stars: ✭ 14 (-6.67%)
Mutual labels:  unity
Outline Effect
Outline Image Effect for Unity
Stars: ✭ 855 (+5600%)
Mutual labels:  unity
Rapid Router Unity
An Implementation of the Rapid Router game in Unity for devices
Stars: ✭ 12 (-20%)
Mutual labels:  unity
Unitynativescripting
Unity Scripting in C++
Stars: ✭ 844 (+5526.67%)
Mutual labels:  unity
Compositor Api
Compositor is a lightweight utility API for compositing images quickly and efficiently in Unity.
Stars: ✭ 9 (-40%)
Mutual labels:  unity
House Of Cards
Display of Radiohead's House of Cards point cloud data
Stars: ✭ 12 (-20%)
Mutual labels:  unity
Autolod
Automatic LOD generation + scene optimization
Stars: ✭ 939 (+6160%)
Mutual labels:  unity
Shadergraphexamples
Simple examples of Unity shader graphs.
Stars: ✭ 869 (+5693.33%)
Mutual labels:  unity
Unity Raytracer
Raytracing project in Unity for computer graphics graduate credit.
Stars: ✭ 26 (+73.33%)
Mutual labels:  unity
Shader Mode
Unity shader editing mode for GNU Emacs
Stars: ✭ 10 (-33.33%)
Mutual labels:  unity
Beaverandfairies
Stars: ✭ 14 (-6.67%)
Mutual labels:  unity
C Sharp Promise
Promises library for C# for management of asynchronous operations.
Stars: ✭ 870 (+5700%)
Mutual labels:  unity
In App Purchase
A Node.js module for in-App-Purchase for iOS, Android, Amazon and Windows.
Stars: ✭ 868 (+5686.67%)
Mutual labels:  unity

Created using Unity 2018.1

About

Create randomly generated dungeons from premade rooms by using only 3 components.

output

How to install

Copy the Assets/Scripts folder to somewhere inside your projects Assets folder. You may rename the folder to whatever you'd like. The prefabs and scenes folder are optional

How to use

Create a game object and add a MapGenerator component to it. Fill out the fields to your needs.

Next you need to create the rooms this generator can use. Create a game object that will be used as the room. Add a Room component and set the Bounds value which is used for the collision testing when trying to place a room. When editing the Bounds you should be able to see a Red rectangle based off it's values in the Scene View. Make sure the Bounds covers the whole room area.

Next your room needs X children with a RoomSpawn component. Move these children around to where the next room should spawn. The spawning works by aligning/connection the RoomSpawn spawns.

Once you have all your rooms created add them to the MapGenerator component. If you want a room to have a higher chance to appear you can add it multiple times.

To start the generation you just need to call the Generate() or Generate(int seed) function from the MapGenerator component.

Script API

Additional info

I was too lazy to add in the hallways, to do this they should be separate meshes from the room and a child of the room (1 hallway per spawn point). Then just create a component that checks if it's related spawn point is connected to a room if it isn't hide it.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].