My first 2D game in Godot 4.4

This commit is contained in:
2025-08-18 19:39:33 -04:00
commit 35600f72f9
83 changed files with 2512 additions and 0 deletions

63
player.tscn Normal file
View File

@@ -0,0 +1,63 @@
[gd_scene load_steps=8 format=3 uid="uid://4c77448gw84s"]
[ext_resource type="PackedScene" uid="uid://pbmyh1qru7p" path="res://characters/happy_boo/happy_boo.tscn" id="1_4flbx"]
[ext_resource type="Script" uid="uid://chd6vgc03ew6a" path="res://player.gd" id="1_onrkg"]
[ext_resource type="PackedScene" uid="uid://daagdf86t4bjn" path="res://gun.tscn" id="3_i3pqv"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_onrkg"]
radius = 30.0
height = 96.0
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_i3pqv"]
radius = 33.0
height = 104.0
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_i3pqv"]
bg_color = Color(0.162066, 0.162066, 0.162065, 1)
corner_radius_top_left = 6
corner_radius_top_right = 6
corner_radius_bottom_right = 6
corner_radius_bottom_left = 6
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hqtel"]
bg_color = Color(0.25499, 0.702712, 0.379593, 1)
corner_radius_top_left = 6
corner_radius_top_right = 6
corner_radius_bottom_right = 6
corner_radius_bottom_left = 6
[node name="Player" type="CharacterBody2D"]
script = ExtResource("1_onrkg")
[node name="HappyBoo" parent="." instance=ExtResource("1_4flbx")]
unique_name_in_owner = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-1, -37)
shape = SubResource("CapsuleShape2D_onrkg")
[node name="Camera2D" type="Camera2D" parent="."]
[node name="Gun" parent="." instance=ExtResource("3_i3pqv")]
position = Vector2(-1, -37)
[node name="Hitbox" type="Area2D" parent="."]
unique_name_in_owner = true
collision_layer = 0
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
position = Vector2(-1, -37)
shape = SubResource("CapsuleShape2D_i3pqv")
debug_color = Color(0.881613, 0.286763, 0.460338, 0.42)
[node name="ProgressBar" type="ProgressBar" parent="."]
unique_name_in_owner = true
offset_left = -53.0
offset_top = -115.0
offset_right = 55.0
offset_bottom = -107.0
theme_override_styles/background = SubResource("StyleBoxFlat_i3pqv")
theme_override_styles/fill = SubResource("StyleBoxFlat_hqtel")
value = 100.0
show_percentage = false