It's Cow Game! Version 2.04!
This commit is contained in:
commit
a9e1ed9ddd
3148 changed files with 95332 additions and 0 deletions
22
Objects/Faire/RingToss/RTInteract.gd
Normal file
22
Objects/Faire/RingToss/RTInteract.gd
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
extends Interaction
|
||||
|
||||
var nestedGameInstance
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
add_action("Play", play_game)
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
func play_game():
|
||||
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/RingToss/ringtoss_scene.tscn")
|
||||
nestedGameInstance = nestedGameScene.instantiate()
|
||||
find_parent("MainGame").add_child(nestedGameInstance)
|
||||
nestedGameInstance.get_node("RTcam").make_current()
|
||||
get_tree().paused = true
|
||||
BIN
Objects/Faire/RingToss/RTStand.png
Normal file
BIN
Objects/Faire/RingToss/RTStand.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
34
Objects/Faire/RingToss/RTStand.png.import
Normal file
34
Objects/Faire/RingToss/RTStand.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dvoprbysuapm2"
|
||||
path="res://.godot/imported/RTStand.png-b957cf0ebce3b1aeab5f453df90ca26c.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Objects/Faire/RingToss/RTStand.png"
|
||||
dest_files=["res://.godot/imported/RTStand.png-b957cf0ebce3b1aeab5f453df90ca26c.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
|
||||
80
Objects/Faire/RingToss/RingTossStand.tscn
Normal file
80
Objects/Faire/RingToss/RingTossStand.tscn
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://b4r7oeopwgj1u"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dvoprbysuapm2" path="res://Objects/Faire/RingToss/RTStand.png" id="1_x17rm"]
|
||||
[ext_resource type="PackedScene" uid="uid://bqibe7ha6r5ls" path="res://Interactions/Interactable/interactable.tscn" id="2_282py"]
|
||||
[ext_resource type="PackedScene" uid="uid://c5ded8kcouyci" path="res://Interactions/Interactable/interaction.tscn" id="3_7meh2"]
|
||||
[ext_resource type="Script" path="res://Objects/Faire/RingToss/RTInteract.gd" id="3_dvb2l"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_02ak2"]
|
||||
size = Vector2(169, 84)
|
||||
|
||||
[node name="RingTossStand" type="Node2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_x17rm")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="StaticBody2D"]
|
||||
polygon = PackedVector2Array(71, -70, 107, 65, -1, 70, -107, 65, -69, -70, 1, -73)
|
||||
|
||||
[node name="Interactable" parent="." instance=ExtResource("2_282py")]
|
||||
|
||||
[node name="138591" type="MarginContainer" parent="Interactable/ActionMenu/PopupMenu" index="3"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="138592" type="ScrollContainer" parent="Interactable/ActionMenu/PopupMenu/138591"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="138593" type="Control" parent="Interactable/ActionMenu/PopupMenu/138591/138592"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="138594" type="Timer" parent="Interactable/ActionMenu/PopupMenu" index="4"]
|
||||
wait_time = 0.3
|
||||
one_shot = true
|
||||
|
||||
[node name="138595" type="Timer" parent="Interactable/ActionMenu/PopupMenu" index="5"]
|
||||
wait_time = 0.3
|
||||
one_shot = true
|
||||
|
||||
[node name="121937" type="MarginContainer" parent="Interactable/ActionMenu/PopupMenu" index="6"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="121938" type="ScrollContainer" parent="Interactable/ActionMenu/PopupMenu/121937"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="121939" type="Control" parent="Interactable/ActionMenu/PopupMenu/121937/121938"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="121940" type="Timer" parent="Interactable/ActionMenu/PopupMenu" index="7"]
|
||||
wait_time = 0.3
|
||||
one_shot = true
|
||||
|
||||
[node name="121941" type="Timer" parent="Interactable/ActionMenu/PopupMenu" index="8"]
|
||||
wait_time = 0.3
|
||||
one_shot = true
|
||||
|
||||
[node name="Panel" parent="Interactable" index="1"]
|
||||
offset_left = -65.0
|
||||
offset_top = -74.0
|
||||
offset_right = 72.0
|
||||
offset_bottom = 76.0
|
||||
|
||||
[node name="Interaction" parent="." instance=ExtResource("3_7meh2")]
|
||||
script = ExtResource("3_dvb2l")
|
||||
|
||||
[node name="CollisionShape2D" parent="Interaction/InteractionArea" index="0"]
|
||||
position = Vector2(-2, 49)
|
||||
shape = SubResource("RectangleShape2D_02ak2")
|
||||
|
||||
[editable path="Interactable"]
|
||||
[editable path="Interactable/ActionMenu"]
|
||||
[editable path="Interaction"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue