two changes
added "Press R to Reset" and changed sprites for blocks
This commit is contained in:
parent
1f32046617
commit
d137d205ff
20 changed files with 542 additions and 42 deletions
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://br6fngf5208j0"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bqyd0blnkls1g" path="res://textures/block-blue.png" id="1_ejp7j"]
|
||||
[ext_resource type="Script" path="res://scripts/resizable_block.gd" id="1_j40bu"]
|
||||
[ext_resource type="Texture2D" uid="uid://bb8vdlgwpj8oc" path="res://textures/antivirus-block-big.png" id="3_lb374"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sgemy"]
|
||||
size = Vector2(59, 59)
|
||||
|
@ -13,7 +13,7 @@ input_pickable = true
|
|||
script = ExtResource("1_j40bu")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_ejp7j")
|
||||
texture = ExtResource("3_lb374")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_sgemy")
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://dpg2s61eevjd"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/resizable_block.gd" id="1_bulc3"]
|
||||
[ext_resource type="Texture2D" uid="uid://dbwquy34l8gd4" path="res://textures/block-small.png" id="2_42gyy"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vlk61"]
|
||||
size = Vector2(30, 30)
|
||||
|
||||
[node name="Block" type="StaticBody2D"]
|
||||
collision_layer = 17
|
||||
collision_mask = 22
|
||||
input_pickable = true
|
||||
script = ExtResource("1_bulc3")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("2_42gyy")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_vlk61")
|
||||
|
||||
[connection signal="input_event" from="." to="." method="_on_input_event"]
|
Loading…
Add table
Add a link
Reference in a new issue