-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMirrorTank.tscn
61 lines (49 loc) · 2.2 KB
/
MirrorTank.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
[gd_scene load_steps=14 format=2]
[ext_resource path="res://MirrorTank.gd" type="Script" id=1]
[ext_resource path="res://boat_guy_still.png" type="Texture" id=2]
[ext_resource path="res://explosion_2.png" type="Texture" id=3]
[ext_resource path="res://explosion_3.png" type="Texture" id=4]
[ext_resource path="res://explosion_1.png" type="Texture" id=5]
[ext_resource path="res://explosion_4.png" type="Texture" id=6]
[ext_resource path="res://explosion_5.png" type="Texture" id=7]
[ext_resource path="res://sounds/move.wav" type="AudioStream" id=8]
[ext_resource path="res://sounds/idle.wav" type="AudioStream" id=9]
[ext_resource path="res://sounds/fire.wav" type="AudioStream" id=10]
[ext_resource path="res://sounds/explosion.wav" type="AudioStream" id=11]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 7.78017, 7.10828 )
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 5 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 6 ), ExtResource( 7 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[node name="MirrorTank" type="KinematicBody2D"]
script = ExtResource( 1 )
[node name="tank" type="Sprite" parent="."]
scale = Vector2( 2, 2 )
texture = ExtResource( 2 )
offset = Vector2( 0, -1.5 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="StartPosition" type="Position2D" parent="."]
visible = false
[node name="ExplosionAnim" type="AnimatedSprite" parent="."]
visible = false
frames = SubResource( 2 )
frame = 1
[node name="SoundIdle" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 9 )
volume_db = -15.0
[node name="SoundMove" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 8 )
volume_db = -15.0
pitch_scale = 1.2
[node name="SoundFire" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 10 )
[node name="SoundExplosion" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 11 )
[connection signal="animation_finished" from="ExplosionAnim" to="." method="_on_ExplosionAnim_animation_finished"]
[connection signal="finished" from="SoundFire" to="." method="_on_SoundFire_finished"]
[connection signal="finished" from="SoundExplosion" to="." method="_on_SoundExplosion_finished"]