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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c0y6b5qweau3"
path="res://.godot/imported/Funnel.png-faf0b78fc26f1f5cb588d41c4b3a0f92.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Faire/Funnel/Funnel.png"
dest_files=["res://.godot/imported/Funnel.png-faf0b78fc26f1f5cb588d41c4b3a0f92.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View file

@ -0,0 +1,65 @@
[gd_scene load_steps=6 format=3 uid="uid://dsie414tpjaet"]
[ext_resource type="PackedScene" uid="uid://cujx1a8vwxsj8" path="res://Objects/world_object.tscn" id="1_l2gus"]
[ext_resource type="Texture2D" uid="uid://c0y6b5qweau3" path="res://Objects/Faire/Funnel/Funnel.png" id="2_v4twt"]
[ext_resource type="PackedScene" uid="uid://vmfybebq5yw8" path="res://Objects/Faire/Funnel/FunnelEntrance.tscn" id="3_vjdew"]
[sub_resource type="SpriteFrames" id="SpriteFrames_n8qco"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_v4twt")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_bbsdh"]
radius = 8.94427
[node name="Funnel" instance=ExtResource("1_l2gus")]
[node name="AnimatedSprite2D" parent="." index="0"]
position = Vector2(0, -40)
sprite_frames = SubResource("SpriteFrames_n8qco")
[node name="CollisionPolygon2D" parent="StaticBody2D" index="0"]
polygon = PackedVector2Array(-455, -1, 454, -3, 458, 69, 343, 68, 254, 60, 179, 71, 108, 61, -39, 64, -129, 67, -261, 62, -300, 72, -407, 70, -451, 72, -452, 30)
[node name="FunnelEntrance" parent="." index="2" instance=ExtResource("3_vjdew")]
position = Vector2(-351, 68)
exitPos = Vector2(400, 75)
[node name="Panel" parent="FunnelEntrance/Interactable" index="1"]
offset_left = -57.0
offset_top = -121.0
offset_right = 55.0
offset_bottom = 4.0
[node name="CollisionShape2D" parent="FunnelEntrance/Rideable/InteractionArea" index="0"]
position = Vector2(23, -50)
shape = SubResource("CircleShape2D_bbsdh")
[node name="FunnelEntrance2" parent="." index="3" instance=ExtResource("3_vjdew")]
position = Vector2(388, 66)
exitPos = Vector2(-400, 75)
[node name="Panel" parent="FunnelEntrance2/Interactable" index="1"]
offset_left = -57.0
offset_top = -121.0
offset_right = 55.0
offset_bottom = 4.0
[node name="CollisionShape2D" parent="FunnelEntrance2/Rideable/InteractionArea" index="0"]
position = Vector2(-21, -47)
shape = SubResource("CircleShape2D_bbsdh")
[editable path="FunnelEntrance"]
[editable path="FunnelEntrance/Interactable"]
[editable path="FunnelEntrance/Interactable/ActionMenu"]
[editable path="FunnelEntrance/Rideable"]
[editable path="FunnelEntrance2"]
[editable path="FunnelEntrance2/Interactable"]
[editable path="FunnelEntrance2/Interactable/ActionMenu"]
[editable path="FunnelEntrance2/Rideable"]

View file

@ -0,0 +1,47 @@
extends Node2D
@export var exitPos:Vector2
var riding = false
var waitTime = 4
var waitTimer = 4
var rideDelay = 0.5
var ticketItem = load("res://Items/Paper/FaireTicket.gd")
func _process(delta):
if riding:
waitTimer -= delta
if waitTimer <= 0:
leave()
if rideDelay >= 0:
rideDelay -= delta
func ride():
if riding or rideDelay > 0:
GameVariables.player.change_state("Idle")
return
if InventoryManager.spend_item(ticketItem.new()):
riding = true
GameVariables.player.visible = false
waitTimer = waitTime
else:
MessageManager.addMessage("YOU REQUIRE ONE (1) FAIRE TICKET TO ENJOY THE FUNNEL (FUN TUNNEL).", null, "System", Color.MIDNIGHT_BLUE,
true, false)
GameVariables.player.change_state("Idle")
func leave():
GameVariables.player.change_state("Idle")
GameVariables.player.visible = true
GameVariables.player.global_position = exitPos + get_parent().global_position
GameVariables.player.set_target_position(GameVariables.player.global_position)
LevelManager.get_skill("appreciating").experience_event("The Funnel", "rode", 300)
rideDelay = 0.5
riding = false
var timesRidden = SaveManager.get_value_from_section("rode", "The Funnel", 0)
if timesRidden >= 100:
AchievementManager.complete_achievement("Never Gets Old")

View file

@ -0,0 +1,12 @@
[gd_scene load_steps=4 format=3 uid="uid://vmfybebq5yw8"]
[ext_resource type="PackedScene" uid="uid://bqibe7ha6r5ls" path="res://Interactions/Interactable/interactable.tscn" id="1_4hcqt"]
[ext_resource type="Script" path="res://Objects/Faire/Funnel/FunnelEntrance.gd" id="1_rguhh"]
[ext_resource type="PackedScene" uid="uid://0adfy6rcgp1q" path="res://Interactions/Rideable/Rideable.tscn" id="2_c6ofh"]
[node name="FunnelEntrance" type="Node2D"]
script = ExtResource("1_rguhh")
[node name="Interactable" parent="." instance=ExtResource("1_4hcqt")]
[node name="Rideable" parent="." instance=ExtResource("2_c6ofh")]