Compare commits
4 commits
04838a55c7
...
9e14cc915e
Author | SHA1 | Date | |
---|---|---|---|
9e14cc915e | |||
44e659f454 | |||
5464d87d17 | |||
0ff17ab486 |
11 changed files with 185 additions and 57 deletions
47
core/Background.tscn
Normal file
47
core/Background.tscn
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
[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"]
|
||||||
|
|
||||||
|
[sub_resource type="GDScript" id="GDScript_7jd0b"]
|
||||||
|
script/source = "@tool
|
||||||
|
extends CanvasLayer
|
||||||
|
|
||||||
|
@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="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
|
||||||
|
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)
|
|
@ -8,6 +8,7 @@ var hoveredObjects : Array
|
||||||
var hoveredObject
|
var hoveredObject
|
||||||
var hoveredSticker
|
var hoveredSticker
|
||||||
var grabbedSticker
|
var grabbedSticker
|
||||||
|
var grabbedStickerOffset
|
||||||
|
|
||||||
enum CURSOR_STATE {DEFAULT, CLICK, GRAB, GRABBED}
|
enum CURSOR_STATE {DEFAULT, CLICK, GRAB, GRABBED}
|
||||||
var currentCursorState:CURSOR_STATE = CURSOR_STATE.DEFAULT
|
var currentCursorState:CURSOR_STATE = CURSOR_STATE.DEFAULT
|
||||||
|
@ -28,6 +29,8 @@ func _process(_delta):
|
||||||
#endregion
|
#endregion
|
||||||
pointcast()
|
pointcast()
|
||||||
cursor_look()
|
cursor_look()
|
||||||
|
if (grabbedSticker):
|
||||||
|
grabbedSticker.position = grabbedStickerOffset+get_global_mouse_position()
|
||||||
|
|
||||||
|
|
||||||
func isSticker(selectedObject:Node):
|
func isSticker(selectedObject:Node):
|
||||||
|
@ -117,10 +120,15 @@ func _input(rawInputEvent:InputEvent):
|
||||||
grab_end()
|
grab_end()
|
||||||
|
|
||||||
func grab_start():
|
func grab_start():
|
||||||
if (hoveredSticker):
|
if (hoveredSticker and grabbedSticker == null):
|
||||||
grabbedSticker = hoveredSticker
|
grabbedSticker = hoveredSticker
|
||||||
|
|
||||||
print("Grabbed ", grabbedSticker)
|
print("Grabbed ", grabbedSticker)
|
||||||
|
grabbedStickerOffset = grabbedSticker.position - get_global_mouse_position()
|
||||||
|
print("offset =", grabbedStickerOffset, " Stickpos:",grabbedSticker.position,"-",get_global_mouse_position() )
|
||||||
|
if (grabbedSticker.has_method("on_grab")):
|
||||||
|
grabbedSticker.on_grab(grabbedStickerOffset)
|
||||||
|
|
||||||
func grab_end():
|
func grab_end():
|
||||||
grabbedSticker.on_released()
|
grabbedSticker.on_released()
|
||||||
|
|
||||||
|
|
|
@ -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="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://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="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="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="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"]
|
[ext_resource type="Texture2D" uid="uid://sod0ms1cfkjf" path="res://textures/player/playerSkin_ref.png" id="6_3ryww"]
|
||||||
|
|
||||||
|
@ -521,6 +523,11 @@ drag_bottom_margin = 0.74
|
||||||
editor_draw_limits = true
|
editor_draw_limits = true
|
||||||
editor_draw_drag_margin = 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"]]
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." groups=["Animation"]]
|
||||||
libraries = {
|
libraries = {
|
||||||
"": SubResource("AnimationLibrary_4k813")
|
"": SubResource("AnimationLibrary_4k813")
|
||||||
|
|
BIN
extracted/ref_map2.jpg
Normal file
BIN
extracted/ref_map2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 166 KiB |
34
extracted/ref_map2.jpg.import
Normal file
34
extracted/ref_map2.jpg.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bnmlngwnibfnj"
|
||||||
|
path="res://.godot/imported/ref_map2.jpg-807f9c02ab085b1234de1d6960418a29.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://extracted/ref_map2.jpg"
|
||||||
|
dest_files=["res://.godot/imported/ref_map2.jpg-807f9c02ab085b1234de1d6960418a29.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
BIN
extracted/ref_mapstart.jpg
Normal file
BIN
extracted/ref_mapstart.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 157 KiB |
34
extracted/ref_mapstart.jpg.import
Normal file
34
extracted/ref_mapstart.jpg.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bvthjtlkavu3n"
|
||||||
|
path="res://.godot/imported/ref_mapstart.jpg-daa3ad7fa8b31cae0a442dcd28e0b54e.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://extracted/ref_mapstart.jpg"
|
||||||
|
dest_files=["res://.godot/imported/ref_mapstart.jpg-daa3ad7fa8b31cae0a442dcd28e0b54e.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
100
maps/map1.tscn
100
maps/map1.tscn
|
@ -1,10 +1,9 @@
|
||||||
[gd_scene load_steps=33 format=3 uid="uid://wlqsvbqpcbh"]
|
[gd_scene load_steps=34 format=3 uid="uid://wlqsvbqpcbh"]
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://cacwy4tka88k1" path="res://maps/map1.tres" id="1_pt5vq"]
|
[ext_resource type="Texture2D" uid="uid://cacwy4tka88k1" path="res://maps/map1.tres" id="1_pt5vq"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cxharyv0ajr37" path="res://textures/atlas/DioramaEntrance_All_01_SPRT.png" id="2_n7y5f"]
|
[ext_resource type="Texture2D" uid="uid://cxharyv0ajr37" path="res://textures/atlas/DioramaEntrance_All_01_SPRT.png" id="2_n7y5f"]
|
||||||
[ext_resource type="Texture2D" uid="uid://c5bd2ta3esnib" path="res://extracted/4010-A Tiny Sticker Tale review pic 1.jpg" id="3_yh2wy"]
|
[ext_resource type="Texture2D" uid="uid://c5bd2ta3esnib" path="res://extracted/4010-A Tiny Sticker Tale review pic 1.jpg" id="3_yh2wy"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bddcriwo55x8k" path="res://prefab/prefab_woddenbridge.tscn" id="4_okpsn"]
|
[ext_resource type="PackedScene" uid="uid://bddcriwo55x8k" path="res://prefab/prefab_woddenbridge.tscn" id="4_okpsn"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dx8jpmxtm2cdx" path="res://textures/pattern/Pattern_Forest.png" id="5_i137q"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://cun14l52f477p" path="res://textures/atlas/Bushes_All_01_SPRT.png" id="5_xmosd"]
|
[ext_resource type="Texture2D" uid="uid://cun14l52f477p" path="res://textures/atlas/Bushes_All_01_SPRT.png" id="5_xmosd"]
|
||||||
[ext_resource type="PackedScene" uid="uid://domcpxdf6lqpb" path="res://prefab/free_sticker.tscn" id="6_3fkbm"]
|
[ext_resource type="PackedScene" uid="uid://domcpxdf6lqpb" path="res://prefab/free_sticker.tscn" id="6_3fkbm"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dggavne4ueche" path="res://extracted/Texture2D/Tree_Field_01_SPRT.png" id="7_gygvy"]
|
[ext_resource type="Texture2D" uid="uid://dggavne4ueche" path="res://extracted/Texture2D/Tree_Field_01_SPRT.png" id="7_gygvy"]
|
||||||
|
@ -25,6 +24,10 @@ region = Rect2(252, 16, 108, 256)
|
||||||
atlas = ExtResource("2_n7y5f")
|
atlas = ExtResource("2_n7y5f")
|
||||||
region = Rect2(12, 96, 216, 112)
|
region = Rect2(12, 96, 216, 112)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ex6vq"]
|
||||||
|
atlas = ExtResource("2_n7y5f")
|
||||||
|
region = Rect2(0, 16, 228, 80)
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_lfx7b"]
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_lfx7b"]
|
||||||
radius = 80.0
|
radius = 80.0
|
||||||
height = 254.0
|
height = 254.0
|
||||||
|
@ -64,7 +67,11 @@ atlas = ExtResource("10_jr64r")
|
||||||
region = Rect2(544, 32, 160, 192)
|
region = Rect2(544, 32, 160, 192)
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_tss3y"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_tss3y"]
|
||||||
size = Vector2(90.375, 25.5)
|
size = Vector2(127.875, 25.5)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4j533"]
|
||||||
|
atlas = ExtResource("10_jr64r")
|
||||||
|
region = Rect2(1356, 1216, 192, 80)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2qdgk"]
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2qdgk"]
|
||||||
atlas = ExtResource("11_0efxk")
|
atlas = ExtResource("11_0efxk")
|
||||||
|
@ -73,9 +80,9 @@ region = Rect2(1824, 480, 192, 160)
|
||||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_jw3i8"]
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_jw3i8"]
|
||||||
lifetime_randomness = 0.2
|
lifetime_randomness = 0.2
|
||||||
particle_flag_disable_z = true
|
particle_flag_disable_z = true
|
||||||
emission_shape_scale = Vector3(0.5, 1, 1)
|
emission_shape_scale = Vector3(2, 1, 1)
|
||||||
emission_shape = 1
|
emission_shape = 1
|
||||||
emission_sphere_radius = 60.0
|
emission_sphere_radius = 20.0
|
||||||
angle_min = -12.5
|
angle_min = -12.5
|
||||||
angle_max = 12.5
|
angle_max = 12.5
|
||||||
gravity = Vector3(0, -20, 0)
|
gravity = Vector3(0, -20, 0)
|
||||||
|
@ -92,44 +99,6 @@ z_as_relative = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
material = SubResource("ShaderMaterial_js06g")
|
material = SubResource("ShaderMaterial_js06g")
|
||||||
|
|
||||||
[node name="Container" type="Control" parent="."]
|
|
||||||
z_as_relative = false
|
|
||||||
custom_minimum_size = Vector2(1920, 1080)
|
|
||||||
layout_mode = 3
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
offset_left = -9512.0
|
|
||||||
offset_top = -5843.0
|
|
||||||
offset_right = 9057.0
|
|
||||||
offset_bottom = 6527.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
auto_translate = false
|
|
||||||
metadata/_edit_lock_ = true
|
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="Container"]
|
|
||||||
modulate = Color(0.49519, 0.69, 0.1587, 1)
|
|
||||||
light_mask = 0
|
|
||||||
z_index = -100
|
|
||||||
z_as_relative = false
|
|
||||||
texture_repeat = 2
|
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
offset_left = -15324.0
|
|
||||||
offset_top = -6851.0
|
|
||||||
offset_right = 10725.0
|
|
||||||
offset_bottom = 5048.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
scale = Vector2(15, 15)
|
|
||||||
auto_translate = false
|
|
||||||
texture = ExtResource("5_i137q")
|
|
||||||
stretch_mode = 1
|
|
||||||
metadata/_edit_lock_ = true
|
|
||||||
|
|
||||||
[node name="Floors05Sprt" type="Sprite2D" parent="."]
|
[node name="Floors05Sprt" type="Sprite2D" parent="."]
|
||||||
z_index = -10
|
z_index = -10
|
||||||
z_as_relative = false
|
z_as_relative = false
|
||||||
|
@ -165,9 +134,15 @@ position = Vector2(-0.333333, 457.667)
|
||||||
texture = SubResource("AtlasTexture_wi524")
|
texture = SubResource("AtlasTexture_wi524")
|
||||||
flip_h = true
|
flip_h = true
|
||||||
|
|
||||||
|
[node name="Door4" type="Sprite2D" parent="Floors05Sprt"]
|
||||||
|
position = Vector2(14.3333, -456.333)
|
||||||
|
texture = SubResource("AtlasTexture_ex6vq")
|
||||||
|
flip_h = true
|
||||||
|
|
||||||
[node name="WoodenBridge" parent="Floors05Sprt" instance=ExtResource("4_okpsn")]
|
[node name="WoodenBridge" parent="Floors05Sprt" instance=ExtResource("4_okpsn")]
|
||||||
position = Vector2(325.833, -87.5)
|
position = Vector2(325.833, -87.5)
|
||||||
scale = Vector2(0.95216, 0.95216)
|
scale = Vector2(0.95216, 0.95216)
|
||||||
|
metadata/Tags = ["bridge"]
|
||||||
|
|
||||||
[node name="4010-aTinyStickerTaleReviewPic1" type="Sprite2D" parent="."]
|
[node name="4010-aTinyStickerTaleReviewPic1" type="Sprite2D" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
|
@ -246,6 +221,7 @@ Rotation = 1.5
|
||||||
|
|
||||||
[node name="Bush11" parent="." instance=ExtResource("6_3fkbm")]
|
[node name="Bush11" parent="." instance=ExtResource("6_3fkbm")]
|
||||||
position = Vector2(2208, 2337)
|
position = Vector2(2208, 2337)
|
||||||
|
scale = Vector2(5, 5.195)
|
||||||
texture = SubResource("AtlasTexture_rn40i")
|
texture = SubResource("AtlasTexture_rn40i")
|
||||||
offset = Vector2(-108.615, -141.38)
|
offset = Vector2(-108.615, -141.38)
|
||||||
Shape = SubResource("CapsuleShape2D_b3366")
|
Shape = SubResource("CapsuleShape2D_b3366")
|
||||||
|
@ -260,15 +236,17 @@ StickerShape = SubResource("CapsuleShape2D_b3366")
|
||||||
Position = Vector2(8.56, -52.395)
|
Position = Vector2(8.56, -52.395)
|
||||||
CollisionShape = SubResource("RectangleShape2D_4cdlc")
|
CollisionShape = SubResource("RectangleShape2D_4cdlc")
|
||||||
CollisionPosition = Vector2(7.915, -31.39)
|
CollisionPosition = Vector2(7.915, -31.39)
|
||||||
|
metadata/tags = ["rock"]
|
||||||
|
|
||||||
[node name="Rock2" parent="." instance=ExtResource("9_nxjul")]
|
[node name="Rock2" parent="." instance=ExtResource("9_nxjul")]
|
||||||
position = Vector2(-2248, 1895)
|
position = Vector2(-2248, 1895)
|
||||||
texture = SubResource("AtlasTexture_wpoj4")
|
texture = SubResource("AtlasTexture_wpoj4")
|
||||||
offset = Vector2(-126.11, -220.56)
|
offset = Vector2(-126.11, -220.56)
|
||||||
StickerShape = SubResource("CapsuleShape2D_bkpsv")
|
StickerShape = SubResource("CapsuleShape2D_bkpsv")
|
||||||
Position = Vector2(0, -89.75)
|
Position = Vector2(0, -89.77)
|
||||||
CollisionShape = SubResource("RectangleShape2D_hk5e3")
|
CollisionShape = SubResource("RectangleShape2D_hk5e3")
|
||||||
CollisionPosition = Vector2(0, -66.02)
|
CollisionPosition = Vector2(0, -66.02)
|
||||||
|
metadata/tags = ["rock"]
|
||||||
|
|
||||||
[node name="Log" type="Sprite2D" parent="."]
|
[node name="Log" type="Sprite2D" parent="."]
|
||||||
position = Vector2(-1043, -170)
|
position = Vector2(-1043, -170)
|
||||||
|
@ -285,6 +263,21 @@ position = Vector2(3.75, -17.5)
|
||||||
shape = SubResource("RectangleShape2D_tss3y")
|
shape = SubResource("RectangleShape2D_tss3y")
|
||||||
debug_color = Color(0.999472, 0.00663362, 0.0810784, 0.42)
|
debug_color = Color(0.999472, 0.00663362, 0.0810784, 0.42)
|
||||||
|
|
||||||
|
[node name="WoodBarrer" type="Sprite2D" parent="."]
|
||||||
|
position = Vector2(1246, 2431)
|
||||||
|
scale = Vector2(6.5, 6.5)
|
||||||
|
texture = SubResource("AtlasTexture_4j533")
|
||||||
|
centered = false
|
||||||
|
offset = Vector2(-96.815, -74.27)
|
||||||
|
metadata/_edit_lock_ = true
|
||||||
|
|
||||||
|
[node name="StaticBody2D" type="StaticBody2D" parent="WoodBarrer"]
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="WoodBarrer/StaticBody2D"]
|
||||||
|
position = Vector2(3.75, -17.5)
|
||||||
|
shape = SubResource("RectangleShape2D_tss3y")
|
||||||
|
debug_color = Color(0.999472, 0.00663362, 0.0810784, 0.42)
|
||||||
|
|
||||||
[node name="Log3" type="Sprite2D" parent="."]
|
[node name="Log3" type="Sprite2D" parent="."]
|
||||||
position = Vector2(293, -810)
|
position = Vector2(293, -810)
|
||||||
scale = Vector2(4, 4)
|
scale = Vector2(4, 4)
|
||||||
|
@ -307,7 +300,7 @@ scale = Vector2(4, 4)
|
||||||
texture = SubResource("AtlasTexture_2qdgk")
|
texture = SubResource("AtlasTexture_2qdgk")
|
||||||
|
|
||||||
[node name="GPUParticles2D" type="GPUParticles2D" parent="FirePit"]
|
[node name="GPUParticles2D" type="GPUParticles2D" parent="FirePit"]
|
||||||
position = Vector2(-5.25, -17.75)
|
position = Vector2(-1.5, -18.25)
|
||||||
scale = Vector2(0.5, 0.5)
|
scale = Vector2(0.5, 0.5)
|
||||||
amount = 4
|
amount = 4
|
||||||
process_material = SubResource("ParticleProcessMaterial_jw3i8")
|
process_material = SubResource("ParticleProcessMaterial_jw3i8")
|
||||||
|
@ -318,21 +311,24 @@ visibility_rect = Rect2(-160, -160, 320, 320)
|
||||||
local_coords = true
|
local_coords = true
|
||||||
|
|
||||||
[node name="Sprite2D" type="Sprite2D" parent="FirePit"]
|
[node name="Sprite2D" type="Sprite2D" parent="FirePit"]
|
||||||
|
visible = false
|
||||||
position = Vector2(4.75, -2)
|
position = Vector2(4.75, -2)
|
||||||
scale = Vector2(0.7, 0.7)
|
scale = Vector2(0.7, 0.7)
|
||||||
texture = SubResource("AtlasTexture_c24s7")
|
texture = SubResource("AtlasTexture_c24s7")
|
||||||
centered = false
|
centered = false
|
||||||
offset = Vector2(-71.215, -125.04)
|
offset = Vector2(-71.215, -125.04)
|
||||||
|
|
||||||
[node name="PointLight2D" type="PointLight2D" parent="FirePit/Sprite2D"]
|
|
||||||
color = Color(1, 0.54902, 0.270588, 1)
|
|
||||||
energy = 1.2
|
|
||||||
shadow_enabled = true
|
|
||||||
texture = ExtResource("13_sm1ou")
|
|
||||||
texture_scale = 1.9
|
|
||||||
|
|
||||||
[node name="StaticBody2D" type="StaticBody2D" parent="FirePit"]
|
[node name="StaticBody2D" type="StaticBody2D" parent="FirePit"]
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="FirePit/StaticBody2D"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="FirePit/StaticBody2D"]
|
||||||
shape = SubResource("CircleShape2D_5wedp")
|
shape = SubResource("CircleShape2D_5wedp")
|
||||||
debug_color = Color(0.937527, 0.247798, 0.087146, 0.42)
|
debug_color = Color(0.937527, 0.247798, 0.087146, 0.42)
|
||||||
|
|
||||||
|
[node name="PointLight2D" type="PointLight2D" parent="FirePit"]
|
||||||
|
position = Vector2(4.75, -2)
|
||||||
|
scale = Vector2(0.7, 0.7)
|
||||||
|
color = Color(1, 0.54902, 0.270588, 1)
|
||||||
|
energy = 1.2
|
||||||
|
shadow_enabled = true
|
||||||
|
texture = ExtResource("13_sm1ou")
|
||||||
|
texture_scale = 1.9
|
||||||
|
|
|
@ -43,6 +43,9 @@ func on_hover():
|
||||||
func on_unhover():
|
func on_unhover():
|
||||||
material = null
|
material = null
|
||||||
queue_redraw()
|
queue_redraw()
|
||||||
|
|
||||||
|
func on_grab(_offset:Vector2=Vector2(0.0,0.0)):
|
||||||
|
pass
|
||||||
"
|
"
|
||||||
|
|
||||||
[node name="FreeSticker1" type="Sprite2D"]
|
[node name="FreeSticker1" type="Sprite2D"]
|
||||||
|
|
|
@ -10,7 +10,6 @@ region = Rect2(72, 1392, 216, 272)
|
||||||
[node name="WoodenBridge" type="Sprite2D"]
|
[node name="WoodenBridge" type="Sprite2D"]
|
||||||
scale = Vector2(5.71296, 5.71296)
|
scale = Vector2(5.71296, 5.71296)
|
||||||
texture = SubResource("AtlasTexture_nkyhf")
|
texture = SubResource("AtlasTexture_nkyhf")
|
||||||
metadata/tags = ["sticker"]
|
|
||||||
|
|
||||||
[node name="BridgeNode" parent="." instance=ExtResource("2_te8ug")]
|
[node name="BridgeNode" parent="." instance=ExtResource("2_te8ug")]
|
||||||
position = Vector2(1788, 788)
|
position = Vector2(1788, 788)
|
||||||
|
|
|
@ -21,7 +21,7 @@ extends Sprite2D
|
||||||
Position = new_position
|
Position = new_position
|
||||||
$Area2D/StickerShape2D.position = Position
|
$Area2D/StickerShape2D.position = Position
|
||||||
$Area2D/StickerShape2D.queue_redraw()
|
$Area2D/StickerShape2D.queue_redraw()
|
||||||
@export var Rotation :Vector2:
|
@export var Rotation :float:
|
||||||
set(new_rotation):
|
set(new_rotation):
|
||||||
Rotation = new_rotation
|
Rotation = new_rotation
|
||||||
$Area2D/StickerShape2D.rotation = Rotation
|
$Area2D/StickerShape2D.rotation = Rotation
|
||||||
|
|
Loading…
Reference in a new issue