Game #3: Space Shooter

This commit is contained in:
Felipe M 2021-01-23 20:20:30 +01:00
parent a00e9b59c9
commit f785a24c14
Signed by: fmartingr
GPG key ID: 716BC147715E716F
45 changed files with 927 additions and 0 deletions

View file

@ -0,0 +1,30 @@
[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"]