bullet.tscn 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. [gd_scene load_steps=8 format=2]
  2. [ext_resource path="res://player/bullet/bullet.gd" type="Script" id=1]
  3. [sub_resource type="SpatialMaterial" id=1]
  4. flags_transparent = true
  5. flags_unshaded = true
  6. vertex_color_use_as_albedo = true
  7. vertex_color_is_srgb = true
  8. params_blend_mode = 1
  9. albedo_color = Color( 0.822, 0.795804, 0.513098, 1 )
  10. [sub_resource type="ArrayMesh" id=2]
  11. resource_name = "Sphere.001"
  12. surfaces/0 = {
  13. "aabb": AABB( -0.951057, -1, -0.951057, 1.90211, 2, 1.90211 ),
  14. "array_data": PoolByteArray( 155, 187, 241, 52, 0, 0, 0, 60, 135, 36, 0, 0, 179, 184, 120, 58, 0, 0, 0, 60, 176, 98, 0, 0, 166, 182, 120, 58, 166, 182, 0, 60, 200, 98, 200, 0, 97, 185, 241, 52, 97, 185, 0, 60, 171, 36, 171, 0, 155, 187, 241, 180, 0, 0, 0, 60, 135, 220, 0, 0, 97, 185, 241, 180, 97, 185, 0, 60, 171, 220, 171, 0, 179, 184, 120, 186, 0, 0, 0, 60, 176, 158, 0, 0, 166, 182, 120, 186, 166, 182, 0, 60, 200, 158, 200, 0, 0, 0, 241, 52, 155, 187, 0, 60, 0, 36, 135, 0, 0, 0, 241, 180, 155, 187, 0, 60, 0, 220, 135, 0, 0, 0, 120, 186, 179, 184, 0, 60, 0, 158, 176, 0, 0, 0, 120, 58, 179, 184, 0, 60, 0, 98, 176, 0, 97, 57, 241, 52, 97, 185, 0, 60, 85, 36, 171, 0, 97, 57, 241, 180, 97, 185, 0, 60, 85, 220, 171, 0, 166, 54, 120, 186, 166, 182, 0, 60, 56, 158, 200, 0, 166, 54, 120, 58, 166, 182, 0, 60, 56, 98, 200, 0, 155, 59, 241, 52, 0, 0, 0, 60, 121, 36, 0, 0, 155, 59, 241, 180, 0, 0, 0, 60, 121, 220, 0, 0, 179, 56, 120, 186, 0, 0, 0, 60, 80, 158, 0, 0, 179, 56, 120, 58, 0, 0, 0, 60, 80, 98, 0, 0, 97, 57, 241, 52, 97, 57, 0, 60, 85, 36, 85, 0, 97, 57, 241, 180, 97, 57, 0, 60, 85, 220, 85, 0, 166, 54, 120, 186, 166, 54, 0, 60, 56, 158, 56, 0, 166, 54, 120, 58, 166, 54, 0, 60, 56, 98, 56, 0, 0, 0, 241, 52, 155, 59, 0, 60, 0, 36, 121, 0, 0, 0, 241, 180, 155, 59, 0, 60, 0, 220, 121, 0, 0, 0, 120, 186, 179, 56, 0, 60, 0, 158, 80, 0, 0, 0, 120, 58, 179, 56, 0, 60, 0, 98, 80, 0, 97, 185, 241, 52, 97, 57, 0, 60, 171, 36, 85, 0, 97, 185, 241, 180, 97, 57, 0, 60, 171, 220, 85, 0, 166, 182, 120, 186, 166, 54, 0, 60, 200, 158, 56, 0, 166, 182, 120, 58, 166, 54, 0, 60, 200, 98, 56, 0, 0, 0, 0, 60, 0, 0, 0, 60, 0, 127, 0, 0, 0, 0, 0, 188, 0, 0, 0, 60, 0, 130, 0, 0 ),
  15. "array_index_data": PoolByteArray( 0, 0, 2, 0, 1, 0, 0, 0, 3, 0, 2, 0, 4, 0, 3, 0, 0, 0, 4, 0, 5, 0, 3, 0, 6, 0, 5, 0, 4, 0, 6, 0, 7, 0, 5, 0, 5, 0, 8, 0, 3, 0, 5, 0, 9, 0, 8, 0, 7, 0, 9, 0, 5, 0, 7, 0, 10, 0, 9, 0, 3, 0, 11, 0, 2, 0, 3, 0, 8, 0, 11, 0, 9, 0, 12, 0, 8, 0, 9, 0, 13, 0, 12, 0, 10, 0, 13, 0, 9, 0, 10, 0, 14, 0, 13, 0, 8, 0, 15, 0, 11, 0, 8, 0, 12, 0, 15, 0, 13, 0, 16, 0, 12, 0, 13, 0, 17, 0, 16, 0, 14, 0, 17, 0, 13, 0, 14, 0, 18, 0, 17, 0, 12, 0, 19, 0, 15, 0, 12, 0, 16, 0, 19, 0, 17, 0, 20, 0, 16, 0, 17, 0, 21, 0, 20, 0, 18, 0, 21, 0, 17, 0, 18, 0, 22, 0, 21, 0, 16, 0, 23, 0, 19, 0, 16, 0, 20, 0, 23, 0, 21, 0, 24, 0, 20, 0, 21, 0, 25, 0, 24, 0, 22, 0, 25, 0, 21, 0, 22, 0, 26, 0, 25, 0, 20, 0, 27, 0, 23, 0, 20, 0, 24, 0, 27, 0, 25, 0, 28, 0, 24, 0, 25, 0, 29, 0, 28, 0, 26, 0, 29, 0, 25, 0, 26, 0, 30, 0, 29, 0, 24, 0, 31, 0, 27, 0, 24, 0, 28, 0, 31, 0, 1, 0, 2, 0, 32, 0, 33, 0, 7, 0, 6, 0, 2, 0, 11, 0, 32, 0, 33, 0, 10, 0, 7, 0, 11, 0, 15, 0, 32, 0, 33, 0, 14, 0, 10, 0, 15, 0, 19, 0, 32, 0, 33, 0, 18, 0, 14, 0, 19, 0, 23, 0, 32, 0, 33, 0, 22, 0, 18, 0, 23, 0, 27, 0, 32, 0, 33, 0, 26, 0, 22, 0, 27, 0, 31, 0, 32, 0, 33, 0, 30, 0, 26, 0, 29, 0, 0, 0, 28, 0, 29, 0, 4, 0, 0, 0, 30, 0, 4, 0, 29, 0, 30, 0, 6, 0, 4, 0, 32, 0, 31, 0, 1, 0, 33, 0, 6, 0, 30, 0, 1, 0, 28, 0, 0, 0, 1, 0, 31, 0, 28, 0 ),
  16. "blend_shape_data": [ ],
  17. "format": 98051,
  18. "index_count": 192,
  19. "material": SubResource( 1 ),
  20. "primitive": 4,
  21. "skeleton_aabb": [ ],
  22. "vertex_count": 34
  23. }
  24. [sub_resource type="SpatialMaterial" id=3]
  25. albedo_color = Color( 0.7, 0.7, 0.7, 1 )
  26. metallic = 0.1
  27. roughness = 0.0
  28. emission_enabled = true
  29. emission = Color( 1, 0.884824, 0.513098, 1 )
  30. emission_energy = 3.71
  31. emission_operator = 0
  32. emission_on_uv2 = false
  33. [sub_resource type="Animation" id=4]
  34. length = 2.0
  35. tracks/0/type = "value"
  36. tracks/0/path = NodePath("Sphere:visible")
  37. tracks/0/interp = 1
  38. tracks/0/loop_wrap = true
  39. tracks/0/imported = false
  40. tracks/0/enabled = true
  41. tracks/0/keys = {
  42. "times": PoolRealArray( 0, 1.5 ),
  43. "transitions": PoolRealArray( 1, 1 ),
  44. "update": 1,
  45. "values": [ true, false ]
  46. }
  47. tracks/1/type = "value"
  48. tracks/1/path = NodePath("Particles:emitting")
  49. tracks/1/interp = 1
  50. tracks/1/loop_wrap = true
  51. tracks/1/imported = false
  52. tracks/1/enabled = true
  53. tracks/1/keys = {
  54. "times": PoolRealArray( 0, 1.5 ),
  55. "transitions": PoolRealArray( 1, 1 ),
  56. "update": 1,
  57. "values": [ true, false ]
  58. }
  59. tracks/2/type = "method"
  60. tracks/2/path = NodePath(".")
  61. tracks/2/interp = 1
  62. tracks/2/loop_wrap = true
  63. tracks/2/imported = false
  64. tracks/2/enabled = true
  65. tracks/2/keys = {
  66. "times": PoolRealArray( 2 ),
  67. "transitions": PoolRealArray( 1 ),
  68. "values": [ {
  69. "args": [ ],
  70. "method": "queue_free"
  71. } ]
  72. }
  73. [sub_resource type="Gradient" id=5]
  74. colors = PoolColorArray( 1, 1, 1, 1, 1, 1, 1, 0 )
  75. [sub_resource type="SphereShape" id=6]
  76. radius = 0.27
  77. [node name="Bullet" type="RigidBody"]
  78. mass = 0.4
  79. script = ExtResource( 1 )
  80. __meta__ = {
  81. "__editor_plugin_screen__": "3D"
  82. }
  83. [node name="Sphere" type="MeshInstance" parent="."]
  84. transform = Transform( 0.24972, 0, 0, 0, 0.24972, 0, 0, 0, 0.24972, 0.00159812, 0.0110106, 0.0045104 )
  85. mesh = SubResource( 2 )
  86. material/0 = SubResource( 3 )
  87. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  88. autoplay = "life"
  89. anims/life = SubResource( 4 )
  90. [node name="Particles" type="CPUParticles" parent="."]
  91. amount = 16
  92. lifetime = 0.4
  93. fixed_fps = 60
  94. fract_delta = false
  95. local_coords = false
  96. mesh = SubResource( 2 )
  97. spread = 0.0
  98. gravity = Vector3( 0, 0, 0 )
  99. scale_amount = 0.3
  100. color_ramp = SubResource( 5 )
  101. [node name="CollisionShape" type="CollisionShape" parent="."]
  102. shape = SubResource( 6 )