added entire game (cuz it didnt use git before)

This commit is contained in:
2025-10-18 19:43:41 +02:00
parent 4dd71382d7
commit 171ff78876
63 changed files with 2684 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
[gd_scene load_steps=5 format=3 uid="uid://bv6wpdjivdlf4"]
[ext_resource type="Texture2D" uid="uid://bwicnrb8alscg" path="res://assets/sprites/biscuit_o_tron.png" id="1_71t4g"]
[ext_resource type="Script" uid="uid://d2t5nkrsib24d" path="res://scripts/biscuit_o_tron.gd" id="1_a0ycn"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_a0ycn"]
size = Vector2(83, 150)
[sub_resource type="CircleShape2D" id="CircleShape2D_71t4g"]
radius = 26.172504
[node name="BiscuitOTron" type="StaticBody2D"]
script = ExtResource("1_a0ycn")
biscuit_increment = 0.15
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-39.5, 10)
shape = SubResource("RectangleShape2D_a0ycn")
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(0.359375, 0.359375)
texture = ExtResource("1_71t4g")
[node name="ProgressBar" type="ProgressBar" parent="."]
offset_left = -76.0
offset_top = -90.0
offset_right = 77.0
offset_bottom = -72.0
theme_override_font_sizes/font_size = 10
[node name="Trigger" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger"]
position = Vector2(42, 51)
shape = SubResource("CircleShape2D_71t4g")
[connection signal="body_entered" from="Trigger" to="." method="_on_trigger_body_entered"]
[connection signal="body_exited" from="Trigger" to="." method="_on_trigger_body_exited"]
+230
View File
@@ -0,0 +1,230 @@
[gd_scene load_steps=17 format=3 uid="uid://conq3w82acr56"]
[ext_resource type="Script" uid="uid://qtb3s2euymob" path="res://scripts/pig.gd" id="1_1u2wy"]
[ext_resource type="Texture2D" uid="uid://dkx5rhq6cd7fq" path="res://assets/sprites/pig.png" id="1_cdv7h"]
[ext_resource type="Texture2D" uid="uid://c273scpqwtvb6" path="res://assets/sprites/seagull_attack_0.png" id="3_vjcar"]
[ext_resource type="Texture2D" uid="uid://cad650jvyjm2b" path="res://assets/sprites/seagull_attack_1.png" id="4_3ly8g"]
[ext_resource type="Texture2D" uid="uid://cgrqjhigxfby" path="res://assets/sprites/seagull_fly_0.png" id="5_xx63w"]
[ext_resource type="Texture2D" uid="uid://dgvgknc7pbhwp" path="res://assets/sprites/seagull_fly_1.png" id="6_dq5nc"]
[sub_resource type="SpriteFrames" id="SpriteFrames_r0vjv"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_vjcar")
}, {
"duration": 1.0,
"texture": ExtResource("4_3ly8g")
}],
"loop": true,
"name": &"attack",
"speed": 6.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("5_xx63w")
}, {
"duration": 1.0,
"texture": ExtResource("6_dq5nc")
}],
"loop": true,
"name": &"fly",
"speed": 6.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_1u2wy"]
radius = 22.0
[sub_resource type="CircleShape2D" id="CircleShape2D_gbhn7"]
radius = 32.0
[sub_resource type="Animation" id="Animation_1u2wy"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("PigSprite:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("PigSprite:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-5, -8)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("PigSprite:scale:x")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0.313]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Seagull:scale:x")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0.31299996]
}
[sub_resource type="Animation" id="Animation_gbhn7"]
resource_name = "flip"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("PigSprite:scale:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.313, -0.313]
}
[sub_resource type="Animation" id="Animation_cdv7h"]
resource_name = "walk"
length = 0.4
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("PigSprite:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.3),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [0.0, -0.108210415, 0.108210415]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("PigSprite:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.1, 0.3),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(-2, -3), Vector2(2, -3)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_gbhn7"]
_data = {
&"RESET": SubResource("Animation_1u2wy"),
&"flip": SubResource("Animation_gbhn7"),
&"walk": SubResource("Animation_cdv7h")
}
[sub_resource type="Animation" id="Animation_3ly8g"]
resource_name = "flip"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Seagull:scale:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [0.31299996, -0.313]
}
[sub_resource type="Animation" id="Animation_vjcar"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Seagull:scale:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0.31299996]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_xx63w"]
_data = {
&"RESET": SubResource("Animation_vjcar"),
&"flip": SubResource("Animation_3ly8g")
}
[node name="Pig" type="CharacterBody2D"]
collision_layer = 3
collision_mask = 3
script = ExtResource("1_1u2wy")
min_state_dur = 3.0
max_state_dur = 10.0
min_time_till_attack = 10.0
max_time_till_attack = 90.0
min_attack_duration = 20.0
max_attack_duration = 50.0
walk_speed = 150.0
panic_speed = 250.0
seagull_speed = 400.0
[node name="PigSprite" type="Sprite2D" parent="."]
position = Vector2(-5, -8)
scale = Vector2(0.313, 0.313)
texture = ExtResource("1_cdv7h")
[node name="SeagullAttackPos" type="Marker2D" parent="PigSprite"]
position = Vector2(3, -85)
[node name="Seagull" type="AnimatedSprite2D" parent="."]
visible = false
position = Vector2(-4.061, -34.605)
scale = Vector2(0.31299996, 0.313)
sprite_frames = SubResource("SpriteFrames_r0vjv")
animation = &"fly"
[node name="Collision" type="CollisionShape2D" parent="."]
position = Vector2(-7, -6)
shape = SubResource("CircleShape2D_1u2wy")
[node name="FeedZone" type="Area2D" parent="."]
[node name="FeedCollision" type="CollisionShape2D" parent="FeedZone"]
position = Vector2(-7, -6)
shape = SubResource("CircleShape2D_gbhn7")
[node name="PigAnimations" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_gbhn7")
}
[node name="SeagullAnimations" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_xx63w")
}
[connection signal="body_entered" from="FeedZone" to="." method="_on_feed_zone_body_entered"]
+95
View File
@@ -0,0 +1,95 @@
[gd_scene load_steps=7 format=3 uid="uid://dvaagwge5g1g"]
[ext_resource type="Script" uid="uid://cknbo3ltp5mc3" path="res://scripts/player_character.gd" id="1_r4hof"]
[ext_resource type="Texture2D" uid="uid://lfoeatk81tam" path="res://assets/sprites/farmer.png" id="2_r4hof"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_r4hof"]
size = Vector2(40, 80)
[sub_resource type="Animation" id="Animation_r4hof"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0.31249997, 0.3125)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:scale:x")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0.313]
}
[sub_resource type="Animation" id="Animation_irlf7"]
resource_name = "flip"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:scale:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.313, -0.313]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_qgghw"]
_data = {
&"RESET": SubResource("Animation_r4hof"),
&"flip": SubResource("Animation_irlf7")
}
[node name="PlayerCharacter" type="CharacterBody2D"]
script = ExtResource("1_r4hof")
speed = 300.0
sprint_speed = 600.0
jump_power = 7.0
coyote_time = 0.2
jump_buffer_timer = 0.2
aerial_dash_count = 1
vel_multiplier_after_dash = 0.5
dash_speed = 1200.0
dash_dur = 0.2
dash_cd = 0.5
gravity = 14.0
terminal_vel = 1000.0
max_health = 100.0
starting_health = 50.0
iframe_dur = 0.5
camera_type = 2
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_r4hof")
[node name="Sprite" type="Sprite2D" parent="."]
scale = Vector2(0.31249997, 0.3125)
texture = ExtResource("2_r4hof")
[node name="BiscuitPos" type="Marker2D" parent="Sprite"]
position = Vector2(99.20001, -83.2)
scale = Vector2(3.2000003, 3.1999998)
[node name="Camera" type="Camera2D" parent="."]
position_smoothing_enabled = true
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../Sprite")
libraries = {
&"": SubResource("AnimationLibrary_qgghw")
}
+25
View File
@@ -0,0 +1,25 @@
[gd_scene load_steps=5 format=3 uid="uid://coowerg56exy7"]
[ext_resource type="Texture2D" uid="uid://cgrqjhigxfby" path="res://assets/sprites/seagull_fly_0.png" id="1_dr8jw"]
[ext_resource type="Texture2D" uid="uid://dgvgknc7pbhwp" path="res://assets/sprites/seagull_fly_1.png" id="2_cef41"]
[ext_resource type="Script" uid="uid://dms2mkhl6pbyo" path="res://scripts/seagull_particle.gd" id="3_cef41"]
[sub_resource type="SpriteFrames" id="SpriteFrames_1sxsl"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_dr8jw")
}, {
"duration": 1.0,
"texture": ExtResource("2_cef41")
}],
"loop": true,
"name": &"default",
"speed": 6.0
}]
[node name="SeagullParticle" type="AnimatedSprite2D"]
scale = Vector2(0.313, 0.313)
sprite_frames = SubResource("SpriteFrames_1sxsl")
script = ExtResource("3_cef41")
speed = 400.0