This commit is contained in:
Lucas 2024-07-28 22:24:01 +02:00
parent 5464d87d17
commit 44e659f454
5 changed files with 43 additions and 29 deletions

View file

@ -1,26 +1,34 @@
[gd_scene load_steps=2 format=3 uid="uid://bj15crtyjwq2"]
[gd_scene load_steps=3 format=3 uid="uid://bxin06eifwhb5"]
[ext_resource type="Texture2D" uid="uid://dx8jpmxtm2cdx" path="res://textures/pattern/Pattern_Forest.png" id="1_wdsuj"]
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[sub_resource type="GDScript" id="GDScript_7jd0b"]
script/source = "@tool
extends CanvasLayer
[node name="Panel" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
@export var Pattern :Texture2D:
set(new_pattern):
Pattern = new_pattern
$TextureRect.texture = Pattern
$TextureRect.queue_redraw()
@export var PatternColor :Color = Color.WHITE:
set(new_patternColor):
PatternColor = new_patternColor
$TextureRect.self_modulate = PatternColor
$TextureRect.queue_redraw()
@export var BGColor :Color = Color.GRAY:
set(new_BGColor):
BGColor = new_BGColor
$ColorRect.color = BGColor
$ColorRect.queue_redraw()
"
[node name="TextureRect" type="TextureRect" parent="Panel"]
top_level = true
layout_mode = 1
[node name="Background" type="CanvasLayer"]
layer = -100
script = SubResource("GDScript_7jd0b")
[node name="TextureRect" type="TextureRect" parent="."]
light_mask = 0
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
@ -28,3 +36,12 @@ grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("1_wdsuj")
stretch_mode = 1
[node name="ColorRect" type="ColorRect" parent="."]
z_index = -1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)

View file

@ -1,9 +1,11 @@
[gd_scene load_steps=21 format=3 uid="uid://0m1hk2nu4bps"]
[gd_scene load_steps=23 format=3 uid="uid://0m1hk2nu4bps"]
[ext_resource type="Script" path="res://core/player.gd" id="1_whhfc"]
[ext_resource type="Texture2D" uid="uid://5pmqr3y62guu" path="res://textures/player/currentCloth.tres" id="2_w1l4c"]
[ext_resource type="Texture2D" uid="uid://5qixrbrclydr" path="res://textures/player/currentHat.tres" id="3_ybl0v"]
[ext_resource type="Animation" uid="uid://bd0mi2x4pkf70" path="res://animations/player/Walk.res" id="4_56ghs"]
[ext_resource type="PackedScene" uid="uid://bxin06eifwhb5" path="res://core/Background.tscn" id="4_vpr5c"]
[ext_resource type="Texture2D" uid="uid://cr27nsk1jw2ks" path="res://textures/pattern/Pattern_swamp.png" id="5_moipb"]
[ext_resource type="Animation" uid="uid://b85dikp6ps8i2" path="res://animations/player/idle.res" id="5_uweie"]
[ext_resource type="Texture2D" uid="uid://sod0ms1cfkjf" path="res://textures/player/playerSkin_ref.png" id="6_3ryww"]
@ -509,7 +511,6 @@ position = Vector2(0, -75)
shape = SubResource("RectangleShape2D_kapu3")
[node name="Camera2D" type="Camera2D" parent="."]
enabled = false
zoom = Vector2(0.13, 0.13)
position_smoothing_enabled = true
position_smoothing_speed = 2.0
@ -522,6 +523,11 @@ drag_bottom_margin = 0.74
editor_draw_limits = true
editor_draw_drag_margin = true
[node name="Background" parent="Camera2D" instance=ExtResource("4_vpr5c")]
Pattern = ExtResource("5_moipb")
PatternColor = Color(1, 1, 1, 0.490196)
BGColor = Color(0.173374, 0.319037, 0.221103, 1)
[node name="AnimationPlayer" type="AnimationPlayer" parent="." groups=["Animation"]]
libraries = {
"": SubResource("AnimationLibrary_4k813")

View file

@ -234,7 +234,6 @@ texture = SubResource("AtlasTexture_vun1v")
offset = Vector2(-78.385, -130.2)
StickerShape = SubResource("CapsuleShape2D_b3366")
Position = Vector2(8.56, -52.395)
Rotation = 0.0
CollisionShape = SubResource("RectangleShape2D_4cdlc")
CollisionPosition = Vector2(7.915, -31.39)
metadata/tags = ["rock"]
@ -245,7 +244,6 @@ texture = SubResource("AtlasTexture_wpoj4")
offset = Vector2(-126.11, -220.56)
StickerShape = SubResource("CapsuleShape2D_bkpsv")
Position = Vector2(0, -89.77)
Rotation = 0.0
CollisionShape = SubResource("RectangleShape2D_hk5e3")
CollisionPosition = Vector2(0, -66.02)
metadata/tags = ["rock"]

View file

@ -55,7 +55,6 @@ texture = SubResource("AtlasTexture_2wdar")
centered = false
offset = Vector2(-161.055, -179.785)
script = SubResource("GDScript_uqtu8")
Rotation = Vector2(0, 0)
metadata/tags = ["sticker"]
[node name="Area2D" type="Area2D" parent="."]

View file

@ -20,12 +20,6 @@ config/windows_native_icon="res://extracted/Texture2D/Map.png"
[autoload]
DebugDraw="*res://core/debugDraw.tscn"
Background="*res://core/Background.tscn"
[display]
window/size/viewport_width=1920
window/size/viewport_height=1080
[editor_plugins]