Giter Site home page Giter Site logo

moolt / levelgenerator Goto Github PK

View Code? Open in Web Editor NEW
125.0 14.0 27.0 61.39 MB

Unity plug-in for procedurally generating indoor levels using abstract chunks.

License: MIT License

C# 70.77% Smalltalk 4.20% ShaderLab 4.30% HLSL 1.25% ASP 19.48%
unity procedural content generation pcg plugin pcgen

levelgenerator's People

Contributors

bitwit avatar moolt 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

levelgenerator's Issues

hallways are overlapping into chunks instead of meeting at the edge.

Good evening Moolt!

Making some great progress here, now it's just a matter of polishing the connections. As you can see in the image below, the hallways are overlapping into the chunks. Meaning the center of the hallways is connecting with the chunk door, instead of the designated edge of the hallway template.

image

So instead of following the blue path, it's following the red path. Meaning the designated edges (marked in green) are facing the wrong direction completely.

Any help would be much appreciated!

Making some great progress!

image

Level generation is not using the most efficient masks during hallway generation.

Good evening, Moolt!

So this is a bit of a random issue, took me a few generations to get it to pop up.
image

When you add a hallway mask with 3 or 4 connections, the level generation starts to use that in "straight" sections and other places where a better match is possible.

So a straight hallway which would require a connection on either end, may end up using a mask with 3 or even 4 connections in the mask.

Say a corner, may even use a mask with 4 open connections.

Like such:
image

Instead, the hallway masks should be matched to fit in with the most exact matches possible.

Using LevelGenerator to place chunks created from other assets.

Good day, Moolt!

Level generator looks incredibly powerful, however, there seems to be a lack of documentation on how to actually use it. I'd like to build a room from assets (setting the "entrance" as a "door") and save the prefab as a chunk. I seem to have an issue doing that though. I also cannot seem to assign any fuzzy tags to the chunk.

Also another note, window > node editor, seems to have no functionality?

Would really love to get this running, any help would be greatly appreciated - and I'd be more than happy to help out with documentation once I understand the system a bit better.

Thanks!

Unity 2017.2.0f3
image

License?

@Moolt I was playing around with this and absolutely love it. Is there any chance of a code license being developed? I'd love to know if I can work based off of this for my own Unity game.

Constraint Absolute Amount and Start Room do not work.

Hello again, Moolt!

When setting up a constraint for absolute room spawn amounts, the level generator seems to ignore the constraint. I have tried setting it up like the image below:
image

As well as tried setting up the room as a "Start" room, as well as a combination of both. In all cases more than 1 instance of the room is generated.

Is there something that I am doing wrong? :)

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.