-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplayer.tscn
51 lines (41 loc) · 1.47 KB
/
player.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
[gd_scene load_steps=7 format=2]
[ext_resource path="res://scenes/player.gd" type="Script" id=1]
[ext_resource path="res://scenes/player_camera.gd" type="Script" id=2]
[ext_resource path="res://assets/images/player_move_core.png" type="Texture" id=3]
[ext_resource path="res://assets/images/player_move_blob.png" type="Texture" id=4]
[sub_resource type="CircleShape2D" id=1]
radius = 14.1421
[sub_resource type="CircleShape2D" id=2]
radius = 14.1421
[node name="player" type="KinematicBody2D" groups=[
"player",
]]
collision_layer = 0
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 6
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource( 2 )
[node name="Camera2D" type="Camera2D" parent="."]
current = true
zoom = Vector2( 0.75, 0.75 )
drag_margin_h_enabled = true
drag_margin_v_enabled = true
smoothing_enabled = true
drag_margin_left = 0.1
drag_margin_top = 0.1
drag_margin_right = 0.1
drag_margin_bottom = 0.1
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 0, -3 )
scale = Vector2( 0.0848528, 0.0848528 )
texture = ExtResource( 4 )
[node name="core" type="Sprite" parent="."]
position = Vector2( 0, -3 )
scale = Vector2( 0.085, 0.085 )
texture = ExtResource( 3 )
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]