diff options
author | Zoey Kitt <zoey.kitt@outlook.com> | 2024-11-15 18:20:38 -0600 |
---|---|---|
committer | Zoey Kitt <zoey.kitt@outlook.com> | 2024-11-15 18:20:38 -0600 |
commit | 4fbea4b8e57ae067f341207c0ef869c7b2b54524 (patch) | |
tree | ef23a13b7e16a6912e5fbebacf7a584c21180ed4 | |
parent | 61cbdc2083ee6637a9f862d376ba049e6e633afb (diff) |
Ok I'm satisfied, time to clean up
-rw-r--r-- | scenes/main.gd | 11 | ||||
-rw-r--r-- | scenes/main.tscn | 14 |
2 files changed, 22 insertions, 3 deletions
diff --git a/scenes/main.gd b/scenes/main.gd new file mode 100644 index 0000000..32db421 --- /dev/null +++ b/scenes/main.gd @@ -0,0 +1,11 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + print(DisplayServer.screen_get_size()) + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass diff --git a/scenes/main.tscn b/scenes/main.tscn index 8a69639..c21bfa1 100644 --- a/scenes/main.tscn +++ b/scenes/main.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=5 format=3 uid="uid://d06d1vihf2oqp"] +[gd_scene load_steps=6 format=3 uid="uid://d06d1vihf2oqp"] [ext_resource type="Texture2D" uid="uid://b03ygtrwha22g" path="res://taytay/IMG_5199.jpeg" id="1_o2s48"] +[ext_resource type="Script" path="res://scenes/main.gd" id="1_y7a0r"] [ext_resource type="PackedScene" uid="uid://baukkysebggup" path="res://scenes/window_mvp.tscn" id="2_ls66h"] [ext_resource type="PackedScene" uid="uid://bpf7k2l4n4uph" path="res://scenes/window_mvp2.tscn" id="3_gubgd"] @@ -8,6 +9,7 @@ viewport_path = NodePath("Window/SubViewport") [node name="Node2D" type="Node2D"] +script = ExtResource("1_y7a0r") [node name="Sprite2D" type="Sprite2D" parent="."] position = Vector2(636.307, 381.672) @@ -16,9 +18,11 @@ texture = ExtResource("1_o2s48") [node name="Window" type="Window" parent="."] title = "hiiiii" -position = Vector2i(796, 474) -size = Vector2i(690, 670) +position = Vector2i(1710, 1112) +size = Vector2i(1280, 720) +content_scale_size = Vector2i(1280, 720) content_scale_mode = 1 +content_scale_aspect = 1 [node name="Sprite2D" type="Sprite2D" parent="Window"] position = Vector2(57.35, 243.52) @@ -27,5 +31,9 @@ texture = SubResource("ViewportTexture_fjbd8") [node name="SubViewport" type="SubViewport" parent="Window"] [node name="WindowMvp" parent="Window/SubViewport" instance=ExtResource("2_ls66h")] +visible = false + +[node name="WindowMvp" parent="Window" instance=ExtResource("2_ls66h")] [node name="WindowMvp2" parent="." instance=ExtResource("3_gubgd")] +position = Vector2i(0, 36) |