fixed a bug where bricks were being misplaced

This commit is contained in:
JHDev2006
2025-09-20 13:09:39 +01:00
parent 6c11b95570
commit 5545e3c7f2
2 changed files with 1401 additions and 1401 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1785,7 +1785,7 @@ func _ready() -> void:
for i in tile_map.get_used_cells_by_id(0, Vector2i(0, 4)):
tile_map.set_cell(i, -1)
var node = BRICK_BLOCK.instantiate()
node.global_position = i * Vector2i(16, 16) + Vector2i(8, 8)
node.global_position = (i * Vector2i(16, 16) + Vector2i(8, 8)) + Vector2i(tile_map.global_position)
add_child(node)
"