Skip to content

Commit 7ba9931

Browse files
committed
v0.3.0
1 parent ac721d1 commit 7ba9931

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

addons/gaea/generators/chunk_aware_generator.gd

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var generated_chunks: Array[Vector2i] = []
1111
func _ready() -> void:
1212
if chunk_size == 0:
1313
push_error("Chunk Size can not be 0!")
14-
14+
1515
super._ready()
1616

1717

@@ -25,9 +25,9 @@ func erase_chunk(chunk_position: Vector2i, clear_tilemap := true) -> void:
2525
for x in get_chunk_range(chunk_position.x):
2626
for y in get_chunk_range(chunk_position.y):
2727
grid.erase(Vector2(x, y))
28-
28+
2929
if not clear_tilemap: continue
30-
for l in range(tile_map.get_layers_count()):
30+
for l in range(tile_map.get_layers_count()):
3131
tile_map.erase_cell(l, Vector2(x, y))
3232

3333

@@ -36,7 +36,7 @@ func _apply_modifiers_chunk(modifiers: Array[Modifier], chunk_position: Vector2i
3636
if not (modifier is ChunkAwareModifier):
3737
push_error("%s is not a Chunk compatible modifier!" % modifier.resource_name)
3838
continue
39-
39+
4040
grid = modifier.apply_chunk(grid, self, chunk_position)
4141

4242

@@ -57,7 +57,7 @@ func has_chunk(chunk_position: Vector2i) -> bool:
5757

5858
func get_chunk_range(position: int) -> Array:
5959
return range(
60-
position * chunk_size,
60+
position * chunk_size,
6161
(position + 1) * chunk_size,
6262
1
6363
)

addons/gaea/plugin.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
name="Gaea"
44
description="A procedural generation add-on for Godot 4.1"
55
author="BenjaTK"
6-
version="0.2.0"
6+
version="0.3.0"
77
script="plugin.gd"

scenes/demos/heightmap/chunks_heightmap_demo.tscn

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ sources/0 = SubResource("TileSetAtlasSource_68jc8")
354354
script = ExtResource("1_lqewx")
355355
settings = SubResource("Resource_6hs11")
356356
tile_map = NodePath("../TileMap")
357-
regenerate_on_ready = false
357+
generate_on_ready = null
358358

359359
[node name="TileMap" type="TileMap" parent="."]
360360
tile_set = SubResource("TileSet_3y7im")

0 commit comments

Comments
 (0)