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: 1.7 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://mxcshk4fpxdo"
path="res://.godot/imported/FlappyCow.png-c0f204538b2c327d1cedc566ec302483.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Arcade/Machines/FlappyCow/FlappyCow.png"
dest_files=["res://.godot/imported/FlappyCow.png-c0f204538b2c327d1cedc566ec302483.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,29 @@
extends Interaction
func _ready():
add_action("Play", play_game)
var nestedGameInstance
func play_game():
if !get_node("/root/MainGame/CanvasLayer/MenuBar").visible:
return
get_node("/root/MainGame/CanvasLayer/MessageZone").visible = false
get_node("/root/MainGame/CanvasLayer/MenuBar").visible = false
get_node("/root/MainGame/CanvasLayer/MinimizeMessageZoneButton").visible = false
var nestedGameScene = preload("res://MiniGames/FlappyCow/World/World.tscn")
nestedGameInstance = nestedGameScene.instantiate()
find_parent("MainGame").add_child(nestedGameInstance)
nestedGameInstance.get_node("FlappyCow").get_node("Camera2D").make_current()
#get_tree().paused = true
# minigame just breaks if you pause but the otherone doesnt idk why
func test_game(): #for testing minigames before they get placed in the world
get_node("/root/MainGame/CanvasLayer/MessageZone").visible = false
var nestedGameScene = preload("res://MiniGames/RingToss/ringtoss_scene.tscn")
nestedGameInstance = nestedGameScene.instantiate()
find_parent("MainGame").add_child(nestedGameInstance)
nestedGameInstance.get_node("RTcam").make_current()
get_tree().paused = true

View file

@ -0,0 +1,48 @@
[gd_scene load_steps=8 format=3 uid="uid://tsgpfsfkjgbi"]
[ext_resource type="PackedScene" uid="uid://cujx1a8vwxsj8" path="res://Objects/world_object.tscn" id="1_81upv"]
[ext_resource type="Texture2D" uid="uid://mxcshk4fpxdo" path="res://Objects/Arcade/Machines/FlappyCow/FlappyCow.png" id="2_3r1fd"]
[ext_resource type="Script" path="res://Objects/Arcade/Machines/FlappyCow/FlappyCowMachine.gd" id="2_q8uyg"]
[ext_resource type="PackedScene" uid="uid://bqibe7ha6r5ls" path="res://Interactions/Interactable/interactable.tscn" id="3_4l4tm"]
[ext_resource type="PackedScene" uid="uid://c5ded8kcouyci" path="res://Interactions/Interactable/interaction.tscn" id="4_jswtk"]
[sub_resource type="SpriteFrames" id="SpriteFrames_6aiyi"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_3r1fd")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7pjji"]
size = Vector2(58, 104)
[node name="FlappyCowMachine" instance=ExtResource("1_81upv")]
[node name="AnimatedSprite2D" parent="." index="0"]
sprite_frames = SubResource("SpriteFrames_6aiyi")
[node name="CollisionPolygon2D" parent="StaticBody2D" index="0"]
polygon = PackedVector2Array(-35, 0, 35, 0, 36, 79, -35, 79)
[node name="Interactable" parent="." index="2" instance=ExtResource("3_4l4tm")]
[node name="Panel" parent="Interactable" index="1"]
offset_left = -36.0
offset_top = -81.0
offset_right = 36.0
offset_bottom = 80.0
[node name="Interaction" parent="." index="3" instance=ExtResource("4_jswtk")]
script = ExtResource("2_q8uyg")
[node name="CollisionShape2D" parent="Interaction/InteractionArea" index="0"]
position = Vector2(1, 37)
shape = SubResource("RectangleShape2D_7pjji")
[editable path="Interactable"]
[editable path="Interactable/ActionMenu"]
[editable path="Interaction"]