-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.tscn
38 lines (29 loc) · 1.23 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=7 format=2]
[ext_resource path="res://Player.gd" type="Script" id=1]
[ext_resource path="res://PNG/Retina/tankBody_blue_outline.png" type="Texture" id=2]
[ext_resource path="res://PNG/Retina/tankBlue_barrel2_outline.png" type="Texture" id=3]
[ext_resource path="res://Analog/Analog.tscn" type="PackedScene" id=4]
[ext_resource path="res://sounds/Shoot.wav" type="AudioStream" id=5]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 42.2196, 40 )
[node name="Player" type="KinematicBody2D"]
collision_layer = 2
collision_mask = 7
script = ExtResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2( 0.5, 0.5 )
shape = SubResource( 1 )
[node name="Sprite2" type="Sprite" parent="."]
rotation = -1.5708
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 3 )
offset = Vector2( 0, 28 )
[node name="ShootDelay" type="Timer" parent="."]
wait_time = 0.3
[node name="Analog" parent="." instance=ExtResource( 4 )]
[node name="Shoot" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 5 )
[connection signal="timeout" from="ShootDelay" to="." method="_on_ShootDelay_timeout"]