mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
added the game
This commit is contained in:
33
Scenes/Prefabs/Blocks/QuestionBlocks/OneUpQuestionBlock.tscn
Normal file
33
Scenes/Prefabs/Blocks/QuestionBlocks/OneUpQuestionBlock.tscn
Normal file
@@ -0,0 +1,33 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://bao37nqa7h7cm"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://urrtgm0h110y" path="res://Scenes/Prefabs/Blocks/QuestionBlocks/StarQuestionBlock.tscn" id="1_ub15u"]
|
||||
[ext_resource type="PackedScene" uid="uid://beq7b3hp44onn" path="res://Scenes/Prefabs/Entities/Items/SuperMushroom.tscn" id="2_c153q"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsyugykvflalf" path="res://Assets/Sprites/Items/1UP.png" id="3_gaiqt"]
|
||||
[ext_resource type="JSON" path="res://Assets/Sprites/Items/OneUp.json" id="4_1kwpx"]
|
||||
[ext_resource type="Script" uid="uid://5octqlf4ohel" path="res://Scripts/Classes/Components/ScoreNoteSpawner.gd" id="5_8uw6t"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3yqrr"]
|
||||
atlas = ExtResource("3_gaiqt")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="PackedScene" id="PackedScene_dklm2"]
|
||||
_bundled = {
|
||||
"base_scene": 0,
|
||||
"conn_count": 0,
|
||||
"conns": PackedInt32Array(),
|
||||
"editable_instances": [],
|
||||
"names": PackedStringArray("OneUp", "metadata/is_oneup", "Mushroom", "texture", "region_enabled", "region_rect", "ResourceSetterNew", "resource_json", "ScoreNoteSpawner", "Node", "script", "metadata/_custom_type_script"),
|
||||
"node_count": 4,
|
||||
"node_paths": [NodePath("."), NodePath("./Mushroom"), NodePath(".")],
|
||||
"nodes": PackedInt32Array(-1, -1, 2147483647, 0, -1, 1, 1, 1, 0, 1073741824, -1, 2147483647, 262146, -1, 3, 3, 2, 4, 3, 5, 4, 0, 1073741825, -1, 2147483647, 262150, -1, 1, 7, 5, 0, 1073741826, 0, 9, 1310728, -1, 2, 10, 6, 11, 7, 0),
|
||||
"variants": [ExtResource("2_c153q"), true, SubResource("AtlasTexture_3yqrr"), false, Rect2(16, 0, 16, 16), ExtResource("4_1kwpx"), ExtResource("5_8uw6t"), "uid://5octqlf4ohel"],
|
||||
"version": 3
|
||||
}
|
||||
|
||||
[node name="QuestionBlock" instance=ExtResource("1_ub15u")]
|
||||
item = SubResource("PackedScene_dklm2")
|
||||
|
||||
[node name="Sprite2D" parent="ItemPreview" index="0"]
|
||||
region_rect = Rect2(16, 0, 16, 16)
|
||||
|
||||
[editable path="BlockAnimations"]
|
@@ -0,0 +1,34 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://um8m5iu20qj3"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bc1mrna4kybhv" path="res://Scenes/Prefabs/Blocks/QuestionBlocks/QuestionBlock.tscn" id="1_l2pjc"]
|
||||
[ext_resource type="PackedScene" uid="uid://beq7b3hp44onn" path="res://Scenes/Prefabs/Entities/Items/SuperMushroom.tscn" id="2_cyrh8"]
|
||||
[ext_resource type="JSON" path="res://Assets/Sprites/Items/PoisonMushroom.json" id="3_0pdxv"]
|
||||
[ext_resource type="Texture2D" uid="uid://011dooyd0elr" path="res://Assets/Sprites/Items/PoisonMushroom.png" id="3_rsq7m"]
|
||||
[ext_resource type="Script" uid="uid://cpwloakvp672a" path="res://Scripts/Parts/EditorVisibleNode.gd" id="3_whgk1"]
|
||||
|
||||
[sub_resource type="PackedScene" id="PackedScene_qyrv6"]
|
||||
_bundled = {
|
||||
"base_scene": 0,
|
||||
"conn_count": 0,
|
||||
"conns": PackedInt32Array(),
|
||||
"editable_instances": [],
|
||||
"names": PackedStringArray("SuperMushroom", "metadata/is_poison", "Mushroom", "region_enabled", "region_rect", "ResourceSetterNew", "resource_json"),
|
||||
"node_count": 3,
|
||||
"node_paths": [NodePath("."), NodePath("./Mushroom")],
|
||||
"nodes": PackedInt32Array(-1, -1, 2147483647, 0, -1, 1, 1, 1, 0, 1073741824, -1, 2147483647, 262146, -1, 2, 3, 2, 4, 3, 0, 1073741825, -1, 2147483647, 262149, -1, 1, 6, 4, 0),
|
||||
"variants": [ExtResource("2_cyrh8"), false, false, Rect2(32, 0, 16, 16), ExtResource("3_0pdxv")],
|
||||
"version": 3
|
||||
}
|
||||
|
||||
[node name="QuestionBlock" instance=ExtResource("1_l2pjc")]
|
||||
item = SubResource("PackedScene_qyrv6")
|
||||
|
||||
[node name="Node2D" type="Node2D" parent="." index="3"]
|
||||
script = ExtResource("3_whgk1")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Node2D" index="0"]
|
||||
texture = ExtResource("3_rsq7m")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(32, 0, 16, 16)
|
||||
|
||||
[editable path="BlockAnimations"]
|
@@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cmgahojpgp2cq"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bc1mrna4kybhv" path="res://Scenes/Prefabs/Blocks/QuestionBlocks/QuestionBlock.tscn" id="1_gy3k6"]
|
||||
[ext_resource type="PackedScene" uid="uid://dbjqtjhb2t4cn" path="res://Scenes/Prefabs/Entities/Items/FireFlower.tscn" id="2_h6l2a"]
|
||||
[ext_resource type="Script" uid="uid://cpwloakvp672a" path="res://Scripts/Parts/EditorVisibleNode.gd" id="3_32rpa"]
|
||||
[ext_resource type="Texture2D" uid="uid://hfh5i32uji5t" path="res://Assets/Sprites/Items/SuperMushroom.png" id="4_h6l2a"]
|
||||
|
||||
[node name="QuestionBlock" instance=ExtResource("1_gy3k6")]
|
||||
item = ExtResource("2_h6l2a")
|
||||
mushroom_if_small = true
|
||||
|
||||
[node name="ItemPreview" type="Node2D" parent="." index="3"]
|
||||
script = ExtResource("3_32rpa")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="ItemPreview" index="0"]
|
||||
texture = ExtResource("4_h6l2a")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(0, 0, 16, 16)
|
||||
region_filter_clip_enabled = true
|
||||
|
||||
[editable path="BlockAnimations"]
|
105
Scenes/Prefabs/Blocks/QuestionBlocks/QuestionBlock.tscn
Normal file
105
Scenes/Prefabs/Blocks/QuestionBlocks/QuestionBlock.tscn
Normal file
@@ -0,0 +1,105 @@
|
||||
[gd_scene load_steps=17 format=3 uid="uid://bc1mrna4kybhv"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b5ejlbl0vp1gm" path="res://Scripts/Classes/Blocks/BlockClass.gd" id="1_bxree"]
|
||||
[ext_resource type="Texture2D" uid="uid://uh7uhdkv3e6s" path="res://Assets/Sprites/Blocks/QuestionBlock.png" id="1_wt4d5"]
|
||||
[ext_resource type="PackedScene" uid="uid://clxssds8sj8pf" path="res://Scenes/Prefabs/Entities/Items/SpinningCoin.tscn" id="2_ntyfr"]
|
||||
[ext_resource type="PackedScene" uid="uid://dt58tjrnarms0" path="res://Scenes/Prefabs/Particles/QuestionBlockDestructionParticles.tscn" id="3_mvk7u"]
|
||||
[ext_resource type="PackedScene" uid="uid://cijkvfkthetn5" path="res://Scenes/Parts/BlockAnimations.tscn" id="3_ntyfr"]
|
||||
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="4_qf42s"]
|
||||
[ext_resource type="JSON" path="res://Assets/Sprites/Blocks/QuestionBlock.json" id="5_mkj8t"]
|
||||
[ext_resource type="Script" uid="uid://ctfbuoxtnnl0q" path="res://Scripts/Classes/Components/EditorPropertyExposer.gd" id="7_aekuo"]
|
||||
[ext_resource type="Script" uid="uid://d4a7yp6e55u8t" path="res://Scripts/Classes/Components/TrackJoint.gd" id="8_ov42f"]
|
||||
[ext_resource type="Script" uid="uid://maqpreddu5kg" path="res://Scripts/Classes/Components/LevelPersistance.gd" id="9_j1txv"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w6pbl"]
|
||||
atlas = ExtResource("1_wt4d5")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bxree"]
|
||||
atlas = ExtResource("1_wt4d5")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ntyfr"]
|
||||
atlas = ExtResource("1_wt4d5")
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_aukm0"]
|
||||
atlas = ExtResource("1_wt4d5")
|
||||
region = Rect2(48, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_qf42s"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_w6pbl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bxree")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ntyfr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_aukm0")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 1.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mkj8t"]
|
||||
size = Vector2(16, 16)
|
||||
|
||||
[node name="QuestionBlock" type="AnimatableBody2D" node_paths=PackedStringArray("visuals") groups=["Blocks"]]
|
||||
collision_layer = 6
|
||||
collision_mask = 0
|
||||
sync_to_physics = false
|
||||
script = ExtResource("1_bxree")
|
||||
visuals = NodePath("Sprite")
|
||||
item = ExtResource("2_ntyfr")
|
||||
destruction_particle_scene = ExtResource("3_mvk7u")
|
||||
combo_meter_amount = 30
|
||||
|
||||
[node name="Sprite" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_qf42s")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.2849915
|
||||
|
||||
[node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
|
||||
script = ExtResource("4_qf42s")
|
||||
node_to_affect = NodePath("..")
|
||||
property_name = "sprite_frames"
|
||||
resource_json = ExtResource("5_mkj8t")
|
||||
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
||||
|
||||
[node name="Collision" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
shape = SubResource("RectangleShape2D_mkj8t")
|
||||
|
||||
[node name="BlockAnimations" parent="." instance=ExtResource("3_ntyfr")]
|
||||
|
||||
[node name="EditorPropertyExposer" type="Node" parent="."]
|
||||
script = ExtResource("7_aekuo")
|
||||
properties = Array[String](["item", "item_amount", "mushroom_if_small"])
|
||||
filters = Dictionary[String, String]({
|
||||
"item": "can_be_stored"
|
||||
})
|
||||
|
||||
[node name="TrackJoint" type="Node" parent="."]
|
||||
script = ExtResource("8_ov42f")
|
||||
offset = Vector2(0, 0)
|
||||
metadata/_custom_type_script = "uid://d4a7yp6e55u8t"
|
||||
|
||||
[node name="LevelPersistance" type="Node" parent="."]
|
||||
script = ExtResource("9_j1txv")
|
||||
metadata/_custom_type_script = "uid://maqpreddu5kg"
|
||||
|
||||
[connection signal="block_destroyed" from="." to="LevelPersistance" method="set_as_active_2"]
|
||||
[connection signal="block_emptied" from="." to="LevelPersistance" method="set_as_active"]
|
||||
[connection signal="player_block_hit" from="." to="." method="player_mushroom_check"]
|
||||
[connection signal="player_block_hit" from="." to="." method="dispense_item" unbinds=1]
|
||||
[connection signal="player_block_hit" from="." to="BlockAnimations" method="bounce_block" unbinds=1]
|
||||
[connection signal="shell_block_hit" from="." to="." method="dispense_item" unbinds=1]
|
||||
[connection signal="shell_block_hit" from="." to="BlockAnimations" method="bounce_block" unbinds=1]
|
||||
[connection signal="enabled" from="LevelPersistance" to="." method="spawn_empty_block"]
|
||||
[connection signal="enabled_2" from="LevelPersistance" to="." method="queue_free"]
|
80
Scenes/Prefabs/Blocks/QuestionBlocks/StarQuestionBlock.tscn
Normal file
80
Scenes/Prefabs/Blocks/QuestionBlocks/StarQuestionBlock.tscn
Normal file
@@ -0,0 +1,80 @@
|
||||
[gd_scene load_steps=17 format=3 uid="uid://urrtgm0h110y"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cmgahojpgp2cq" path="res://Scenes/Prefabs/Blocks/QuestionBlocks/PowerUpQuestionBlock.tscn" id="1_t6w6o"]
|
||||
[ext_resource type="Script" uid="uid://dbeg86pjflojw" path="res://Scripts/Classes/Entities/Items/SuperStar.gd" id="2_2y0ea"]
|
||||
[ext_resource type="AudioStream" uid="uid://73b2bhjg5idd" path="res://Assets/Audio/BGM/StarMan.mp3" id="3_fs4uy"]
|
||||
[ext_resource type="Texture2D" uid="uid://1o654l3577lv" path="res://Assets/Sprites/Items/SuperStar.png" id="4_2tflf"]
|
||||
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="5_a44we"]
|
||||
[ext_resource type="JSON" path="res://Assets/Sprites/Items/StarMan.json" id="6_6b3t1"]
|
||||
[ext_resource type="Script" uid="uid://dlq6o2rg1x7in" path="res://Scripts/Classes/Components/BasicEnemyMovement.gd" id="7_r72oo"]
|
||||
|
||||
[sub_resource type="AudioStreamInteractive" id="AudioStreamInteractive_og7mc"]
|
||||
clip_count = 1
|
||||
clip_0/name = &"Star Man"
|
||||
clip_0/stream = ExtResource("3_fs4uy")
|
||||
clip_0/auto_advance = 0
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ptmgm"]
|
||||
atlas = ExtResource("4_2tflf")
|
||||
region = Rect2(0, 32, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_aowox"]
|
||||
atlas = ExtResource("4_2tflf")
|
||||
region = Rect2(16, 32, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_53gld"]
|
||||
atlas = ExtResource("4_2tflf")
|
||||
region = Rect2(32, 32, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_orqf5"]
|
||||
atlas = ExtResource("4_2tflf")
|
||||
region = Rect2(48, 32, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_og7mc"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ptmgm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_aowox")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_53gld")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_orqf5")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 15.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sc6oi"]
|
||||
custom_solver_bias = 1.0
|
||||
size = Vector2(8, 8)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yyobd"]
|
||||
size = Vector2(16, 16)
|
||||
|
||||
[sub_resource type="PackedScene" id="PackedScene_3tsvi"]
|
||||
_bundled = {
|
||||
"conn_count": 1,
|
||||
"conns": PackedInt32Array(1073741831, 1073741830, 39, 38, 2, 0, 0),
|
||||
"editable_instances": [],
|
||||
"names": PackedStringArray("SuperStar", "CharacterBody2D", "z_index", "collision_layer", "collision_mask", "script", "star_bgm", "metadata/_custom_type_script", "Sprite", "AnimatedSprite2D", "position", "sprite_frames", "autoplay", "frame_progress", "ResourceSetterNew", "Node", "script", "node_to_affect", "property_name", "resource_json", "metadata/_custom_type_script", "Collision", "CollisionShape2D", "position", "shape", "Hitbox", "Area2D", "CollisionShape2D", "CollisionShape2D", "position", "shape", "BasicEnemyMovement", "Node", "script", "ledge_detection_cast", "move_speed", "bounce_on_land", "bounce_height", "on_area_entered", "area_entered"),
|
||||
"node_count": 7,
|
||||
"node_paths": [NodePath("."), NodePath("./Sprite"), NodePath("."), NodePath("."), NodePath("./Hitbox"), NodePath("."), NodePath("."), NodePath("Hitbox")],
|
||||
"nodes": PackedInt32Array(-1, -1, 1, 0, -1, 6, 2, 0, 3, 1, 4, 2, 5, 3, 6, 4, 7, 5, 0, 1073741824, 0, 9, 8, -1, 4, 10, 6, 11, 7, 12, 8, 13, 9, 0, 1073741825, 0, 15, 14, -1, 5, 16, 10, 1073741841, 11, 18, 12, 19, 13, 20, 14, 0, 1073741826, 0, 22, 21, -1, 2, 23, 15, 24, 16, 0, 1073741827, 0, 26, 25, -1, 0, 0, 1073741828, 0, 28, 27, -1, 2, 29, 17, 30, 18, 0, 1073741829, 0, 32, 31, -1, 5, 33, 19, 1073741858, 20, 35, 21, 36, 22, 37, 23, 0),
|
||||
"variants": [-1, 8, 2, ExtResource("2_2y0ea"), SubResource("AudioStreamInteractive_og7mc"), "uid://cjkurwybsaywm", Vector2(0, -8), SubResource("SpriteFrames_og7mc"), "default", 0.792139, ExtResource("5_a44we"), NodePath(".."), "sprite_frames", ExtResource("6_6b3t1"), "uid://cbal8ms2oe1ik", Vector2(0, -4), SubResource("RectangleShape2D_sc6oi"), Vector2(0, -8), SubResource("RectangleShape2D_yyobd"), ExtResource("7_r72oo"), NodePath(""), 70, true, -250],
|
||||
"version": 3
|
||||
}
|
||||
|
||||
[node name="QuestionBlock" instance=ExtResource("1_t6w6o")]
|
||||
item = SubResource("PackedScene_3tsvi")
|
||||
mushroom_if_small = false
|
||||
|
||||
[node name="Sprite2D" parent="ItemPreview" index="0"]
|
||||
region_rect = Rect2(16, 32, 16, 16)
|
||||
|
||||
[editable path="BlockAnimations"]
|
Reference in New Issue
Block a user