-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplayer.tscn
38 lines (29 loc) · 1.12 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
[gd_scene load_steps=4 format=2]
[ext_resource path="res://player.gd" type="Script" id=1]
[sub_resource type="PhysicsMaterial" id=1]
friction = 0.2
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 33, 33 )
[node name="Player" type="RigidBody2D"]
position = Vector2( 47, 49 )
physics_material_override = SubResource( 1 )
gravity_scale = 20.0
continuous_cd = 2
contacts_reported = 3
can_sleep = false
script = ExtResource( 1 )
[node name="Gun" type="Polygon2D" parent="."]
color = Color( 0.501961, 0.501961, 0.501961, 1 )
polygon = PoolVector2Array( -7, -9, 57, -9, 57, 7, -7, 7 )
[node name="Crosshair" type="Polygon2D" parent="Gun"]
position = Vector2( 209, -3.76471 )
antialiased = true
polygon = PoolVector2Array( -15, 5, -15, -5, -5, -5, -5, -15, 5, -15, 5, -5, 15, -5, 15, 5, 5, 5, 5, 15, -5, 15, -5, 5 )
[node name="Polygon2D" type="Polygon2D" parent="."]
antialiased = true
polygon = PoolVector2Array( -32, -32, 32, -32, 32, 32, -32, 32 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 2 )
[node name="ShotCooldown" type="Timer" parent="."]
wait_time = 0.5
one_shot = true