-
Notifications
You must be signed in to change notification settings - Fork 1
/
player.tscn
137 lines (114 loc) · 3.46 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
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
132
133
134
135
136
137
[gd_scene load_steps=15 format=2]
[ext_resource path="res://pixel-line-platformer/Tilemap/tilemap_packed.png" type="Texture" id=1]
[ext_resource path="res://player.gd" type="Script" id=3]
[ext_resource path="res://rocket_launcher.gd" type="Script" id=4]
[ext_resource path="res://player.tres" type="Material" id=5]
[ext_resource path="res://sfx/launches/iceball.wav" type="AudioStream" id=6]
[ext_resource path="res://sfx/lose/loser (4).wav" type="AudioStream" id=7]
[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
region = Rect2( 0, 64, 16, 16 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 16, 64, 16, 16 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
region = Rect2( 0, 64, 16, 16 )
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 1 )
region = Rect2( 16, 64, 16, 16 )
[sub_resource type="SpriteFrames" id=5]
animations = [ {
"frames": [ SubResource( 1 ) ],
"loop": true,
"name": "idle",
"speed": 5.0
}, {
"frames": [ SubResource( 2 ), SubResource( 3 ) ],
"loop": true,
"name": "walk",
"speed": 5.0
}, {
"frames": [ SubResource( 4 ) ],
"loop": true,
"name": "jump",
"speed": 5.0
} ]
[sub_resource type="CapsuleShape2D" id=6]
radius = 8.12926
height = 12.9492
[sub_resource type="StreamTexture" id=8]
flags = 6
load_path = "res://.import/tile.png-b6edd167b3cc7ec58612b18f9a6dce92.stex"
[sub_resource type="CircleShape2D" id=7]
radius = 74.1103
[node name="player" type="KinematicBody2D"]
position = Vector2( 0.943848, -227.617 )
collision_layer = 2
script = ExtResource( 3 )
[node name="sprite" type="AnimatedSprite" parent="."]
material = ExtResource( 5 )
rotation = -6.28319
scale = Vector2( 2, 2 )
frames = SubResource( 5 )
animation = "walk"
frame = 1
speed_scale = 1.5
[node name="shape" type="CollisionShape2D" parent="."]
visible = false
position = Vector2( -0.0883827, 1.98769 )
shape = SubResource( 6 )
[node name="ground_label" type="Label" parent="."]
visible = false
margin_left = 12.9968
margin_top = -13.6913
margin_right = 52.9968
margin_bottom = 0.308655
text = "Richo!"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="vel_label" type="Label" parent="."]
visible = false
margin_left = 13.3937
margin_top = -0.297638
margin_right = 53.3937
margin_bottom = 13.7024
text = "Richo!"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="up_line" type="Line2D" parent="."]
visible = false
points = PoolVector2Array( 0, 0, 0, 0 )
width = 2.0
[node name="vel_line" type="Line2D" parent="."]
visible = false
points = PoolVector2Array( 0, 0, 0, 0 )
width = 2.0
default_color = Color( 1, 0, 0, 1 )
[node name="rocket_launcher" type="Node2D" parent="."]
script = ExtResource( 4 )
rocket_speed = 400
[node name="line" type="Line2D" parent="rocket_launcher"]
position = Vector2( 15, 0 )
points = PoolVector2Array( 0, 0, 50, 0 )
width = 2.5
default_color = Color( 1, 0.180392, 0.180392, 1 )
texture = SubResource( 8 )
texture_mode = 1
[node name="arrow" type="Line2D" parent="rocket_launcher/line"]
position = Vector2( -12.4108, 0 )
points = PoolVector2Array( 57.4033, 6.0759, 64.6871, 0.116409, 57.5357, -6.24037 )
width = 2.0
default_color = Color( 1, 0, 0, 1 )
[node name="sfx" type="AudioStreamPlayer" parent="rocket_launcher"]
stream = ExtResource( 6 )
[node name="range" type="Area2D" parent="."]
visible = false
collision_layer = 4
[node name="shape" type="CollisionShape2D" parent="range"]
shape = SubResource( 7 )
[node name="sfx" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 7 )
volume_db = 15.0