mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-25 00:40:54 +00:00
added the game
This commit is contained in:
28
Scenes/Prefabs/Blocks/BrickBlocks/CoinBrickBlock.tscn
Normal file
28
Scenes/Prefabs/Blocks/BrickBlocks/CoinBrickBlock.tscn
Normal file
@@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cqvr7a6e84oti"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dsa8lpl7n8ge0" path="res://Scenes/Prefabs/Blocks/BrickBlocks/BrickBlock.tscn" id="1_ihag5"]
|
||||
[ext_resource type="PackedScene" uid="uid://clxssds8sj8pf" path="res://Scenes/Prefabs/Entities/Items/SpinningCoin.tscn" id="2_1q8s7"]
|
||||
[ext_resource type="Texture2D" uid="uid://b6o28xa83npb1" path="res://Assets/Sprites/Items/StaticCoin.png" id="3_cjcdh"]
|
||||
|
||||
[node name="BrickBlock" instance=ExtResource("1_ihag5")]
|
||||
item = ExtResource("2_1q8s7")
|
||||
item_amount = 99
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." index="4"]
|
||||
texture = ExtResource("3_cjcdh")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(0, 0, 16, 16)
|
||||
region_filter_clip_enabled = true
|
||||
|
||||
[node name="Timer" type="Timer" parent="Sprite2D" index="0"]
|
||||
wait_time = 0.001
|
||||
autostart = true
|
||||
|
||||
[node name="Timer" type="Timer" parent="." index="6"]
|
||||
process_callback = 0
|
||||
wait_time = 3.85
|
||||
one_shot = true
|
||||
|
||||
[connection signal="player_block_hit" from="." to="Timer" method="start" flags=6 unbinds=1]
|
||||
[connection signal="timeout" from="Sprite2D/Timer" to="Sprite2D" method="queue_free"]
|
||||
[connection signal="timeout" from="Timer" to="." method="set_coin_count"]
|
||||
Reference in New Issue
Block a user