73 lines
2.4 KiB
Plaintext
73 lines
2.4 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://dauqd5gexcbgf"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://pbmyh1qru7p" path="res://characters/happy_boo/happy_boo.tscn" id="1_4flbx"]
|
|
[ext_resource type="Script" uid="uid://drnl7altlij7f" path="res://scripts/player.gd" id="1_onrkg"]
|
|
[ext_resource type="PackedScene" uid="uid://brfhf78xw4dwm" path="res://scenes/gun.tscn" id="3_i3pqv"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_onrkg"]
|
|
radius = 30.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_i3pqv"]
|
|
radius = 39.3192
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_i3pqv"]
|
|
bg_color = Color(0.152941, 0.168627, 0.188235, 1)
|
|
border_color = Color(0, 0, 0, 1)
|
|
border_blend = true
|
|
corner_radius_top_left = 16
|
|
corner_radius_top_right = 16
|
|
corner_radius_bottom_right = 16
|
|
corner_radius_bottom_left = 16
|
|
expand_margin_left = 1.0
|
|
expand_margin_top = 1.0
|
|
expand_margin_right = 1.0
|
|
expand_margin_bottom = 1.0
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hqtel"]
|
|
bg_color = Color(0.623529, 0.866667, 0.317647, 1)
|
|
corner_radius_top_left = 16
|
|
corner_radius_top_right = 16
|
|
corner_radius_bottom_right = 16
|
|
corner_radius_bottom_left = 16
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
collision_mask = 7
|
|
script = ExtResource("1_onrkg")
|
|
|
|
[node name="HappyBoo" parent="." instance=ExtResource("1_4flbx")]
|
|
unique_name_in_owner = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_onrkg")
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
|
|
[node name="Gun" parent="." instance=ExtResource("3_i3pqv")]
|
|
unique_name_in_owner = true
|
|
|
|
[node name="HurtBox" type="Area2D" parent="."]
|
|
unique_name_in_owner = true
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="HurtBox"]
|
|
shape = SubResource("CircleShape2D_i3pqv")
|
|
debug_color = Color(0.932415, 0.10152, 0.591378, 0.42)
|
|
|
|
[node name="ProgressBar" type="ProgressBar" parent="."]
|
|
unique_name_in_owner = true
|
|
offset_left = -79.0
|
|
offset_top = -122.0
|
|
offset_right = 80.0
|
|
offset_bottom = -109.0
|
|
theme_override_styles/background = SubResource("StyleBoxFlat_i3pqv")
|
|
theme_override_styles/fill = SubResource("StyleBoxFlat_hqtel")
|
|
value = 100.0
|
|
show_percentage = false
|
|
|
|
[node name="AudioListener2D" type="AudioListener2D" parent="."]
|
|
current = true
|
|
|
|
[connection signal="level_up" from="." to="Gun" method="_on_player_level_up"]
|
|
[connection signal="shooted" from="Gun" to="." method="_on_gun_shooted"]
|