forked from uzkbwza/smileygame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer_character.tscn
80 lines (64 loc) · 2.57 KB
/
player_character.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[gd_scene load_steps=5 format=3 uid="uid://p7x2wup1cutc"]
[ext_resource type="Script" path="res://stupid crap/character_body_2d.gd" id="1_phurw"]
[ext_resource type="Texture2D" uid="uid://colxnifvj71f8" path="res://placeholders/square1.png" id="2_5vnx3"]
[sub_resource type="SeparationRayShape2D" id="SeparationRayShape2D_atbvh"]
custom_solver_bias = 1.0
length = 6.0
slide_on_slope = true
[sub_resource type="SeparationRayShape2D" id="SeparationRayShape2D_515uf"]
length = 16.0
slide_on_slope = true
[node name="PlayerCharacter" type="CharacterBody2D"]
collision_layer = 4
floor_constant_speed = true
floor_block_on_wall = false
floor_max_angle = 0.802851
floor_snap_length = 4.0
script = ExtResource("1_phurw")
metadata/_edit_group_ = true
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(0, -2.38419e-07)
scale = Vector2(0.6875, 1)
texture = ExtResource("2_5vnx3")
[node name="Box" type="CollisionPolygon2D" parent="."]
position = Vector2(0, -5)
polygon = PackedVector2Array(-6, -11, 0, 10, 6, -11)
[node name="Side3" type="CollisionShape2D" parent="."]
position = Vector2(-3.05176e-05, -15.5)
rotation = 1.57079
shape = SubResource("SeparationRayShape2D_atbvh")
[node name="Side4" type="CollisionShape2D" parent="."]
position = Vector2(-3.05176e-05, -15.5)
rotation = -1.5708
shape = SubResource("SeparationRayShape2D_atbvh")
[node name="UpMiddle" type="CollisionShape2D" parent="."]
position = Vector2(-3.05176e-05, -0.499969)
rotation = -3.14159
shape = SubResource("SeparationRayShape2D_515uf")
[node name="UpRight" type="CollisionShape2D" parent="."]
position = Vector2(5.99997, -0.499969)
rotation = -3.14159
shape = SubResource("SeparationRayShape2D_515uf")
[node name="UpLeft" type="CollisionShape2D" parent="."]
position = Vector2(-6.00003, -0.499969)
rotation = -3.14159
shape = SubResource("SeparationRayShape2D_515uf")
[node name="Down" type="CollisionShape2D" parent="."]
position = Vector2(-3.05176e-05, -0.499969)
shape = SubResource("SeparationRayShape2D_515uf")
[node name="DownLeft" type="CollisionShape2D" parent="."]
position = Vector2(-1.00003, -0.499969)
shape = SubResource("SeparationRayShape2D_515uf")
[node name="DownRight" type="CollisionShape2D" parent="."]
position = Vector2(0.999969, -0.499969)
shape = SubResource("SeparationRayShape2D_515uf")
[node name="Camera2D" type="Camera2D" parent="."]
enabled = false
process_callback = 0
position_smoothing_enabled = true
position_smoothing_speed = 15.0
[node name="GroundDetector" type="RayCast2D" parent="."]
unique_name_in_owner = true
position = Vector2(0, 15)
exclude_parent = false
target_position = Vector2(0, 9)