mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
88 lines
2.9 KiB
Plaintext
88 lines
2.9 KiB
Plaintext
[gd_scene load_steps=11 format=3 uid="uid://hqrc7ujinbcq"]
|
|
|
|
[ext_resource type="Script" uid="uid://s1utdly4mtbi" path="res://Scripts/Classes/Entities/Items/Hammer.gd" id="1_3ojke"]
|
|
[ext_resource type="Texture2D" uid="uid://3xmhfi556p3s" path="res://Assets/Sprites/Items/Hammer.png" id="1_o34jf"]
|
|
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_k3c6x"]
|
|
[ext_resource type="JSON" path="res://Assets/Sprites/Items/Hammer.json" id="4_pmlpp"]
|
|
[ext_resource type="Script" uid="uid://chj8hu207lrh" path="res://Scripts/Classes/Components/EnemyPlayerDetection.gd" id="5_pmlpp"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2tvg3"]
|
|
atlas = ExtResource("1_o34jf")
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
[sub_resource type="Animation" id="Animation_vmyq7"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [0.0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_3ojke"]
|
|
resource_name = "Rotate"
|
|
length = 0.4
|
|
loop_mode = 1
|
|
step = 0.1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:rotation")
|
|
tracks/0/interp = 0
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [0.0, -1.5708, -3.14159, -4.71239]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_k3c6x"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_vmyq7"),
|
|
&"Rotate": SubResource("Animation_3ojke")
|
|
}
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_pmlpp"]
|
|
radius = 4.0
|
|
|
|
[node name="Hammer" type="CharacterBody2D" groups=["Enemies"]]
|
|
script = ExtResource("1_3ojke")
|
|
metadata/_custom_type_script = "uid://bpydbpyjk1mt4"
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
|
physics_interpolation_mode = 2
|
|
texture = SubResource("AtlasTexture_2tvg3")
|
|
|
|
[node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
|
|
script = ExtResource("3_k3c6x")
|
|
node_to_affect = NodePath("..")
|
|
property_name = "texture"
|
|
mode = 1
|
|
resource_json = ExtResource("4_pmlpp")
|
|
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
|
|
|
[node name="Animations" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_k3c6x")
|
|
}
|
|
autoplay = "Rotate"
|
|
|
|
[node name="Hitbox" type="Area2D" parent="."]
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="Hitbox"]
|
|
shape = SubResource("CircleShape2D_pmlpp")
|
|
|
|
[node name="EnemyPlayerDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")]
|
|
script = ExtResource("5_pmlpp")
|
|
hitbox = NodePath("../Hitbox")
|
|
|
|
[connection signal="player_hit" from="EnemyPlayerDetection" to="." method="damage_player"]
|
|
[connection signal="player_stomped_on" from="EnemyPlayerDetection" to="." method="damage_player"]
|