mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
45 lines
1.7 KiB
Plaintext
45 lines
1.7 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://bwdwavf4rp1m1"]
|
|
|
|
[ext_resource type="Script" uid="uid://vhxup1pn2v8q" path="res://Scripts/Classes/Entities/Items/HammerItem.gd" id="1_ws752"]
|
|
[ext_resource type="Texture2D" uid="uid://bbdcmhyxmc3pu" path="res://Assets/Sprites/Items/SPItems.png" id="2_c0srl"]
|
|
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="4_uc7h7"]
|
|
[ext_resource type="JSON" path="res://Assets/Sprites/Items/HammerItem.json" id="5_6qq3q"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uc7h7"]
|
|
size = Vector2(10, 10)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ws752"]
|
|
size = Vector2(12, 12)
|
|
|
|
[node name="HammerItem" type="CharacterBody2D"]
|
|
collision_layer = 8
|
|
collision_mask = 2
|
|
script = ExtResource("1_ws752")
|
|
metadata/_custom_type_script = "uid://cjkurwybsaywm"
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
|
position = Vector2(0, -8)
|
|
texture = ExtResource("2_c0srl")
|
|
region_enabled = true
|
|
region_rect = Rect2(0, 0, 16, 16)
|
|
|
|
[node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
|
|
script = ExtResource("4_uc7h7")
|
|
node_to_affect = NodePath("..")
|
|
property_name = "texture"
|
|
mode = 1
|
|
resource_json = ExtResource("5_6qq3q")
|
|
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, -5)
|
|
shape = SubResource("RectangleShape2D_uc7h7")
|
|
|
|
[node name="Hitbox" type="Area2D" parent="."]
|
|
position = Vector2(0, -8)
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
|
shape = SubResource("RectangleShape2D_ws752")
|
|
|
|
[connection signal="area_entered" from="Hitbox" to="." method="on_area_entered"]
|