Skip to content

New extension: Random Floor Plan #2188

Description

@henspace

Description

This extension adds the ability to create random 2D floor plans using a GDevelop Tilemap object. I have a test utility up on GitHub which shows it in use and provides some guidance as to how it is used. You can see it in use it at https://henspace.github.io/Floor-Plan-Utilities-Test/ This is the same project used for the Example file in this submission. The atlas used for the rooms needs to be provided by the user; it isn't part of the extension so there are no restrictions on the images used.

How to use the extension

  1. Put the behavior FloorPlanBuilder on a Tilemap object.
  2. Edit the behavior's Tile Mapping property to associate the 19 types of tiles that are used to create a floor plan to the tiles in the Tilemap's atlas.
  3. Paint the TileMap in the scene using any tile. This just defines the area available to the behavior when creating a floor plan.
  4. Add the event to build the random floor plan:
Build random floor plan using MyTilemap: doors 3

Checklist

  • I've followed all of the best practices.
  • I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.

AI usage

  • I used an AI to generate some part of the code.
  • I don't understand the generated code or I don't feel able to modify it.

Example file

RandomFloorPlanExample.zip

Extension file

RandomFloorPlan.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions