1
0
Fork 0
1bit-godot-course/space-shooter/Scenes/Objects/Bullet.tscn

31 lines
1.1 KiB
Plaintext

[gd_scene load_steps=5 format=2]
[ext_resource path="res://Scenes/Objects/Bullet.gd" type="Script" id=1]
[ext_resource path="res://Sprites/Bullet.png" type="Texture" id=2]
[ext_resource path="res://SFX/Laser.wav" type="AudioStream" id=3]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 4.07371, 3.0471 )
[node name="Bullet" type="RigidBody2D"]
gravity_scale = 0.0
linear_velocity = Vector2( 200, 0 )
linear_damp = 0.0
script = ExtResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )
[node name="Collisiion" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
position = Vector2( 0.471259, 0.0496063 )
scale = Vector2( 0.456811, 0.394803 )
[node name="LaserSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 3 )
autoplay = true
[connection signal="body_entered" from="." to="." method="_on_Bullet_body_entered"]
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]