A downloadable addon

Download NowName your own price

This addon provides a new Node type and Resource into the Godot game engine. 

The BlockLayer node, which uses BlockData resources to place, break, and handle Blocks. Blocks are 2D square textures that can "connect" their textures even between different blocks, which is a limit of the default TileMap node currently. 

This can be useful in placing tiles dynamically in-game via script for procedural generation, or in a "block-building" style game. 

Currently, the addon is focused primarily on procedural generation, as that is how I am using it in my projects. There is not a way, thus far, to place blocks in the editor.

Current Features:

  • Blocks will automatically "connect" their textures to neighboring blocks on the same BlockLayer node. 
  • Adjust the tile size to any size you need, you are not stuck at 16x16.
  • Choose whether some blocks are "solid" (they will have a collision shape auto-generated) or not, with a simple checkbox. 
  • Placed blocks emit a signal, passing a reference to the block's data and the global coordinates of the block placed - Possibilities are up to your creativity from there!
  • Use your own block texture template, or the default template included. Blocks have 16 total connections to display  (North, South, East, West connections). 
  • BlockData custom resource type is an extendable class - Create your own BlockData custom classes and add whatever data you want! 

Planned Features

  • Ability to run custom functions from each type of block. 
  • Customizable texture layout for Block textures, to use with any Tileset.
  • Rewrite in C#. I am a hobbyist, and GDScript is my main language. I am (slowly) learning C# and someday plan to port this over into C# for the boost in efficiency. Currently everything is scripted in GDScript.
  • Editor-placeable blocks...? (If possible + necessary).
  • Open to suggestions!

Licensed under CC BY-SA 4.0. A copy of this license can be viewed here:
https://creativecommons.org/licenses/by-sa/4.0/

Download

Download NowName your own price

Click download now to get access to the following files:

Connected Blocks Addon 17 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.