mirror of
				https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
				synced 2025-10-26 09:20:49 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			67 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| [gd_scene load_steps=10 format=3 uid="uid://ck0spcws71sg5"]
 | |
| 
 | |
| [ext_resource type="Script" uid="uid://caq1qiwmy0mox" path="res://Scripts/Parts/BetterAnimatedSprite.gd" id="1_fcvyr"]
 | |
| [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="2_gjj3y"]
 | |
| [ext_resource type="Script" uid="uid://cnheej0sxmoxg" path="res://Scripts/Parts/PlayerDetection.gd" id="2_neobf"]
 | |
| [ext_resource type="JSON" path="res://Assets/Sprites/Items/WingItem.json" id="3_1uenh"]
 | |
| [ext_resource type="Script" uid="uid://bx6r8sjar6cwr" path="res://Scripts/Classes/Components/BasicStaticMovement.gd" id="3_143ya"]
 | |
| [ext_resource type="Script" uid="uid://5octqlf4ohel" path="res://Scripts/Classes/Components/ScoreNoteSpawner.gd" id="4_gdso8"]
 | |
| 
 | |
| [sub_resource type="GDScript" id="GDScript_gdso8"]
 | |
| script/source = "extends PowerUpItem
 | |
| 
 | |
| func player_entered(player: Player) -> void:
 | |
| 	AudioManager.play_sfx(\"power_up\", global_position)
 | |
| 	player.wing_get()
 | |
| 	queue_free()
 | |
| "
 | |
| 
 | |
| [sub_resource type="RectangleShape2D" id="RectangleShape2D_fcvyr"]
 | |
| size = Vector2(8, 8)
 | |
| 
 | |
| [sub_resource type="RectangleShape2D" id="RectangleShape2D_gjj3y"]
 | |
| size = Vector2(10, 5)
 | |
| 
 | |
| [node name="WingItem" type="CharacterBody2D"]
 | |
| collision_layer = 8
 | |
| collision_mask = 6
 | |
| script = SubResource("GDScript_gdso8")
 | |
| power_up_state = ""
 | |
| metadata/_custom_type_script = "uid://cjkurwybsaywm"
 | |
| 
 | |
| [node name="Sprite" type="AnimatedSprite2D" parent="."]
 | |
| position = Vector2(0, -8)
 | |
| script = ExtResource("1_fcvyr")
 | |
| metadata/_custom_type_script = "uid://caq1qiwmy0mox"
 | |
| 
 | |
| [node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
 | |
| script = ExtResource("2_gjj3y")
 | |
| node_to_affect = NodePath("..")
 | |
| property_name = "sprite_frames"
 | |
| resource_json = ExtResource("3_1uenh")
 | |
| metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
 | |
| 
 | |
| [node name="Hitbox" type="Area2D" parent="."]
 | |
| script = ExtResource("2_neobf")
 | |
| metadata/_custom_type_script = "uid://cnheej0sxmoxg"
 | |
| 
 | |
| [node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
 | |
| position = Vector2(0, -8)
 | |
| shape = SubResource("RectangleShape2D_fcvyr")
 | |
| 
 | |
| [node name="BasicStaticMovement" type="Node" parent="."]
 | |
| script = ExtResource("3_143ya")
 | |
| metadata/_custom_type_script = "uid://bx6r8sjar6cwr"
 | |
| 
 | |
| [node name="Collision" type="CollisionShape2D" parent="."]
 | |
| position = Vector2(0, -2.5)
 | |
| shape = SubResource("RectangleShape2D_gjj3y")
 | |
| 
 | |
| [node name="ScoreNoteSpawner" type="Node" parent="."]
 | |
| script = ExtResource("4_gdso8")
 | |
| add_score = true
 | |
| metadata/_custom_type_script = "uid://5octqlf4ohel"
 | |
| 
 | |
| [connection signal="player_entered" from="Hitbox" to="." method="player_entered"]
 | |
| [connection signal="player_entered" from="Hitbox" to="ScoreNoteSpawner" method="spawn_note" binds= [1000]]
 | 
