Is it possible to create an map with procedural generation not using tiles?

Godot Version

3

I am creating my sprites with Adobe Illustrator and i am just creating an png of them so i dont know how to create a tiles so can i just use them to make procedural generation?

It’s certainly possible, though you leave a lot to the imagination. Noita is a pixel-based game, one could argue it’s still tile based with a tile size of 1 pixel. Godot supports Line2D and Polygon2D which can be dynamically added to and generate shapes.

1 Like

So that mean for example if i add an tree sprite to my game i can procedural generate it using that line 2d or polygon2d?

Oh! Yeah you can do procedural generation with sprites, “procedural generation” is only random data sometimes fit to rules so it looks nice.

Procedural generation can be as simple as this:

extends Node2D

func _ready():
    position.x = randf_range(0, 1000)
    position.y = randf_range(0, 1000)
1 Like

So that means i can just add my tree sprite and then use code like this and it would generate?

1 Like

You also might want to consider the SceneCollection of the tilemap. It allows you to place custom scenes as tiles

EDIT: actually im not sure if it exists in godot 3
EDIT 2: yeah i dont think this exists in godot 3

1 Like

Okay anyway thanks for information

Thanks for helping ! I will try that

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.