fix block sprite when changing
This commit is contained in:
parent
a1bb39eaeb
commit
2cd7b66d6c
11 changed files with 272 additions and 28 deletions
21
gmtk_2024/objects/ResizableBlockBig.tscn
Normal file
21
gmtk_2024/objects/ResizableBlockBig.tscn
Normal file
|
@ -0,0 +1,21 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://br6fngf5208j0"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bplkveclkwuk" path="res://textures/block-blue.png" id="1_ejp7j"]
|
||||
[ext_resource type="Script" path="res://scripts/resizable_block.gd" id="1_j40bu"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sgemy"]
|
||||
size = Vector2(59, 59)
|
||||
|
||||
[node name="Block" type="StaticBody2D"]
|
||||
collision_layer = 17
|
||||
collision_mask = 22
|
||||
input_pickable = true
|
||||
script = ExtResource("1_j40bu")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_ejp7j")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_sgemy")
|
||||
|
||||
[connection signal="input_event" from="." to="." method="_on_input_event"]
|
Loading…
Add table
Add a link
Reference in a new issue