Improvements

This commit is contained in:
MaddoScientisto 2025-03-22 15:37:37 +01:00
commit 39183aa83f
14 changed files with 311 additions and 15 deletions

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=20 format=3 uid="uid://b23lyiq42kvrr"]
[gd_scene load_steps=47 format=3 uid="uid://b23lyiq42kvrr"]
[ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_gvb0k"]
[ext_resource type="Texture2D" uid="uid://4dfuib4wce7n" path="res://Sprites/Bullets/Nuclear_Bullet.png" id="2_oarhb"]
[ext_resource type="Texture2D" uid="uid://2patpgtpyg5q" path="res://Sprites/Bullets/Nuclear_Bullet_2.png" id="3_uqai3"]
[sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"]
radius = 2.23607
@ -119,6 +120,189 @@ animations = [{
"speed": 8.0
}]
[sub_resource type="AtlasTexture" id="AtlasTexture_e6wo0"]
atlas = ExtResource("3_uqai3")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_j7bw2"]
atlas = ExtResource("3_uqai3")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_axwxo"]
atlas = ExtResource("3_uqai3")
region = Rect2(32, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_5w761"]
atlas = ExtResource("3_uqai3")
region = Rect2(48, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_u3jbk"]
atlas = ExtResource("3_uqai3")
region = Rect2(64, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_1oxk1"]
atlas = ExtResource("3_uqai3")
region = Rect2(80, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_excmm"]
atlas = ExtResource("3_uqai3")
region = Rect2(96, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_k4xbf"]
atlas = ExtResource("3_uqai3")
region = Rect2(112, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_mtvly"]
atlas = ExtResource("3_uqai3")
region = Rect2(128, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ukkr3"]
atlas = ExtResource("3_uqai3")
region = Rect2(144, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_madus"]
atlas = ExtResource("3_uqai3")
region = Rect2(160, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_loaei"]
atlas = ExtResource("3_uqai3")
region = Rect2(176, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_o5c1d"]
atlas = ExtResource("3_uqai3")
region = Rect2(192, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_qxwoj"]
atlas = ExtResource("3_uqai3")
region = Rect2(208, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ady1y"]
atlas = ExtResource("3_uqai3")
region = Rect2(224, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_f25db"]
atlas = ExtResource("3_uqai3")
region = Rect2(240, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ly6cl"]
atlas = ExtResource("3_uqai3")
region = Rect2(256, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_57th7"]
atlas = ExtResource("3_uqai3")
region = Rect2(272, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_t7evl"]
atlas = ExtResource("3_uqai3")
region = Rect2(288, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_see74"]
atlas = ExtResource("3_uqai3")
region = Rect2(304, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_x1rk5"]
atlas = ExtResource("3_uqai3")
region = Rect2(320, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_wfwnd"]
atlas = ExtResource("3_uqai3")
region = Rect2(336, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_h7bub"]
atlas = ExtResource("3_uqai3")
region = Rect2(352, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_2oqg6"]
atlas = ExtResource("3_uqai3")
region = Rect2(368, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_hebgw"]
atlas = ExtResource("3_uqai3")
region = Rect2(384, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_dpaf6"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_e6wo0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_j7bw2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_axwxo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5w761")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_u3jbk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1oxk1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_excmm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_k4xbf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mtvly")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ukkr3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_madus")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_loaei")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_o5c1d")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qxwoj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ady1y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f25db")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ly6cl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_57th7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t7evl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_see74")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_x1rk5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wfwnd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_h7bub")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2oqg6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hebgw")
}],
"loop": false,
"name": &"default",
"speed": 5.0
}]
[node name="Bullet" type="Area2D" groups=["bullets"]]
collision_layer = 8
collision_mask = 85
@ -135,8 +319,15 @@ editor_description = "Player Bullet"
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
visible = false
sprite_frames = SubResource("SpriteFrames_e6wo0")
[node name="AnimatedSprite2D2" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_dpaf6")
autoplay = "default"
frame = 24
frame_progress = 1.0
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]