mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-21 15:08:12 +00:00

* Fix lingering Hammer issues * CannonBall gib * Spike Block and Rocky Wrench cleanup * Update SpikeBlock.tscn * Update PlayerDetection.gd
186 lines
6.1 KiB
Plaintext
186 lines
6.1 KiB
Plaintext
[gd_scene load_steps=27 format=3 uid="uid://dmxufw748fe32"]
|
|
|
|
[ext_resource type="Script" uid="uid://bpydbpyjk1mt4" path="res://Scripts/Classes/Entities/Enemy.gd" id="1_gcnju"]
|
|
[ext_resource type="Texture2D" uid="uid://do13c2crob4td" path="res://Assets/Sprites/Blocks/SpikeBlock.png" id="2_dftxp"]
|
|
[ext_resource type="Script" uid="uid://caq1qiwmy0mox" path="res://Scripts/Parts/BetterAnimatedSprite.gd" id="3_4g6tc"]
|
|
[ext_resource type="JSON" path="res://Assets/Sprites/Blocks/SpikeBlock.json" id="4_dftxp"]
|
|
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="4_w3ysb"]
|
|
[ext_resource type="Script" uid="uid://cqif1li7otvpl" path="res://Scripts/Parts/SpriteFramesToJsonConverter.gd" id="7_4g6tc"]
|
|
[ext_resource type="Script" uid="uid://5octqlf4ohel" path="res://Scripts/Classes/Components/ScoreNoteSpawner.gd" id="7_bcd7j"]
|
|
[ext_resource type="Script" uid="uid://cmvlgsjmsk0v5" path="res://Scripts/Classes/Resources/ThemedResource.gd" id="8_w3ysb"]
|
|
[ext_resource type="Script" uid="uid://chj8hu207lrh" path="res://Scripts/Classes/Components/EnemyPlayerDetection.gd" id="10_6hvsh"]
|
|
[ext_resource type="Script" uid="uid://d4a7yp6e55u8t" path="res://Scripts/Classes/Components/TrackJoint.gd" id="10_xfdnj"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_v0way"]
|
|
atlas = ExtResource("2_dftxp")
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_l3otb"]
|
|
atlas = ExtResource("2_dftxp")
|
|
region = Rect2(16, 0, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_bcd7j"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_v0way")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_l3otb")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cgdwi"]
|
|
size = Vector2(16, 16)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_r7ue2"]
|
|
size = Vector2(16.5, 16.6)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fgcqp"]
|
|
atlas = ExtResource("2_dftxp")
|
|
region = Rect2(0, 32, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kxpbe"]
|
|
atlas = ExtResource("2_dftxp")
|
|
region = Rect2(16, 32, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_aqm7k"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fgcqp")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_kxpbe")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_13gtq"]
|
|
atlas = ExtResource("2_dftxp")
|
|
region = Rect2(0, 16, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wxl8r"]
|
|
atlas = ExtResource("2_dftxp")
|
|
region = Rect2(16, 16, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_31p57"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_13gtq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_wxl8r")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_f51es"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_v0way")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_l3otb")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jnbok"]
|
|
atlas = ExtResource("2_dftxp")
|
|
region = Rect2(0, 48, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jtvf6"]
|
|
atlas = ExtResource("2_dftxp")
|
|
region = Rect2(16, 48, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_f65v7"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_jnbok")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_jtvf6")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="Resource" id="Resource_ji0bc"]
|
|
script = ExtResource("8_w3ysb")
|
|
Overworld = SubResource("SpriteFrames_f51es")
|
|
Underground = SubResource("SpriteFrames_31p57")
|
|
Snow = SubResource("SpriteFrames_f65v7")
|
|
GhostHouse = SubResource("SpriteFrames_31p57")
|
|
Castle = SubResource("SpriteFrames_aqm7k")
|
|
metadata/_custom_type_script = "uid://cmvlgsjmsk0v5"
|
|
|
|
[node name="SpikeBlock" type="CharacterBody2D" groups=["Enemies"]]
|
|
disable_mode = 1
|
|
collision_layer = 2
|
|
collision_mask = 2
|
|
script = ExtResource("1_gcnju")
|
|
metadata/_custom_type_script = "uid://bpydbpyjk1mt4"
|
|
|
|
[node name="Sprite" type="AnimatedSprite2D" parent="."]
|
|
process_mode = 1
|
|
sprite_frames = SubResource("SpriteFrames_bcd7j")
|
|
autoplay = "default"
|
|
frame_progress = 0.177236
|
|
script = ExtResource("3_4g6tc")
|
|
do_offset = false
|
|
metadata/_custom_type_script = "uid://caq1qiwmy0mox"
|
|
|
|
[node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
|
|
script = ExtResource("4_w3ysb")
|
|
node_to_affect = NodePath("..")
|
|
property_name = "sprite_frames"
|
|
resource_json = ExtResource("4_dftxp")
|
|
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
|
|
|
[node name="Collision" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_cgdwi")
|
|
|
|
[node name="Hitbox" type="Area2D" parent="."]
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="Hitbox"]
|
|
shape = SubResource("RectangleShape2D_r7ue2")
|
|
|
|
[node name="VisibleOnScreenEnabler2D" type="VisibleOnScreenEnabler2D" parent="."]
|
|
|
|
[node name="ScoreNoteSpawner" type="Node" parent="."]
|
|
script = ExtResource("7_bcd7j")
|
|
metadata/_custom_type_script = "uid://5octqlf4ohel"
|
|
|
|
[node name="ThemedToJSONConverter" type="Node" parent="."]
|
|
script = ExtResource("7_4g6tc")
|
|
resource = SubResource("Resource_ji0bc")
|
|
json_file_path = "res://Assets/Sprites/Blocks/SpikeBlock.json"
|
|
metadata/_custom_type_script = "uid://cqif1li7otvpl"
|
|
|
|
[node name="TrackJoint" type="Node" parent="."]
|
|
script = ExtResource("10_xfdnj")
|
|
offset = Vector2(0, 0)
|
|
metadata/_custom_type_script = "uid://d4a7yp6e55u8t"
|
|
|
|
[node name="EnemyPlayerDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")]
|
|
script = ExtResource("10_6hvsh")
|
|
hitbox = NodePath("../Hitbox")
|
|
metadata/_custom_type_script = "uid://chj8hu207lrh"
|
|
|
|
[connection signal="player_hit" from="EnemyPlayerDetection" to="." method="damage_player"]
|
|
[connection signal="player_stomped_on" from="EnemyPlayerDetection" to="." method="damage_player"]
|