-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.tscn
More file actions
102 lines (87 loc) · 2.83 KB
/
Player.tscn
File metadata and controls
102 lines (87 loc) · 2.83 KB
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
[gd_scene load_steps=10 format=2]
[ext_resource path="res://assets/ship.png" type="Texture" id=1]
[ext_resource path="res://Player.gd" type="Script" id=2]
[ext_resource path="res://assets/turret.png" type="Texture" id=3]
[ext_resource path="res://HeldItem.tscn" type="PackedScene" id=4]
[ext_resource path="res://assets/pew.wav" type="AudioStream" id=5]
[ext_resource path="res://Flames.tscn" type="PackedScene" id=6]
[ext_resource path="res://assets/bullet.png" type="Texture" id=7]
[sub_resource type="CircleShape2D" id=1]
radius = 12.2484
[sub_resource type="CircleShape2D" id=2]
radius = 50.0
[node name="Player" type="KinematicBody2D"]
position = Vector2( 316.321, 178.726 )
collision_mask = 36
script = ExtResource( 2 )
SPEED = 300
FRICTION = 300
ROTATION_SMOOTHING = 0.3
TurretTexture = ExtResource( 3 )
HeldItem = ExtResource( 4 )
[node name="Particles2D" type="CPUParticles2D" parent="." instance=ExtResource( 6 )]
position = Vector2( -14.9118, -7.00401 )
amount = 10
lifetime = 0.05
speed_scale = 1.1
lifetime_randomness = 0.43
local_coords = false
texture = ExtResource( 7 )
direction = Vector2( -10, 0 )
spread = 20.0
gravity = Vector2( 0, 0 )
initial_velocity = 50.0
initial_velocity_random = 0.9
angular_velocity = 50.0
angular_velocity_random = 1.0
scale_amount = 0.4
scale_amount_random = 0.75
hue_variation = 0.27
hue_variation_random = 0.51
[node name="Particles2D2" type="CPUParticles2D" parent="." instance=ExtResource( 6 )]
position = Vector2( -14.9118, 7.004 )
amount = 10
lifetime = 0.05
speed_scale = 1.1
lifetime_randomness = 0.43
local_coords = false
texture = ExtResource( 7 )
direction = Vector2( -10, 0 )
spread = 20.0
gravity = Vector2( 0, 0 )
initial_velocity = 50.0
initial_velocity_random = 0.9
angular_velocity = 50.0
angular_velocity_random = 1.0
scale_amount = 0.4
scale_amount_random = 0.75
hue_variation = 0.27
hue_variation_random = 0.51
[node name="Sprite" type="Sprite" parent="."]
rotation = 1.5708
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Gun2" type="Position2D" parent="."]
position = Vector2( 15.9954, 0 )
rotation = 1.5708
[node name="Gun1" type="Position2D" parent="."]
position = Vector2( 4.01334, -12.497 )
rotation = 1.5708
[node name="Gun3" type="Position2D" parent="."]
position = Vector2( 4.00571, 12.5129 )
rotation = 1.5708
[node name="Camera2D" type="Camera2D" parent="."]
current = true
smoothing_enabled = true
[node name="Magnet" type="Area2D" parent="."]
monitorable = false
collision_layer = 0
collision_mask = 16
[node name="CollisionShape2D" type="CollisionShape2D" parent="Magnet"]
shape = SubResource( 2 )
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 5 )
volume_db = -40.0
pitch_scale = 0.59
[connection signal="body_entered" from="Magnet" to="." method="_on_Magnet_body_entered"]