Diffstat (limited to 'bullets/scenes/EnemyLaser.tscn')
| -rw-r--r-- | bullets/scenes/EnemyLaser.tscn | 149 |
1 files changed, 149 insertions, 0 deletions
diff --git a/bullets/scenes/EnemyLaser.tscn b/bullets/scenes/EnemyLaser.tscn new file mode 100644 index 0000000..174b1b7 --- /dev/null +++ b/bullets/scenes/EnemyLaser.tscn @@ -0,0 +1,149 @@ +[gd_scene load_steps=25 format=2] + +[ext_resource path="res://sprites/enemylaser-sheet.png" type="Texture" id=1] +[ext_resource path="res://sounds/Laser.wav" type="AudioStream" id=2] +[ext_resource path="res://bullets/scripts/EnemyLaser.gd" type="Script" id=3] +[ext_resource path="res://sprites/blackandwhitefball-Sheet.png" type="Texture" id=4] + +[sub_resource type="AtlasTexture" id=29] +flags = 2 +atlas = ExtResource( 4 ) +region = Rect2( 0, 0, 19, 11 ) + +[sub_resource type="AtlasTexture" id=30] +flags = 2 +atlas = ExtResource( 4 ) +region = Rect2( 19, 0, 19, 11 ) + +[sub_resource type="AtlasTexture" id=31] +flags = 2 +atlas = ExtResource( 4 ) +region = Rect2( 38, 0, 19, 11 ) + +[sub_resource type="AtlasTexture" id=32] +flags = 2 +atlas = ExtResource( 4 ) +region = Rect2( 57, 0, 19, 11 ) + +[sub_resource type="AtlasTexture" id=16] +flags = 2 +atlas = ExtResource( 1 ) +region = Rect2( 0, 0, 16, 16 ) + +[sub_resource type="AtlasTexture" id=17] +flags = 2 +atlas = ExtResource( 1 ) +region = Rect2( 16, 0, 16, 16 ) + +[sub_resource type="AtlasTexture" id=18] +flags = 2 +atlas = ExtResource( 1 ) +region = Rect2( 32, 0, 16, 16 ) + +[sub_resource type="AtlasTexture" id=19] +flags = 2 +atlas = ExtResource( 1 ) +region = Rect2( 48, 0, 16, 16 ) + +[sub_resource type="AtlasTexture" id=20] +flags = 2 +atlas = ExtResource( 1 ) +region = Rect2( 64, 0, 16, 16 ) + +[sub_resource type="AtlasTexture" id=21] +flags = 2 +atlas = ExtResource( 1 ) +region = Rect2( 80, 0, 16, 16 ) + +[sub_resource type="AtlasTexture" id=22] +flags = 2 +atlas = ExtResource( 1 ) +region = Rect2( 96, 0, 16, 16 ) + +[sub_resource type="AtlasTexture" id=23] +flags = 2 +atlas = ExtResource( 1 ) +region = Rect2( 112, 0, 16, 16 ) + +[sub_resource type="AtlasTexture" id=24] +flags = 2 +atlas = ExtResource( 1 ) +region = Rect2( 128, 0, 16, 16 ) + +[sub_resource type="AtlasTexture" id=25] +flags = 2 +atlas = ExtResource( 1 ) +region = Rect2( 144, 0, 16, 16 ) + +[sub_resource type="AtlasTexture" id=26] +flags = 2 +atlas = ExtResource( 1 ) +region = Rect2( 160, 0, 16, 16 ) + +[sub_resource type="AtlasTexture" id=27] +flags = 2 +atlas = ExtResource( 1 ) +region = Rect2( 176, 0, 16, 16 ) + +[sub_resource type="AtlasTexture" id=28] +flags = 2 +atlas = ExtResource( 1 ) +region = Rect2( 192, 0, 16, 16 ) + +[sub_resource type="SpriteFrames" id=14] +resource_local_to_scene = true +animations = [ { +"frames": [ SubResource( 29 ), SubResource( 30 ), SubResource( 31 ), SubResource( 32 ) ], +"loop": true, +"name": "New Anim 1", +"speed": 15.0 +}, { +"frames": [ SubResource( 16 ), SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ), SubResource( 21 ), SubResource( 22 ), SubResource( 23 ), SubResource( 24 ), SubResource( 25 ), SubResource( 26 ), SubResource( 27 ), SubResource( 28 ) ], +"loop": true, +"name": "New Anim", +"speed": 25.0 +} ] + +[sub_resource type="RectangleShape2D" id=15] +resource_local_to_scene = true +extents = Vector2( 4, 6 ) + +[sub_resource type="OccluderPolygon2D" id=33] +polygon = PoolVector2Array( -6, -3, -6, 2, -3, 4, 4, 4, 4, -5, -4, -5 ) + +[node name="EnemyLaser" type="RigidBody2D" groups=["ebullet"]] +z_index = 1 +collision_layer = 192 +mass = 20.0 +gravity_scale = 0.0 +linear_damp = 0.0 +angular_damp = 0.0 +script = ExtResource( 3 ) +__meta__ = { +"_edit_group_": true +} + +[node name="AnimatedSprite" type="AnimatedSprite" parent="."] +frames = SubResource( 14 ) +animation = "New Anim" +frame = 3 +playing = true +flip_h = true + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2( 0, -1.19209e-07 ) +shape = SubResource( 15 ) + +[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."] +position = Vector2( 2.08616e-07, -2.38419e-07 ) +scale = Vector2( 0.4, 0.4 ) + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 2 ) +volume_db = -30.0 +autoplay = true + +[node name="LightOccluder2D" type="LightOccluder2D" parent="."] +occluder = SubResource( 33 ) + +[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"] |