-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPiece.tscn
30 lines (22 loc) · 861 Bytes
/
Piece.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Piece.gd" type="Script" id=1]
[ext_resource path="res://Block.gd" type="Script" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 9.26899, 9.08515 )
[node name="piece" type="Node2D"]
script = ExtResource( 1 )
[node name="StaticBody2D" type="KinematicBody2D" parent="."]
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="StaticBody2D"]
scale = Vector2( 4.4, 4.4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
scale = Vector2( 4, 4 )
shape = SubResource( 1 )
[node name="RayCast" type="RayCast2D" parent="StaticBody2D"]
position = Vector2( 0.35849, 0 )
enabled = true
cast_to = Vector2( 0, 40 )
[node name="UP" type="RayCast2D" parent="StaticBody2D"]
position = Vector2( 0.35849, 0 )
enabled = true
cast_to = Vector2( 0, -80 )