diff options
author | Zoey Kitt <zoey.kitt@outlook.com> | 2024-11-16 12:07:31 -0600 |
---|---|---|
committer | Zoey Kitt <zoey.kitt@outlook.com> | 2024-11-16 12:07:31 -0600 |
commit | dd480f4e6513ba39c5e37b196d323a232f95fe66 (patch) | |
tree | 267bbdb7a878a378fdc89f3b10dd8f18749f7898 /scenes | |
parent | 4e03ecf7804083e21eb963c50d660221890028f6 (diff) |
Ads baby lessgo sell that ad space
Diffstat (limited to 'scenes')
-rw-r--r-- | scenes/main.tscn | 2 | ||||
-rw-r--r-- | scenes/microgames/ad/ad_window.gd | 7 | ||||
-rw-r--r-- | scenes/microgames/ad/ad_window.tscn | 98 |
3 files changed, 102 insertions, 5 deletions
diff --git a/scenes/main.tscn b/scenes/main.tscn index 32b0540..b45724f 100644 --- a/scenes/main.tscn +++ b/scenes/main.tscn @@ -18,7 +18,7 @@ offset_bottom = 25.0 text = "Net worth: $" [node name="Microgame spawn timer" type="Timer" parent="."] -wait_time = 10.0 +wait_time = 0.1 autostart = true [connection signal="timeout" from="Microgame spawn timer" to="." method="_on_microgame_spawn_timer_timeout"] diff --git a/scenes/microgames/ad/ad_window.gd b/scenes/microgames/ad/ad_window.gd index 639ecd4..e397532 100644 --- a/scenes/microgames/ad/ad_window.gd +++ b/scenes/microgames/ad/ad_window.gd @@ -6,9 +6,14 @@ extends "res://scenes/microgames/microgame_window.gd" # Called when the node enters the scene tree for the first time. func _ready() -> void: + # Choose a random ad + var all_ads := $"All ads" + var sprite := all_ads.get_children().pick_random() as Sprite2D + sprite.centered = false + sprite.reparent(self) + # Stretch the funny image to fit in the window var window_size = get_viewport().size - var sprite := $Sprite2D ## Scale!? sprite.scale = Vector2( float(window_size.x) / float(sprite.texture.get_width()), diff --git a/scenes/microgames/ad/ad_window.tscn b/scenes/microgames/ad/ad_window.tscn index 746c214..049e14c 100644 --- a/scenes/microgames/ad/ad_window.tscn +++ b/scenes/microgames/ad/ad_window.tscn @@ -1,14 +1,106 @@ -[gd_scene load_steps=4 format=3 uid="uid://ccbxoes40rtkj"] +[gd_scene load_steps=26 format=3 uid="uid://ccbxoes40rtkj"] [ext_resource type="PackedScene" uid="uid://b2awdq32lxnef" path="res://scenes/microgames/microgame_window.tscn" id="1_gtv65"] [ext_resource type="Script" path="res://scenes/microgames/ad/ad_window.gd" id="2_h3lwj"] [ext_resource type="Texture2D" uid="uid://cpmvcepbd43p4" path="res://scenes/microgames/ad/ad_images/metaverse.png" id="4_gakxr"] +[ext_resource type="Texture2D" uid="uid://crgngbaq68emm" path="res://scenes/microgames/ad/ad_images/crazy.png" id="4_jpo8s"] +[ext_resource type="Texture2D" uid="uid://1x58536bqluw" path="res://scenes/microgames/ad/ad_images/doctors_hate_him.png" id="5_r3noo"] +[ext_resource type="Texture2D" uid="uid://yvncfq33mbka" path="res://scenes/microgames/ad/ad_images/duke_men.png" id="6_to4cm"] +[ext_resource type="Texture2D" uid="uid://d4iw22pf5rct5" path="res://scenes/microgames/ad/ad_images/finite_footlong.png" id="6_w6mn3"] +[ext_resource type="Texture2D" uid="uid://cmye28advm3rr" path="res://scenes/microgames/ad/ad_images/fr.png" id="7_0om8h"] +[ext_resource type="Texture2D" uid="uid://cimgvrkkyn146" path="res://scenes/microgames/ad/ad_images/game.png" id="8_uduyj"] +[ext_resource type="Texture2D" uid="uid://n8uand58fpuf" path="res://scenes/microgames/ad/ad_images/loggle.png" id="9_ya2d7"] +[ext_resource type="Texture2D" uid="uid://dkgt25p1138xy" path="res://scenes/microgames/ad/ad_images/million_dollar_homepage.png" id="11_4f0ep"] +[ext_resource type="Texture2D" uid="uid://btjn43fq0whvs" path="res://scenes/microgames/ad/ad_images/mr_l_my_beloved.png" id="12_g5l0v"] +[ext_resource type="Texture2D" uid="uid://b1bmygi4qjkr2" path="res://scenes/microgames/ad/ad_images/n.png" id="13_b17kx"] +[ext_resource type="Texture2D" uid="uid://bp8kwnxijwvyx" path="res://scenes/microgames/ad/ad_images/real_footlong.png" id="14_y8aav"] +[ext_resource type="Texture2D" uid="uid://bxjvmvvgyr4q3" path="res://scenes/microgames/ad/ad_images/rob.png" id="15_f847u"] +[ext_resource type="Texture2D" uid="uid://ctwutaoc0orwe" path="res://scenes/microgames/ad/ad_images/schulich.png" id="16_oluhh"] +[ext_resource type="Texture2D" uid="uid://dr71igsh3p71g" path="res://scenes/microgames/ad/ad_images/singles.png" id="17_364ww"] +[ext_resource type="Texture2D" uid="uid://bdp30axx4kd4" path="res://scenes/microgames/ad/ad_images/sus.png" id="18_ev2ei"] +[ext_resource type="Texture2D" uid="uid://bo7o0nrkr2iek" path="res://scenes/microgames/ad/ad_images/tesseract.png" id="19_pmqy6"] +[ext_resource type="Texture2D" uid="uid://cgwxaneussfep" path="res://scenes/microgames/ad/ad_images/timecube.png" id="20_83mw7"] +[ext_resource type="Texture2D" uid="uid://dmva1nhfw4uxw" path="res://scenes/microgames/ad/ad_images/uprising.png" id="21_tw20j"] +[ext_resource type="Texture2D" uid="uid://8x2s0o2gopog" path="res://scenes/microgames/ad/ad_images/urbad.png" id="22_5qyfd"] +[ext_resource type="Texture2D" uid="uid://bcneuyfyxtxr6" path="res://scenes/microgames/ad/ad_images/wizard.png" id="23_a6dig"] +[ext_resource type="Texture2D" uid="uid://diqk5cl2rehkg" path="res://scenes/microgames/ad/ad_images/wizard_sexy.png" id="24_ipkoa"] +[ext_resource type="Texture2D" uid="uid://x1m2v51rug76" path="res://scenes/microgames/ad/ad_images/wtf.png" id="25_o5yc3"] [node name="Window" instance=ExtResource("1_gtv65")] size = Vector2i(824, 604) content_scale_size = Vector2i(0, 0) script = ExtResource("2_h3lwj") -[node name="Sprite2D" type="Sprite2D" parent="." index="0"] -texture = ExtResource("4_gakxr") +[node name="All ads" type="Node2D" parent="." index="0"] +visible = false + +[node name="crazy" type="Sprite2D" parent="All ads" index="0"] +texture = ExtResource("4_jpo8s") +centered = false + +[node name="doctors_hate_him" type="Sprite2D" parent="All ads" index="1"] +texture = ExtResource("5_r3noo") centered = false + +[node name="duke_men" type="Sprite2D" parent="All ads" index="2"] +texture = ExtResource("6_to4cm") + +[node name="finite_footlong" type="Sprite2D" parent="All ads" index="3"] +texture = ExtResource("6_w6mn3") + +[node name="fr" type="Sprite2D" parent="All ads" index="4"] +texture = ExtResource("7_0om8h") + +[node name="game" type="Sprite2D" parent="All ads" index="5"] +texture = ExtResource("8_uduyj") + +[node name="loggle" type="Sprite2D" parent="All ads" index="6"] +texture = ExtResource("9_ya2d7") + +[node name="metaverse" type="Sprite2D" parent="All ads" index="7"] +texture = ExtResource("4_gakxr") + +[node name="million_dollar_homepage" type="Sprite2D" parent="All ads" index="8"] +texture = ExtResource("11_4f0ep") + +[node name="mr_l_my_beloved" type="Sprite2D" parent="All ads" index="9"] +texture = ExtResource("12_g5l0v") + +[node name="n" type="Sprite2D" parent="All ads" index="10"] +texture = ExtResource("13_b17kx") + +[node name="real_footlong" type="Sprite2D" parent="All ads" index="11"] +texture = ExtResource("14_y8aav") + +[node name="rob" type="Sprite2D" parent="All ads" index="12"] +texture = ExtResource("15_f847u") + +[node name="schulich" type="Sprite2D" parent="All ads" index="13"] +texture = ExtResource("16_oluhh") + +[node name="singles" type="Sprite2D" parent="All ads" index="14"] +texture = ExtResource("17_364ww") + +[node name="sus" type="Sprite2D" parent="All ads" index="15"] +texture = ExtResource("18_ev2ei") + +[node name="tesseract" type="Sprite2D" parent="All ads" index="16"] +texture = ExtResource("19_pmqy6") + +[node name="timecube" type="Sprite2D" parent="All ads" index="17"] +texture = ExtResource("20_83mw7") + +[node name="uprising" type="Sprite2D" parent="All ads" index="18"] +texture = ExtResource("21_tw20j") + +[node name="urbad" type="Sprite2D" parent="All ads" index="19"] +texture = ExtResource("22_5qyfd") + +[node name="wizard" type="Sprite2D" parent="All ads" index="20"] +texture = ExtResource("23_a6dig") + +[node name="wizard_sexy" type="Sprite2D" parent="All ads" index="21"] +texture = ExtResource("24_ipkoa") + +[node name="wtf" type="Sprite2D" parent="All ads" index="22"] +texture = ExtResource("25_o5yc3") |