mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-21 23:18:11 +00:00
fixed a bug where bricks were being misplaced
This commit is contained in:
@@ -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)
|
||||
"
|
||||
|
||||
|
Reference in New Issue
Block a user