mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-26 09:20:49 +00:00
added the game
This commit is contained in:
148
Scenes/Prefabs/Blocks/BooRaceBlocks/BooOnOffBlock.tscn
Normal file
148
Scenes/Prefabs/Blocks/BooRaceBlocks/BooOnOffBlock.tscn
Normal file
@@ -0,0 +1,148 @@
|
||||
[gd_scene load_steps=21 format=3 uid="uid://by6ndsjhlkmbt"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://coe8j7vfyvmh8" path="res://Assets/Sprites/Blocks/BooOnOffBlock.png" id="1_j75mb"]
|
||||
[ext_resource type="Script" uid="uid://be2x40pxmueyo" path="res://Scripts/Classes/Blocks/BooOnOffBlock.gd" id="1_mttsc"]
|
||||
[ext_resource type="Script" uid="uid://cnheej0sxmoxg" path="res://Scripts/Parts/PlayerDetection.gd" id="3_ds5j0"]
|
||||
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_sf1e4"]
|
||||
[ext_resource type="JSON" path="res://Assets/Sprites/Blocks/BooOnOffBlockRed.json" id="4_ofstd"]
|
||||
[ext_resource type="Script" uid="uid://d4a7yp6e55u8t" path="res://Scripts/Classes/Components/TrackJoint.gd" id="6_y6qjl"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mttsc"]
|
||||
atlas = ExtResource("1_j75mb")
|
||||
region = Rect2(64, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ds5j0"]
|
||||
atlas = ExtResource("1_j75mb")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wpfka"]
|
||||
atlas = ExtResource("1_j75mb")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ejjud"]
|
||||
atlas = ExtResource("1_j75mb")
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_iufm8"]
|
||||
atlas = ExtResource("1_j75mb")
|
||||
region = Rect2(48, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ly3ab"]
|
||||
atlas = ExtResource("1_j75mb")
|
||||
region = Rect2(64, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_b85kh"]
|
||||
atlas = ExtResource("1_j75mb")
|
||||
region = Rect2(64, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3r05r"]
|
||||
atlas = ExtResource("1_j75mb")
|
||||
region = Rect2(80, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vqjxh"]
|
||||
atlas = ExtResource("1_j75mb")
|
||||
region = Rect2(96, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_374u5"]
|
||||
atlas = ExtResource("1_j75mb")
|
||||
region = Rect2(112, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qg086"]
|
||||
atlas = ExtResource("1_j75mb")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_xp1gv"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mttsc")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"Default",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ds5j0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wpfka")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ejjud")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_iufm8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ly3ab")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"Off",
|
||||
"speed": 15.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_b85kh")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3r05r")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vqjxh")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_374u5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qg086")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"On",
|
||||
"speed": 15.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_fe1rr"]
|
||||
size = Vector2(16, 16)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ds5j0"]
|
||||
size = Vector2(12, 12)
|
||||
|
||||
[node name="BooOnOffBlock" type="AnimatableBody2D" groups=["BooBlocks"]]
|
||||
collision_layer = 6
|
||||
collision_mask = 0
|
||||
sync_to_physics = false
|
||||
script = ExtResource("1_mttsc")
|
||||
|
||||
[node name="Sprite" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_xp1gv")
|
||||
animation = &"Default"
|
||||
autoplay = "Default"
|
||||
|
||||
[node name="ResourceSetter" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
|
||||
script = ExtResource("3_sf1e4")
|
||||
node_to_affect = NodePath("..")
|
||||
property_name = "sprite_frames"
|
||||
resource_json = ExtResource("4_ofstd")
|
||||
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
||||
|
||||
[node name="Collision" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
shape = SubResource("RectangleShape2D_fe1rr")
|
||||
disabled = true
|
||||
|
||||
[node name="PlayerDetection" type="Area2D" parent="."]
|
||||
visible = false
|
||||
script = ExtResource("3_ds5j0")
|
||||
metadata/_custom_type_script = "uid://cnheej0sxmoxg"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerDetection"]
|
||||
shape = SubResource("RectangleShape2D_ds5j0")
|
||||
|
||||
[node name="TrackJoint" type="Node" parent="."]
|
||||
script = ExtResource("6_y6qjl")
|
||||
offset = Vector2(0, 0)
|
||||
metadata/_custom_type_script = "uid://d4a7yp6e55u8t"
|
||||
|
||||
[connection signal="player_entered" from="PlayerDetection" to="." method="on_player_entered"]
|
||||
[connection signal="player_exited" from="PlayerDetection" to="." method="on_player_exited"]
|
||||
113
Scenes/Prefabs/Blocks/BooRaceBlocks/BooOnOffBlueBlock.tscn
Normal file
113
Scenes/Prefabs/Blocks/BooRaceBlocks/BooOnOffBlueBlock.tscn
Normal file
@@ -0,0 +1,113 @@
|
||||
[gd_scene load_steps=16 format=3 uid="uid://c1xle3fplnxtr"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://by6ndsjhlkmbt" path="res://Scenes/Prefabs/Blocks/BooRaceBlocks/BooOnOffBlock.tscn" id="1_snfqb"]
|
||||
[ext_resource type="Texture2D" uid="uid://coe8j7vfyvmh8" path="res://Assets/Sprites/Blocks/BooOnOffBlock.png" id="2_vdgbk"]
|
||||
[ext_resource type="JSON" path="res://Assets/Sprites/Blocks/BooBlueOnOffBlock.json" id="3_yech7"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_snfqb"]
|
||||
atlas = ExtResource("2_vdgbk")
|
||||
region = Rect2(0, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nofac"]
|
||||
atlas = ExtResource("2_vdgbk")
|
||||
region = Rect2(0, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ptbl1"]
|
||||
atlas = ExtResource("2_vdgbk")
|
||||
region = Rect2(16, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_aqmci"]
|
||||
atlas = ExtResource("2_vdgbk")
|
||||
region = Rect2(32, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_h7e20"]
|
||||
atlas = ExtResource("2_vdgbk")
|
||||
region = Rect2(48, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_s8xmr"]
|
||||
atlas = ExtResource("2_vdgbk")
|
||||
region = Rect2(64, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2kj2p"]
|
||||
atlas = ExtResource("2_vdgbk")
|
||||
region = Rect2(64, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4r68e"]
|
||||
atlas = ExtResource("2_vdgbk")
|
||||
region = Rect2(80, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_l1ywa"]
|
||||
atlas = ExtResource("2_vdgbk")
|
||||
region = Rect2(96, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_uyt6e"]
|
||||
atlas = ExtResource("2_vdgbk")
|
||||
region = Rect2(112, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jpy10"]
|
||||
atlas = ExtResource("2_vdgbk")
|
||||
region = Rect2(0, 16, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_yh3se"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_snfqb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"Default",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_nofac")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ptbl1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_aqmci")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_h7e20")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_s8xmr")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"Off",
|
||||
"speed": 15.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2kj2p")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4r68e")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_l1ywa")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_uyt6e")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jpy10")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"On",
|
||||
"speed": 15.0
|
||||
}]
|
||||
|
||||
[node name="BooOnOffBlock" instance=ExtResource("1_snfqb")]
|
||||
active = true
|
||||
|
||||
[node name="Sprite" parent="." index="0"]
|
||||
sprite_frames = SubResource("SpriteFrames_yh3se")
|
||||
animation = &"Off"
|
||||
|
||||
[node name="ResourceSetter" parent="Sprite" index="0"]
|
||||
resource_json = ExtResource("3_yech7")
|
||||
|
||||
[node name="Collision" parent="." index="1"]
|
||||
disabled = false
|
||||
133
Scenes/Prefabs/Blocks/BooRaceBlocks/BooOnOffSwitch.tscn
Normal file
133
Scenes/Prefabs/Blocks/BooRaceBlocks/BooOnOffSwitch.tscn
Normal file
@@ -0,0 +1,133 @@
|
||||
[gd_scene load_steps=19 format=3 uid="uid://5ua3p0lfl1bf"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bm72ggve5kda5" path="res://Scripts/Classes/Blocks/BooOnOffSwitch.gd" id="1_ldgc7"]
|
||||
[ext_resource type="Texture2D" uid="uid://b00h2ocjft42e" path="res://Assets/Sprites/Blocks/BooOnOffSwitch.png" id="2_b0kgh"]
|
||||
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_afw5n"]
|
||||
[ext_resource type="PackedScene" uid="uid://cijkvfkthetn5" path="res://Scenes/Parts/BlockAnimations.tscn" id="3_b0kgh"]
|
||||
[ext_resource type="JSON" path="res://Assets/Sprites/Blocks/BooOnOffSwitch.json" id="4_bllja"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yh77s"]
|
||||
atlas = ExtResource("2_b0kgh")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ldgc7"]
|
||||
atlas = ExtResource("2_b0kgh")
|
||||
region = Rect2(0, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mcsv7"]
|
||||
atlas = ExtResource("2_b0kgh")
|
||||
region = Rect2(16, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_60tvi"]
|
||||
atlas = ExtResource("2_b0kgh")
|
||||
region = Rect2(32, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_f7t61"]
|
||||
atlas = ExtResource("2_b0kgh")
|
||||
region = Rect2(48, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hbxxr"]
|
||||
atlas = ExtResource("2_b0kgh")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_h8ett"]
|
||||
atlas = ExtResource("2_b0kgh")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ykmgv"]
|
||||
atlas = ExtResource("2_b0kgh")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_whks1"]
|
||||
atlas = ExtResource("2_b0kgh")
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_la0ug"]
|
||||
atlas = ExtResource("2_b0kgh")
|
||||
region = Rect2(48, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dxm0r"]
|
||||
atlas = ExtResource("2_b0kgh")
|
||||
region = Rect2(0, 16, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_yh77s"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yh77s")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"Default",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ldgc7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mcsv7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_60tvi")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_f7t61")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_hbxxr")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"Off",
|
||||
"speed": 15.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_h8ett")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ykmgv")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_whks1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_la0ug")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dxm0r")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"On",
|
||||
"speed": 15.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uwq65"]
|
||||
size = Vector2(16, 16)
|
||||
|
||||
[node name="BooOnOffSwitch" type="AnimatableBody2D" node_paths=PackedStringArray("visuals") groups=["BooBlocks", "BooSwitchBlocks"]]
|
||||
collision_layer = 6
|
||||
collision_mask = 0
|
||||
script = ExtResource("1_ldgc7")
|
||||
visuals = NodePath("Sprite")
|
||||
metadata/_custom_type_script = "uid://b5ejlbl0vp1gm"
|
||||
|
||||
[node name="Sprite" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_yh77s")
|
||||
animation = &"On"
|
||||
autoplay = "Default"
|
||||
|
||||
[node name="ResourceSetter" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
|
||||
script = ExtResource("3_afw5n")
|
||||
node_to_affect = NodePath("..")
|
||||
property_name = "sprite_frames"
|
||||
resource_json = ExtResource("4_bllja")
|
||||
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
||||
|
||||
[node name="Collision" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
shape = SubResource("RectangleShape2D_uwq65")
|
||||
|
||||
[node name="BlockAnimations" parent="." instance=ExtResource("3_b0kgh")]
|
||||
|
||||
[connection signal="player_block_hit" from="." to="." method="on_block_hit" unbinds=1]
|
||||
[connection signal="player_block_hit" from="." to="BlockAnimations" method="bounce_block" unbinds=1]
|
||||
174
Scenes/Prefabs/Blocks/BooRaceBlocks/TimedBooBlock.tscn
Normal file
174
Scenes/Prefabs/Blocks/BooRaceBlocks/TimedBooBlock.tscn
Normal file
@@ -0,0 +1,174 @@
|
||||
[gd_scene load_steps=21 format=3 uid="uid://dgq7enviy1qhw"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://du5hnwdhv7x66" path="res://Scripts/Classes/Blocks/TimedBooBlock.gd" id="1_hessd"]
|
||||
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_5y3wt"]
|
||||
[ext_resource type="Script" uid="uid://caq1qiwmy0mox" path="res://Scripts/Parts/BetterAnimatedSprite.gd" id="3_7bqom"]
|
||||
[ext_resource type="Texture2D" uid="uid://bi13n4mw0to20" path="res://Assets/Sprites/Blocks/TimedBooBlock.png" id="3_46g6h"]
|
||||
[ext_resource type="JSON" path="res://Assets/Sprites/Blocks/TimedBooBlock.json" id="4_7bqom"]
|
||||
[ext_resource type="PackedScene" uid="uid://cijkvfkthetn5" path="res://Scenes/Parts/BlockAnimations.tscn" id="4_tgrgf"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_slvan"]
|
||||
atlas = ExtResource("3_46g6h")
|
||||
region = Rect2(48, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mewnl"]
|
||||
atlas = ExtResource("3_46g6h")
|
||||
region = Rect2(64, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mcix7"]
|
||||
atlas = ExtResource("3_46g6h")
|
||||
region = Rect2(80, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mmpdk"]
|
||||
atlas = ExtResource("3_46g6h")
|
||||
region = Rect2(32, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n5dg2"]
|
||||
atlas = ExtResource("3_46g6h")
|
||||
region = Rect2(16, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ibap3"]
|
||||
atlas = ExtResource("3_46g6h")
|
||||
region = Rect2(0, 16, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7gr33"]
|
||||
atlas = ExtResource("3_46g6h")
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2kb58"]
|
||||
atlas = ExtResource("3_46g6h")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_huvet"]
|
||||
atlas = ExtResource("3_46g6h")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_i3exc"]
|
||||
atlas = ExtResource("3_46g6h")
|
||||
region = Rect2(48, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_r3ncx"]
|
||||
atlas = ExtResource("3_46g6h")
|
||||
region = Rect2(64, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8firs"]
|
||||
atlas = ExtResource("3_46g6h")
|
||||
region = Rect2(80, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_7ajl0"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_slvan")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mewnl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mcix7")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"BlueToRed",
|
||||
"speed": 15.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mmpdk")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"Off1",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_n5dg2")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"Off2",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ibap3")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"Off3",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7gr33")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"On1",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2kb58")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"On2",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_huvet")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"On3",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_i3exc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_r3ncx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8firs")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"RedToBlue",
|
||||
"speed": 15.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ce8wa"]
|
||||
size = Vector2(16, 16)
|
||||
|
||||
[node name="TimedBooBlock" type="AnimatableBody2D" node_paths=PackedStringArray("visuals") groups=["BooBlocks"]]
|
||||
collision_layer = 6
|
||||
script = ExtResource("1_hessd")
|
||||
visuals = NodePath("Sprite")
|
||||
destructable = false
|
||||
metadata/_custom_type_script = "uid://b5ejlbl0vp1gm"
|
||||
|
||||
[node name="Sprite" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_7ajl0")
|
||||
animation = &"Off3"
|
||||
autoplay = "Off3"
|
||||
script = ExtResource("3_7bqom")
|
||||
do_offset = false
|
||||
metadata/_custom_type_script = "uid://caq1qiwmy0mox"
|
||||
|
||||
[node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
|
||||
script = ExtResource("3_5y3wt")
|
||||
node_to_affect = NodePath("..")
|
||||
property_name = "sprite_frames"
|
||||
resource_json = ExtResource("4_7bqom")
|
||||
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
shape = SubResource("RectangleShape2D_ce8wa")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
|
||||
[node name="BlockAnimations" parent="." instance=ExtResource("4_tgrgf")]
|
||||
|
||||
[connection signal="player_block_hit" from="." to="." method="block_hit" unbinds=1]
|
||||
[connection signal="player_block_hit" from="." to="BlockAnimations" method="bounce_block" unbinds=1]
|
||||
[connection signal="shell_block_hit" from="." to="." method="block_hit" unbinds=1]
|
||||
[connection signal="shell_block_hit" from="." to="BlockAnimations" method="bounce_block" unbinds=1]
|
||||
[connection signal="timeout" from="Timer" to="." method="on_timeout"]
|
||||
Reference in New Issue
Block a user