mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
re-implemented the respawning blocks + items fix, and got rid of a few annoying prints + removed the warning from the resource pack menu in the settings, as its no longer needed
This commit is contained in:
@@ -86,6 +86,8 @@ func spawn_empty_block() -> void:
|
||||
if get_parent().get_parent() is TrackRider:
|
||||
get_parent().get_parent().attached_entity = block
|
||||
block_emptied.emit()
|
||||
if get_parent() is TileMapLayer:
|
||||
get_parent().erase_cell(get_parent().local_to_map(position))
|
||||
queue_free()
|
||||
|
||||
func destroy() -> void:
|
||||
@@ -94,5 +96,7 @@ func destroy() -> void:
|
||||
AudioManager.play_sfx("block_break", global_position)
|
||||
var particles = destruction_particle_scene.instantiate()
|
||||
particles.global_position = global_position
|
||||
if get_parent() is TileMapLayer:
|
||||
get_parent().erase_cell(get_parent().local_to_map(position))
|
||||
add_sibling(particles)
|
||||
queue_free()
|
||||
|
Reference in New Issue
Block a user