-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgem.tscn
54 lines (37 loc) · 1.18 KB
/
gem.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[gd_scene load_steps=5 format=1]
[ext_resource path="res://gem.gd" type="Script" id=1]
[ext_resource path="res://images/gem1.png" type="Texture" id=2]
[sub_resource type="RectangleShape2D" id=3]
custom_solver_bias = 0.0
extents = Vector2( 7, 6 )
[sub_resource type="CircleShape2D" id=2]
custom_solver_bias = 0.0
radius = 3.0
[node name="Gem" type="KinematicBody2D"]
input/pickable = false
shapes/0/shape = SubResource( 3 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/0/trigger = false
collision/layers = 1
collision/mask = 1
collision/margin = 0.08
script/script = ExtResource( 1 )
[node name="gem_sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )
[node name="gem_shape" type="CollisionShape2D" parent="."]
shape = SubResource( 3 )
trigger = false
_update_shape_index = 0
[node name="gem_area" type="Area2D" parent="."]
input/pickable = true
shapes/0/shape = SubResource( 2 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/0/trigger = false
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
[node name="area_shape" type="CollisionShape2D" parent="gem_area"]
shape = SubResource( 2 )
trigger = false
_update_shape_index = 0