mirror of
				https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
				synced 2025-10-30 19:29:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			315 B
		
	
	
	
		
			GDScript
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			315 B
		
	
	
	
		
			GDScript
		
	
	
		
			Executable File
		
	
	
	
	
| class_name Explosion
 | |
| extends Enemy
 | |
| 
 | |
| const destructable_tiles := {Vector2i(4, 0): Rect2(32, 160, 16, 16), Vector2i(4, 2): Rect2(48, 160, 16, 16)}
 | |
| const BLOCK_DESTRUCTION_PARTICLES = preload("uid://cyw7kk1em8h16")
 | |
| 
 | |
| func on_body_entered(body: Node2D) -> void:
 | |
| 	if body is Block:
 | |
| 		if body.destructable: body.destroy()
 | 
