Marisa bullets

This commit is contained in:
Marco 2025-02-15 14:33:44 +01:00
commit f2e6025b35
17 changed files with 227 additions and 6 deletions

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=13 format=3 uid="uid://c5fiv1nioghfb"]
[gd_scene load_steps=14 format=3 uid="uid://c5fiv1nioghfb"]
[ext_resource type="Script" path="res://Scripts/Actors/Boss.cs" id="1_4dxms"]
[ext_resource type="Resource" uid="uid://da1vjfavqs7u2" path="res://Resources/BossPhases/Marisa/marisa_ns1.tres" id="2_q4m3q"]
[ext_resource type="Texture2D" uid="uid://ch72faq5f0xqr" path="res://Sprites/Actors/Marisa_boss.png" id="4_jniuv"]
[ext_resource type="PackedScene" uid="uid://bwlstkdibs7oc" path="res://Scenes/HUD/BossHud.tscn" id="6_r0018"]
[ext_resource type="Texture2D" uid="uid://csuprfskdo1qp" path="res://Sprites/Portraits/Rumia.png" id="7_h84or"]
@ -26,7 +27,7 @@ collision_layer = 16
collision_mask = 9
script = ExtResource("1_4dxms")
BossName = "Marisa"
Phases = Array[Resource]([])
Phases = Array[Resource]([ExtResource("2_q4m3q")])
BossHudPrefab = ExtResource("6_r0018")
_bossPortraitTexture = ExtResource("7_h84or")
Health = 200.0

View file

@ -0,0 +1,29 @@
[gd_scene load_steps=4 format=3 uid="uid://c034favdy56p0"]
[ext_resource type="Script" path="res://Scripts/Bullet.cs" id="1_l1hs7"]
[ext_resource type="Texture2D" uid="uid://bqunl602ko6b7" path="res://Sprites/Bullets/start_bullet_yellow_small.png" id="2_wvl35"]
[sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"]
radius = 2.23607
[node name="Bullet" type="Area2D" groups=["bullets"]]
collision_layer = 128
collision_mask = 71
script = ExtResource("1_l1hs7")
Speed = 200.0
metadata/_edit_group_ = true
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("2_wvl35")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_jxptd")
[node name="Node2D" type="Node2D" parent="."]
editor_description = "Player Bullet"
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[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"]

View file

@ -163,8 +163,9 @@ position = Vector2(-565, -399)
[node name="Marisa" parent="Factory Tilemaps/Debug Room" instance=ExtResource("50_mp5ma")]
position = Vector2(-615, -565)
[node name="ControlPad" parent="Factory Tilemaps/Debug Room" instance=ExtResource("12_hfkf1")]
[node name="ControlPad" parent="Factory Tilemaps/Debug Room" node_paths=PackedStringArray("Target") instance=ExtResource("12_hfkf1")]
position = Vector2(-666, -491)
Target = NodePath("../Marisa")
[node name="Label2" type="Label" parent="Factory Tilemaps/Debug Room"]
offset_left = -687.0