tank-blaster/Objects/Player-tank/player.tscn

59 lines
2.4 KiB
Text

[gd_scene load_steps=11 format=2]
[ext_resource path="res://Objects/Player-tank/Player.gd" type="Script" id=1]
[ext_resource path="res://Objects/Player-tank/model/textured/Bottom_tank_blender_player.glb" type="PackedScene" id=2]
[ext_resource path="res://Objects/Player-tank/model/textured/tank_top_blender_player.glb" type="PackedScene" id=3]
[ext_resource path="res://Audio/TANK_Shoot_07_mono.wav" type="AudioStream" id=4]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 1.29, 1, 2.428 )
[sub_resource type="BoxShape" id=2]
[sub_resource type="CubeMesh" id=3]
[sub_resource type="SpatialMaterial" id=4]
flags_transparent = true
albedo_color = Color( 1, 1, 1, 0.117647 )
[sub_resource type="CubeMesh" id=5]
[sub_resource type="SpatialMaterial" id=6]
flags_transparent = true
albedo_color = Color( 1, 0, 0, 0.529412 )
[node name="PlayerTank" type="KinematicBody"]
script = ExtResource( 1 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 20.7405, -7.28392e-07 )
[node name="CollisionShapeBottom" type="CollisionShape" parent="." groups=["player", "tank"]]
shape = SubResource( 1 )
[node name="Bottom_tank" parent="CollisionShapeBottom" instance=ExtResource( 2 )]
transform = Transform( -2.18557e-08, 0, 0.5, 0, 0.5, 0, -0.5, 0, -2.18557e-08, 0, -0.365829, 0.311056 )
[node name="CollisionShapeTop" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.572825, 0 )
shape = SubResource( 2 )
[node name="Top_tank" parent="CollisionShapeTop" instance=ExtResource( 3 )]
transform = Transform( -3.0598e-08, 0, 0.7, 0, 0.7, 0, -0.7, 0, -3.0598e-08, 0, 0.00646502, -0.310289 )
[node name="BulletGenerator" type="Position3D" parent="CollisionShapeTop/Top_tank"]
transform = Transform( -6.24448e-08, 0, -1.42857, 0, 1.42857, 0, 1.42857, 0, -6.24448e-08, 5.41008, -0.239993, -0.00470019 )
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 4 )
unit_size = 20.0
[node name="HealthBarBack" type="CSGMesh" parent="."]
transform = Transform( 2.1, 0, 0, 0, 0.069, 0, 0, 0, 0.343, 0, 2.6666, -2.69651 )
mesh = SubResource( 3 )
material = SubResource( 4 )
[node name="HealthBar" type="CSGMesh" parent="."]
transform = Transform( 2, 0, 0, 0, 0.039, 0, 0, 0, 0.276, 0.000887275, 2.78065, -2.70032 )
mesh = SubResource( 5 )
material = SubResource( 6 )