It's Cow Game! Version 2.04!

This commit is contained in:
PajamaBee 2024-09-19 23:06:51 -05:00
commit a9e1ed9ddd
3148 changed files with 95332 additions and 0 deletions

View file

@ -0,0 +1,23 @@
extends PanelContainer
var showTime = 2.5
var totalFadeTime = 0.65
var fadeTimer = 0.65
func _process(delta):
if showTime <= 0:
fadeTimer -= delta
modulate.a = fadeTimer/totalFadeTime
if fadeTimer <= 0:
MessageManager.item_popup_done()
queue_free()
else:
showTime -= delta
func set_item(item):
%ItemSprite.texture = item.get_sprite()
%Message.text = "You got a " + item.itemName

View file

@ -0,0 +1,66 @@
[gd_scene load_steps=4 format=3 uid="uid://np6lbq86x6hd"]
[ext_resource type="Texture2D" uid="uid://c3m2e2k7pa3al" path="res://Items/Foods/Fruits/Sprites/Apple.png" id="1_m6p5t"]
[ext_resource type="Script" path="res://UI/EventPopups/ItemPickupPopup.gd" id="1_utng7"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nmmge"]
bg_color = Color(0.596078, 0.721569, 0.929412, 1)
border_width_left = 6
border_width_top = 6
border_width_right = 6
border_width_bottom = 6
border_color = Color(0, 0, 0, 1)
[node name="ItemPickupPopup" type="PanelContainer"]
process_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 309.0
offset_top = 23.0
offset_right = -296.0
offset_bottom = -514.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_nmmge")
script = ExtResource("1_utng7")
[node name="HSplitContainer" type="HSplitContainer" parent="."]
layout_mode = 2
collapsed = true
dragger_visibility = 2
[node name="ItemSprite" type="TextureRect" parent="HSplitContainer"]
unique_name_in_owner = true
layout_mode = 2
texture = ExtResource("1_m6p5t")
expand_mode = 2
stretch_mode = 3
[node name="VBoxContainer" type="VBoxContainer" parent="HSplitContainer"]
layout_mode = 2
theme_override_constants/separation = 0
[node name="Label" type="Label" parent="HSplitContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_constants/line_spacing = 0
theme_override_font_sizes/font_size = 19
text = "Item Get!"
horizontal_alignment = 1
vertical_alignment = 2
[node name="Message" type="Label" parent="HSplitContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 2
theme_override_colors/font_color = Color(0.831373, 0, 0.498039, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 0
theme_override_constants/line_spacing = 0
theme_override_font_sizes/font_size = 18
text = "You got a Cucumber"
horizontal_alignment = 1
autowrap_mode = 2

View file

@ -0,0 +1,41 @@
extends PanelContainer
var showTime = 3
var totalFadeTime = 1
var fadeTimer = 1
var maxLevelPopup = false
var secretSkillPopup = false
func _process(delta):
if showTime <= 0:
fadeTimer -= delta
modulate.a = fadeTimer/totalFadeTime
if fadeTimer <= 0:
MessageManager.levelup_popup_done()
queue_free()
else:
showTime -= delta
func secret_skill(skill):
%SkillIcon.texture = skill.get_icon()
%SkillName.text = "You have unlocked the Secret Skill"
%Level.text = skill.skillName + "!"
secretSkillPopup = true
showTime = 10
func max_level():
%SkillIcon.texture = load("res://UI/MenuBar/Icons/skillsIcon.png")
%SkillName.text = "Your skills have all increased to the"
%Level.text = "MAXIMUM LEVEL!!!"
maxLevelPopup = true
showTime = 10
func set_skill(skill):
%SkillIcon.texture = skill.get_icon()
%SkillName.text = "Your " + skill.skillName + " increased to"
%Level.text = "Level " + str(skill.currentLevel)

View file

@ -0,0 +1,88 @@
[gd_scene load_steps=4 format=3 uid="uid://qynm4xskjj5x"]
[ext_resource type="Texture2D" uid="uid://d30v7gk31mcms" path="res://Skills/Scavenging/scavengingIcon2.png" id="1_2rwic"]
[ext_resource type="Script" path="res://UI/EventPopups/levelup_popup.gd" id="1_nau6t"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_wblss"]
[node name="LevelupPopup" type="PanelContainer"]
process_mode = 3
anchors_preset = 10
anchor_right = 1.0
offset_left = 1.0
offset_top = 4.0
offset_right = 1.0
offset_bottom = 331.0
grow_horizontal = 2
size_flags_horizontal = 3
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBoxEmpty_wblss")
script = ExtResource("1_nau6t")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 2
size_flags_horizontal = 6
mouse_filter = 2
theme_override_constants/separation = -15
[node name="SkillIcon" type="TextureRect" parent="VBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(100, 100)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
mouse_filter = 2
texture = ExtResource("1_2rwic")
expand_mode = 5
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer"]
layout_mode = 2
theme_override_constants/separation = -6
[node name="Label" type="Label" parent="VBoxContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 1
theme_override_colors/font_color = Color(0, 0.862745, 0, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 20
theme_override_font_sizes/font_size = 69
text = "Level Up!"
horizontal_alignment = 1
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/VBoxContainer"]
layout_mode = 2
mouse_filter = 2
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
mouse_filter = 2
theme_override_constants/separation = 0
alignment = 1
[node name="SkillName" type="Label" parent="VBoxContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 2
theme_override_colors/font_color = Color(0.831373, 0, 0.498039, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 7
theme_override_constants/line_spacing = 0
theme_override_font_sizes/font_size = 27
text = "Your Juice Drinking increased to "
horizontal_alignment = 1
vertical_alignment = 2
[node name="Level" type="Label" parent="VBoxContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 2
theme_override_colors/font_color = Color(0.831373, 0, 0.498039, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 19
theme_override_constants/line_spacing = 0
theme_override_font_sizes/font_size = 48
text = "16"
horizontal_alignment = 1