diff --git a/src/logic-scenes/board/particle_textures/star.png b/src/logic-scenes/board/particle_textures/star.png new file mode 100644 index 0000000..4d2264d Binary files /dev/null and b/src/logic-scenes/board/particle_textures/star.png differ diff --git a/src/logic-scenes/board/particle_textures/star.png.import b/src/logic-scenes/board/particle_textures/star.png.import new file mode 100644 index 0000000..c46172b --- /dev/null +++ b/src/logic-scenes/board/particle_textures/star.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://kpmk21d8rlso" +path="res://.godot/imported/star.png-cb025d5aa45574fdb1b3cdd678fdbecd.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://logic-scenes/board/particle_textures/star.png" +dest_files=["res://.godot/imported/star.png-cb025d5aa45574fdb1b3cdd678fdbecd.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 diff --git a/src/logic-scenes/board/void_card.tres b/src/logic-scenes/board/void_card.tres new file mode 100644 index 0000000..adee4cf --- /dev/null +++ b/src/logic-scenes/board/void_card.tres @@ -0,0 +1,28 @@ +[gd_resource type="VisualShader" load_steps=2 format=3 uid="uid://bwjioe14xggin"] + +[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_i5j4e"] +output_port_for_preview = 0 +input_name = "color" + +[resource] +code = "shader_type canvas_item; + + + +void fragment() { +// Input:2 + vec4 n_out2p0 = COLOR; + + +// Output:0 + COLOR.rgb = vec3(n_out2p0.xyz); + + +} +" +graph_offset = Vector2(-496.091, 53.946) +mode = 1 +flags/light_only = false +nodes/fragment/2/node = SubResource("VisualShaderNodeInput_i5j4e") +nodes/fragment/2/position = Vector2(-60, 180) +nodes/fragment/connections = PackedInt32Array(2, 0, 0, 0) diff --git a/src/logic-scenes/board/void_card.tscn b/src/logic-scenes/board/void_card.tscn new file mode 100644 index 0000000..2e35bfd --- /dev/null +++ b/src/logic-scenes/board/void_card.tscn @@ -0,0 +1,145 @@ +[gd_scene load_steps=17 format=3 uid="uid://dp4eps03igd3w"] + +[ext_resource type="Script" 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="Texture2D" uid="uid://kpmk21d8rlso" path="res://logic-scenes/board/particle_textures/star.png" id="3_8wu8j"] +[ext_resource type="Theme" uid="uid://b056fn288p8ha" path="res://logic-scenes/themes/messy.theme" id="3_mi4ah"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_ykk13"] +atlas = ExtResource("2_buevv") +region = Rect2(0, 0, 600, 440) + +[sub_resource type="AtlasTexture" id="AtlasTexture_l43eo"] +atlas = ExtResource("2_buevv") +region = Rect2(600, 0, 600, 440) + +[sub_resource type="AtlasTexture" id="AtlasTexture_x2vcn"] +atlas = ExtResource("2_buevv") +region = Rect2(0, 440, 600, 440) + +[sub_resource type="AtlasTexture" id="AtlasTexture_e7401"] +atlas = ExtResource("2_buevv") +region = Rect2(600, 440, 600, 440) + +[sub_resource type="AtlasTexture" id="AtlasTexture_j7wh6"] +atlas = ExtResource("2_buevv") +region = Rect2(0, 880, 600, 440) + +[sub_resource type="SpriteFrames" id="SpriteFrames_ckivt"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_ykk13") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_l43eo") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_x2vcn") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_e7401") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_j7wh6") +}], +"loop": true, +"name": &"default", +"speed": 5.0 +}] + +[sub_resource type="GDScript" id="GDScript_8bs16"] +script/source = "extends AnimatedSprite2D + +func _ready(): + if not State.reduce_motion: play(\"default\") +" + +[sub_resource type="Gradient" id="Gradient_v70nd"] +offsets = PackedFloat32Array(0, 0.213483, 1) +colors = PackedColorArray(1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0) + +[sub_resource type="GradientTexture1D" id="GradientTexture1D_xxq8p"] +gradient = SubResource("Gradient_v70nd") + +[sub_resource type="Curve" id="Curve_q6cmf"] +_data = [Vector2(0, 0.354545), 0.0, 0.117786, 0, 0, Vector2(1, 1), 2.34788, 0.0, 0, 0] +point_count = 2 + +[sub_resource type="CurveTexture" id="CurveTexture_cg0w1"] +curve = SubResource("Curve_q6cmf") + +[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_by44l"] +emission_shape = 6 +emission_ring_axis = Vector3(0, 0, 1) +emission_ring_height = 0.0 +emission_ring_radius = 180.0 +emission_ring_inner_radius = 170.0 +particle_flag_disable_z = true +spread = 180.0 +gravity = Vector3(0, 0, 0) +initial_velocity_min = -10.0 +initial_velocity_max = 10.0 +angular_velocity_max = 50.0 +orbit_velocity_min = 0.0 +orbit_velocity_max = 0.0 +radial_accel_min = -50.0 +scale_curve = SubResource("CurveTexture_cg0w1") +color_ramp = SubResource("GradientTexture1D_xxq8p") +turbulence_noise_strength = 0.1 +anim_speed_min = 1.0 +anim_speed_max = 1.0 +anim_offset_max = 1.0 +attractor_interaction_enabled = false + +[node name="card" type="Control"] +layout_mode = 3 +anchors_preset = 0 +offset_left = -150.0 +offset_top = -110.0 +offset_right = 150.0 +offset_bottom = 110.0 +focus_mode = 2 +script = ExtResource("1_6ceun") +compatible_postits = Array[Resource("res://logic-scenes/board/post-it.gd")]([null, null, null]) + +[node name="BackgroundSprite" type="AnimatedSprite2D" parent="."] +clip_children = 2 +position = Vector2(150, 110) +scale = Vector2(0.6, 0.6) +sprite_frames = SubResource("SpriteFrames_ckivt") +frame = 1 +script = SubResource("GDScript_8bs16") + +[node name="GPUParticles2D" type="GPUParticles2D" parent="BackgroundSprite"] +amount = 400 +process_material = SubResource("ParticleProcessMaterial_by44l") +texture = ExtResource("3_8wu8j") + +[node name="Label" type="Label" parent="."] +layout_mode = 1 +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 +theme = ExtResource("3_mi4ah") +theme_type_variation = &"card_text" +autowrap_mode = 3 + +[node name="postit anchor" type="Control" parent="."] +anchors_preset = 0 +offset_left = 100.0 +offset_top = 148.0 +offset_right = 140.0 +offset_bottom = 188.0 + +[connection signal="focus_entered" from="." to="." method="_on_focus_entered"] +[connection signal="focus_exited" from="." to="." method="_on_focus_exited"] +[connection signal="focus_entered" from="postit anchor" to="." method="_on_postit_anchor_focus_entered"]