-
Notifications
You must be signed in to change notification settings - Fork 2
/
OtherPlayer.tscn
131 lines (113 loc) · 3.14 KB
/
OtherPlayer.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[gd_scene load_steps=10 format=2]
[ext_resource path="res://MainGuySpriteSheet.png" type="Texture" id=1]
[ext_resource path="res://OtherPlayer.gd" type="Script" id=2]
[sub_resource type="Shader" id=1]
code = "shader_type canvas_item;
uniform float red_factor = 0.9;
uniform float green_factor = 0.9;
uniform float blue_factor = 0.9;
void fragment() {
vec4 curr_color = texture(TEXTURE, UV); // Get current color of pixel
COLOR = vec4(
(curr_color.r + red_factor * 3.0) / 4.0,
(curr_color.g + green_factor * 3.0) / 4.0,
(curr_color.b + blue_factor * 3.0) / 4.0,
curr_color.a);
// if (curr_color == vec4(0,0,0,1)){
// COLOR = vec4(1,0,0,1);
// } else{
// COLOR = curr_color;
// }
}"
[sub_resource type="ShaderMaterial" id=2]
resource_local_to_scene = true
shader = SubResource( 1 )
shader_param/red_factor = 0.9
shader_param/green_factor = 0.9
shader_param/blue_factor = 0.0
[sub_resource type="CapsuleShape2D" id=3]
radius = 10.7134
height = 12.2238
[sub_resource type="Animation" id=4]
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0.0319246, 0.872605 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 0, 2 ]
}
[sub_resource type="Animation" id=5]
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.955077 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 9, 11 ]
}
[sub_resource type="Animation" id=6]
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.784509 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 3, 5 ]
}
[sub_resource type="Animation" id=7]
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0.0156592, 0.840377 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ 6, 8 ]
}
[node name="OtherPlayer" type="KinematicBody2D"]
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
material = SubResource( 2 )
position = Vector2( 0.451494, 1.48101 )
texture = ExtResource( 1 )
vframes = 4
hframes = 3
frame = 9
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 1.07983, 1.38836 )
shape = SubResource( 3 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
playback_speed = 3.0
anims/down = SubResource( 4 )
anims/left = SubResource( 5 )
anims/right = SubResource( 6 )
anims/up = SubResource( 7 )
[node name="RayCast2D" type="RayCast2D" parent="."]
enabled = true
cast_to = Vector2( 0, 32 )
[node name="Label" type="Label" parent="."]
margin_left = -25.3934
margin_top = -33.1162
margin_right = 24.6066
margin_bottom = -19.1162
text = "missing"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}