From 1eb53644a7b8e0808ec0c34ce3ea3c807ea3fc04 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 20 Nov 2022 04:06:56 +0100 Subject: [PATCH] Add background to win and lose scenes --- Objects/Lose.tscn | 11 +++++++---- Objects/Menu.tscn | 2 +- Objects/Win.tscn | 11 +++++++---- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Objects/Lose.tscn b/Objects/Lose.tscn index 6e5e321..c11558e 100644 --- a/Objects/Lose.tscn +++ b/Objects/Lose.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=5 format=2] [ext_resource path="res://Fonts/LiberationMono-Bold.ttf" type="DynamicFontData" id=1] [ext_resource path="res://Objects/ScrollingObjects/PlayButton.tscn" type="PackedScene" id=2] +[ext_resource path="res://Sprites/wall-clocks.png" type="Texture" id=3] [sub_resource type="DynamicFont" id=2] size = 80 @@ -11,9 +12,11 @@ font_data = ExtResource( 1 ) anchor_right = 1.0 anchor_bottom = 1.0 rect_pivot_offset = Vector2( -280, -360 ) -__meta__ = { -"_edit_use_anchors_": false -} + +[node name="Background" type="Sprite" parent="."] +modulate = Color( 0.101961, 0.0627451, 0.027451, 1 ) +position = Vector2( 640, 360 ) +texture = ExtResource( 3 ) [node name="Label" type="Label" parent="."] margin_right = 1280.0 diff --git a/Objects/Menu.tscn b/Objects/Menu.tscn index c579a91..f936d30 100644 --- a/Objects/Menu.tscn +++ b/Objects/Menu.tscn @@ -32,7 +32,7 @@ font_data = ExtResource( 1 ) anchor_right = 1.0 anchor_bottom = 1.0 -[node name="Wall-clocks" type="Sprite" parent="."] +[node name="Background" type="Sprite" parent="."] modulate = Color( 0.101961, 0.0627451, 0.027451, 1 ) position = Vector2( 640, 360 ) texture = ExtResource( 11 ) diff --git a/Objects/Win.tscn b/Objects/Win.tscn index ac92cfc..b7365ad 100644 --- a/Objects/Win.tscn +++ b/Objects/Win.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=6 format=2] +[gd_scene load_steps=7 format=2] [ext_resource path="res://Fonts/LiberationMono-Bold.ttf" type="DynamicFontData" id=1] [ext_resource path="res://Sprites/victory.png" type="Texture" id=2] +[ext_resource path="res://Sprites/wall-clocks.png" type="Texture" id=3] [sub_resource type="DynamicFont" id=1] size = 40 @@ -21,9 +22,11 @@ func _ready(): [node name="Control" type="Control"] anchor_right = 1.0 anchor_bottom = 1.0 -__meta__ = { -"_edit_use_anchors_": false -} + +[node name="Background" type="Sprite" parent="."] +modulate = Color( 0.101961, 0.0627451, 0.027451, 1 ) +position = Vector2( 640, 360 ) +texture = ExtResource( 3 ) [node name="TextureRect" type="TextureRect" parent="."] anchor_top = 1.0