From 31d7be95a48f3d36f2daac950dbc7cdaabeb5b86 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 21 Nov 2025 16:37:45 +0200 Subject: Add full screen map and pause --- map.tscn | 50 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 18 deletions(-) (limited to 'map.tscn') diff --git a/map.tscn b/map.tscn index 0d94613..2e98503 100644 --- a/map.tscn +++ b/map.tscn @@ -1,25 +1,26 @@ -[gd_scene load_steps=3 format=3 uid="uid://cseqghymhiyqo"] +[gd_scene load_steps=4 format=3 uid="uid://cseqghymhiyqo"] [ext_resource type="Script" uid="uid://dh0b4xa4f8h1o" path="res://map.gd" id="1_wijl4"] [ext_resource type="PackedScene" uid="uid://clm2kocuhjqbb" path="res://map_room.tscn" id="2_e0an3"] +[ext_resource type="Texture2D" uid="uid://c1h4ev7ma1neg" path="res://assets/kenney_1-bit-input-prompts-pixel-16/Tiles (White)/tile_0200.png" id="3_e0an3"] [node name="Map" type="CanvasLayer"] +process_mode = 3 script = ExtResource("1_wijl4") inactive_color = Color(0.747755, 0.7671235, 0.89114594, 1) active_color = Color(0, 0.77254903, 0.7764706, 1) [node name="Bg" type="ColorRect" parent="."] -offset_left = 3.0 -offset_top = 2.0 -offset_right = 29.0 -offset_bottom = 23.0 -color = Color(0, 0, 0, 0.5019608) +offset_right = 192.0 +offset_bottom = 108.0 +mouse_filter = 2 +color = Color(0, 0.019607844, 0.039215688, 0.81960785) [node name="RoomTest1" parent="." instance=ExtResource("2_e0an3")] -offset_left = 7.0 -offset_top = 6.0 -offset_right = 15.0 -offset_bottom = 11.0 +offset_left = 84.0 +offset_top = 48.0 +offset_right = 92.0 +offset_bottom = 53.0 [node name="Line2D" type="Line2D" parent="RoomTest1"] position = Vector2(7.275, 2.5) @@ -32,13 +33,26 @@ points = PackedVector2Array(0.7251587, 0.15686035, 0.7249985, -2.5) width = 1.0 [node name="RoomTest3" parent="." instance=ExtResource("2_e0an3")] -offset_left = 7.0 -offset_top = 13.0 -offset_right = 15.0 -offset_bottom = 18.0 +offset_left = 84.0 +offset_top = 55.0 +offset_right = 92.0 +offset_bottom = 60.0 [node name="RoomTest2" parent="." instance=ExtResource("2_e0an3")] -offset_left = 17.0 -offset_top = 6.0 -offset_right = 25.0 -offset_bottom = 11.0 +offset_left = 94.0 +offset_top = 48.0 +offset_right = 102.0 +offset_bottom = 53.0 + +[node name="UnpauseButton" type="Button" parent="."] +offset_left = 188.0 +offset_top = 105.0 +offset_right = 212.0 +offset_bottom = 129.0 +rotation = 3.1415927 +mouse_default_cursor_shape = 2 +action_mode = 0 +icon = ExtResource("3_e0an3") +flat = true + +[connection signal="pressed" from="UnpauseButton" to="." method="_on_unpause_button_pressed"] -- cgit v1.3