120 lines
3.4 KiB
Plaintext
120 lines
3.4 KiB
Plaintext
[gd_scene load_steps=12 format=3 uid="uid://vqwep0whfb0o"]
|
|
|
|
[ext_resource type="Script" uid="uid://2loic2eeec5b" path="res://logic-scenes/board/card.gd" id="1_6ceun"]
|
|
[ext_resource type="Texture2D" uid="uid://sv0nhkkur1tt" path="res://logic-scenes/board/card-textures/cardsheet.png" id="2_buevv"]
|
|
[ext_resource type="PackedScene" uid="uid://b2st6v25p0ley" path="res://logic-scenes/board/void_stuff.tscn" id="3_ipd1f"]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_aqrbw"]
|
|
radius = 110.0
|
|
height = 336.0
|
|
|
|
[sub_resource type="GDScript" id="GDScript_8bs16"]
|
|
script/source = "extends Node2D
|
|
|
|
@onready var particles = $BackgroundSprite/GPUParticles2D
|
|
@onready var initial_position = position
|
|
var noise_position = randf()
|
|
var noise: Noise = FastNoiseLite.new()
|
|
|
|
func _process(delta):
|
|
|
|
if not State.reduce_motion:
|
|
|
|
noise_position += delta * 10
|
|
|
|
var random_position = Vector2(noise.get_noise_1d(noise_position*2), noise.get_noise_1d(-noise_position))
|
|
|
|
random_position = random_position.normalized() * pow(random_position.length()*2, 3) * 5
|
|
|
|
position = initial_position - random_position
|
|
|
|
rotation = noise.get_noise_1d(noise_position*10) * random_position.length() * 0.01
|
|
|
|
particles.position = random_position
|
|
|
|
else: position = initial_position
|
|
"
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_aqrbw"]
|
|
atlas = ExtResource("2_buevv")
|
|
region = Rect2(0, 880, 600, 440)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_e20ok"]
|
|
atlas = ExtResource("2_buevv")
|
|
region = Rect2(0, 440, 600, 440)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_onstk"]
|
|
atlas = ExtResource("2_buevv")
|
|
region = Rect2(600, 440, 600, 440)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mtvrf"]
|
|
atlas = ExtResource("2_buevv")
|
|
region = Rect2(600, 0, 600, 440)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_inyug"]
|
|
atlas = ExtResource("2_buevv")
|
|
region = Rect2(0, 0, 600, 440)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_cu2at"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_aqrbw")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_e20ok")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_onstk")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_mtvrf")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_inyug")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[node name="c_void" type="Area2D"]
|
|
script = ExtResource("1_6ceun")
|
|
metadata/type = "card"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(-0.0713516, 0.997451)
|
|
rotation = 1.5708
|
|
shape = SubResource("CapsuleShape2D_aqrbw")
|
|
|
|
[node name="Visual" type="Node2D" parent="."]
|
|
scale = Vector2(0.6, 0.6)
|
|
script = SubResource("GDScript_8bs16")
|
|
|
|
[node name="BackgroundSprite" type="AnimatedSprite2D" parent="Visual"]
|
|
unique_name_in_owner = true
|
|
clip_children = 2
|
|
sprite_frames = SubResource("SpriteFrames_cu2at")
|
|
frame = 1
|
|
|
|
[node name="void_stuff" parent="Visual/BackgroundSprite" instance=ExtResource("3_ipd1f")]
|
|
|
|
[node name="StickyNoteAncor" type="Node2D" parent="Visual/BackgroundSprite"]
|
|
unique_name_in_owner = true
|
|
position = Vector2(-109.413, 100.642)
|
|
scale = Vector2(1.66667, 1.66667)
|
|
|
|
[node name="Label" type="Label" parent="."]
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -127.0
|
|
offset_top = -82.5
|
|
offset_right = 127.0
|
|
offset_bottom = 82.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
autowrap_mode = 3
|