Allelic crossingover

This commit is contained in:
Rendo 2026-04-06 00:46:11 +05:00
commit 471f14c19e
26 changed files with 334 additions and 4 deletions

View file

@ -0,0 +1,33 @@
[gd_scene format=3 uid="uid://ishuj6fmytsi"]
[ext_resource type="Texture2D" uid="uid://xu3tlqphgkr3" path="res://assets/sprites/peashooter/peashooter_base.tres" id="1_e6yey"]
[ext_resource type="Texture2D" uid="uid://cx83t1td6bh8e" path="res://assets/sprites/peashooter/peashooter_stem.tres" id="2_s68lj"]
[ext_resource type="Texture2D" uid="uid://c3hpdbuk7rebb" path="res://assets/sprites/peashooter/peashooter_head.tres" id="3_nb43f"]
[ext_resource type="Texture2D" uid="uid://dreb6csxlyicd" path="res://assets/sprites/peashooter/peashooter_mouth.tres" id="4_lujl4"]
[ext_resource type="Texture2D" uid="uid://0dplt1rhyuk6" path="res://assets/sprites/peashooter/peashooter_eyes.tres" id="5_m4f03"]
[ext_resource type="Texture2D" uid="uid://75qm5vda4cv0" path="res://assets/sprites/peashooter/peashooter_leaf.tres" id="6_x0fsv"]
[node name="PeashooterReference" type="Node2D" unique_id=1009091297]
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1099676460]
texture = ExtResource("1_e6yey")
[node name="Sprite2D" type="Sprite2D" parent="Sprite2D" unique_id=99781643]
position = Vector2(-1.5, -10.5)
texture = ExtResource("2_s68lj")
[node name="Sprite2D" type="Sprite2D" parent="Sprite2D/Sprite2D" unique_id=349584811]
position = Vector2(4, -15)
texture = ExtResource("3_nb43f")
[node name="PeashooterLeaf" type="Sprite2D" parent="Sprite2D/Sprite2D/Sprite2D" unique_id=1491279544]
position = Vector2(-12, -13)
texture = ExtResource("6_x0fsv")
[node name="PeashooterMouth" type="Sprite2D" parent="Sprite2D/Sprite2D/Sprite2D" unique_id=775438590]
position = Vector2(6.5, 5)
texture = ExtResource("4_lujl4")
[node name="PeashooterEyes" type="Sprite2D" parent="Sprite2D/Sprite2D/Sprite2D" unique_id=109271766]
position = Vector2(1.5, -3.5)
texture = ExtResource("5_m4f03")

View file

@ -0,0 +1,28 @@
[gd_scene format=3 uid="uid://cexjyd7e5oxk2"]
[ext_resource type="Texture2D" uid="uid://5s41s8aqpnoy" path="res://assets/sprites/sunflower/sunflower_base.tres" id="1_pcoyu"]
[ext_resource type="Texture2D" uid="uid://4am05ghs7is0" path="res://assets/sprites/sunflower/sunflower_stem.tres" id="2_cis81"]
[ext_resource type="Texture2D" uid="uid://d0ywidssladw4" path="res://assets/sprites/sunflower/sunflower_head.tres" id="3_sawyv"]
[ext_resource type="Texture2D" uid="uid://cknlcspmr37l2" path="res://assets/sprites/sunflower/sunflower_mouth.tres" id="4_mabgo"]
[ext_resource type="Texture2D" uid="uid://yndxoww4o0p" path="res://assets/sprites/sunflower/sunflower_eyes.tres" id="5_k7g3o"]
[node name="SunflowerReference" type="Node2D" unique_id=1269760637]
[node name="SunflowerBase" type="Sprite2D" parent="." unique_id=1672078764]
texture = ExtResource("1_pcoyu")
[node name="SunflowerStem" type="Sprite2D" parent="SunflowerBase" unique_id=186393666]
position = Vector2(-1, -12)
texture = ExtResource("2_cis81")
[node name="SunflowerHead" type="Sprite2D" parent="SunflowerBase/SunflowerStem" unique_id=1079676912]
position = Vector2(4, -13)
texture = ExtResource("3_sawyv")
[node name="SunflowerMouth" type="Sprite2D" parent="SunflowerBase/SunflowerStem/SunflowerHead" unique_id=539805721]
position = Vector2(1, 4)
texture = ExtResource("4_mabgo")
[node name="SunflowerEyes" type="Sprite2D" parent="SunflowerBase/SunflowerStem/SunflowerHead" unique_id=968075238]
position = Vector2(1, -2)
texture = ExtResource("5_k7g3o")

View file

@ -1,9 +1,58 @@
[gd_scene format=3 uid="uid://bh0bpqalry5my"]
[ext_resource type="Texture2D" uid="uid://dme2xuu2886mk" path="res://assets/sprites/grid.png" id="1_nnsk1"]
[ext_resource type="Script" uid="uid://g1poxl04shm6" path="res://ui/debug_modifiers.gd" id="2_rwgxs"]
[node name="World" type="Node2D" unique_id=1672334032]
[node name="GodotGenome" type="GodotGenome" parent="." unique_id=1134546682]
from_plant = "CherryBomb"
[node name="Camera2D" type="Camera2D" parent="." unique_id=1587010905]
position = Vector2(271, 151)
zoom = Vector2(1.825, 1.825)
[node name="Plant" type="Plant" parent="." unique_id=1494298949 node_paths=PackedStringArray("genome")]
genome = NodePath("../GodotGenome")
[node name="GenomeA" type="GodotGenome" parent="." unique_id=1134546682]
from_plant = "Peashooter"
[node name="GenomeB" type="GodotGenome" parent="." unique_id=1110322162]
from_plant = "Sunflower"
[node name="GenomeADisplay" type="Plant" parent="." unique_id=1494298949 node_paths=PackedStringArray("genome")]
genome = NodePath("../GenomeA")
position = Vector2(271, 151)
[node name="GenomeBDisplay" type="Plant" parent="." unique_id=1637617745 node_paths=PackedStringArray("genome")]
genome = NodePath("../GenomeB")
position = Vector2(333, 151)
[node name="Grid" type="Sprite2D" parent="." unique_id=1161746624]
z_index = -10
texture = ExtResource("1_nnsk1")
centered = false
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1946950805]
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer" unique_id=277004490]
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 0
script = ExtResource("2_rwgxs")
[node name="Allelic" type="Button" parent="CanvasLayer/HBoxContainer" unique_id=564440120]
layout_mode = 2
size_flags_horizontal = 3
text = "Аллельная трансформация"
[node name="Categoric" type="Button" parent="CanvasLayer/HBoxContainer" unique_id=741994465]
layout_mode = 2
size_flags_horizontal = 3
text = "Категориальная трансформация"
[node name="ReferencePairModifier" type="ReferencePairModifier" parent="CanvasLayer" unique_id=2068562861 node_paths=PackedStringArray("godot_genome_a", "godot_genome_b")]
godot_genome_a = NodePath("../../GenomeA")
godot_genome_b = NodePath("../../GenomeB")
[connection signal="genome_updated" from="GenomeA" to="CanvasLayer/HBoxContainer" method="_on_genome_a_genome_updated"]
[connection signal="pressed" from="CanvasLayer/HBoxContainer/Allelic" to="CanvasLayer/HBoxContainer" method="_on_allelic_pressed"]
[connection signal="pressed" from="CanvasLayer/HBoxContainer/Categoric" to="CanvasLayer/HBoxContainer" method="_on_categoric_pressed"]