This commit is contained in:
Zoey Kitt 2024-11-17 15:48:09 -06:00
parent 3f61a10428
commit 4fc8ff1304
2 changed files with 120 additions and 27 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=3 uid="uid://bbg7lnak6kup7"]
[gd_scene load_steps=14 format=3 uid="uid://bbg7lnak6kup7"]
[ext_resource type="Texture2D" uid="uid://b1t8f4nb5aahv" path="res://scenes/LegallyDistinctPaperclipAssistant/LDPA_angy.png" id="1_bqw21"]
[ext_resource type="Script" path="res://scenes/LegallyDistinctPaperclipAssistant/paperclip.gd" id="1_mbnc6"]
@ -83,6 +83,103 @@ tracks/4/keys = {
"values": ["And don't go bankrupt."]
}
[sub_resource type="Animation" id="Animation_xjkdx"]
resource_name = "ad_appear"
length = 3.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Label:visible_ratio")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 3),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 1.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:current_text")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": ["Our business is funded
by advertisements.
Yeah, investing in
fish doesn't really
bring in the big
bucks either."]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Label:text")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": ["Our business is funded
by advertisements.
Yeah, investing in
fish doesn't really
bring in the big
bucks either."]
}
[sub_resource type="Animation" id="Animation_squrw"]
resource_name = "ad_click"
length = 3.0
step = 1.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Label:visible_ratio")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 1.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Label:text")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": ["We pay the ad agency
per ad spot, per click,
and per second per ad
spot."]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:current_text")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 3),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": ["We pay the ad agency
per ad spot, per click,
and per second per ad
spot.", ""]
}
[sub_resource type="Animation" id="Animation_4fk4l"]
resource_name = "intro"
length = 20.0
@ -226,9 +323,9 @@ tracks/0/keys = {
"values": []
}
[sub_resource type="Animation" id="Animation_xjkdx"]
resource_name = "ad_appear"
length = 3.0
[sub_resource type="Animation" id="Animation_lw71a"]
resource_name = "templaaate"
step = 1.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
@ -236,52 +333,44 @@ tracks/0/path = NodePath("Label:visible_ratio")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 3),
"transitions": PackedFloat32Array(1, 1),
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0, 1.0]
"values": [0.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:current_text")
tracks/1/path = NodePath("Label:text")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"times": PackedFloat32Array(),
"transitions": PackedFloat32Array(),
"update": 1,
"values": ["Our business is funded
by advertisements.
Yeah, investing in
fish doesn't really
bring in the big
bucks either."]
"values": []
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Label:text")
tracks/2/path = NodePath(".:current_text")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"times": PackedFloat32Array(),
"transitions": PackedFloat32Array(),
"update": 1,
"values": ["Our business is funded
by advertisements.
Yeah, investing in
fish doesn't really
bring in the big
bucks either."]
"values": []
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_qflce"]
_data = {
"RESET": SubResource("Animation_npqqu"),
"ad_appear": SubResource("Animation_xjkdx"),
"ad_click": SubResource("Animation_squrw"),
"intro": SubResource("Animation_4fk4l"),
"intro2": SubResource("Animation_umwwq")
"intro2": SubResource("Animation_umwwq"),
"templaaate": SubResource("Animation_lw71a")
}
[node name="Window" type="Window"]

View file

@ -18,7 +18,7 @@ func _process(delta: float) -> void:
func _on_microgame_spawn_timer_timeout() -> void:
# Spawn a microgame window
var window_instance = null
if (randf() < -10.25):
if (randf() < 0.25):
var window_scene = preload("res://scenes/microgames/microgame_window.tscn")
window_instance = window_scene.instantiate()
@ -67,6 +67,10 @@ func _on_microgame_lose(window: MicrogameWindow):
print("noooooo")
$LosingSoundEffect.play()
$"Score window (real)/Score window".net_worth.timesEquals(0.8)
if window.get_children()[0] is Fishin:
pass
else:
$Clippette/AnimationPlayer.play("ad_click")
func _on_fishin_win(fish_caught: Fishin.FishType) -> void: