-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBullet.tscn
More file actions
46 lines (38 loc) · 1.52 KB
/
Bullet.tscn
File metadata and controls
46 lines (38 loc) · 1.52 KB
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
[gd_scene load_steps=5 format=3 uid="uid://dh1lp7tib4d78"]
[ext_resource type="PhysicsMaterial" uid="uid://cql6t5hd40fgn" path="res://CorePhysics.tres" id="1_nbsxj"]
[ext_resource type="Script" path="res://Bullet.gd" id="2_ym7mu"]
[ext_resource type="AudioStream" uid="uid://swcd1jarrvlf" path="res://Sounds/LaserShot.wav" id="3_of1j8"]
[sub_resource type="Gradient" id="Gradient_gcqhp"]
colors = PackedColorArray(1, 1, 0, 1, 1, 1, 0, 0)
[node name="Bullet" type="RigidBody2D"]
collision_layer = 16
collision_mask = 0
physics_material_override = ExtResource("1_nbsxj")
continuous_cd = 1
max_contacts_reported = 5
contact_monitor = true
script = ExtResource("2_ym7mu")
[node name="Polygon2D" type="Polygon2D" parent="."]
color = Color(0.572549, 0.976471, 0.945098, 1)
polygon = PackedVector2Array(0, 0, 1, 1, 1, 4, 0, 3, -1, 4, -1, 1)
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
polygon = PackedVector2Array(0, 0, 1, 1, 1, 4, 0, 3, -1, 4, -1, 1)
[node name="CPUParticles2D2" type="CPUParticles2D" parent="."]
position = Vector2(0, 3)
amount = 10
lifetime = 0.3
direction = Vector2(0, 0)
spread = 180.0
gravity = Vector2(0, 0)
initial_velocity_min = 1.0
initial_velocity_max = 1.0
color = Color(1, 1, 0, 1)
color_ramp = SubResource("Gradient_gcqhp")
hue_variation_min = 1.0
hue_variation_max = 1.0
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_of1j8")
volume_db = -1.874
autoplay = true
bus = &"Effects"
[connection signal="body_entered" from="." to="." method="_on_body_entered"]