Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 15f95e5ed0 | |||
| a9f2e3c035 | |||
| c8a391c72f |
@@ -15,7 +15,7 @@
|
||||
script = ExtResource("2_cyb15")
|
||||
name = "Duchex"
|
||||
chara_sprite = ExtResource("1_tppor")
|
||||
mask_eyes_position = Vector2(78.08, 181.815)
|
||||
mask_eyes_position = Vector2(78.08, 232.575)
|
||||
mask_eyes_rotation = -0.06981317007977318
|
||||
mask_mouth_position = Vector2(76.505, 203.355)
|
||||
mask_mouth_rotation = -0.05235987755982989
|
||||
@@ -24,6 +24,6 @@ preferences = Dictionary[ExtResource("3_s53hh"), int]({
|
||||
ExtResource("3_q0kni"): 0,
|
||||
ExtResource("6_f6mh3"): 0,
|
||||
ExtResource("7_nck5w"): 4,
|
||||
ExtResource("4_s53hh"): 2
|
||||
ExtResource("4_s53hh"): 3
|
||||
})
|
||||
metadata/_custom_type_script = "uid://bwam50qxikpw4"
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
script = ExtResource("2_vlbot")
|
||||
name = "Farmer"
|
||||
chara_sprite = ExtResource("1_qptnb")
|
||||
mask_eyes_position = Vector2(122.665, 137.92)
|
||||
mask_eyes_position = Vector2(128.185, 164.43)
|
||||
mask_eyes_rotation = 0.11170107212763669
|
||||
mask_mouth_position = Vector2(106.575, 137.815)
|
||||
mask_mouth_rotation = 0.07504915783575637
|
||||
traits = Array[ExtResource("1_jl8hl")]([ExtResource("5_6sspe"), ExtResource("11_tclm6"), ExtResource("10_nvopw")])
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
script = ExtResource("2_8e28v")
|
||||
name = "Nun"
|
||||
chara_sprite = ExtResource("1_8e28v")
|
||||
mask_eyes_position = Vector2(159.75, 230.135)
|
||||
mask_eyes_position = Vector2(159.75, 247.26)
|
||||
mask_eyes_rotation = 0.07504915783575637
|
||||
mask_mouth_position = Vector2(152.9, 203.93)
|
||||
mask_mouth_rotation = 0.029670597283903404
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
script = ExtResource("2_g8bvo")
|
||||
name = "Queen"
|
||||
chara_sprite = ExtResource("1_d1164")
|
||||
mask_eyes_position = Vector2(47.78, 157.815)
|
||||
mask_eyes_position = Vector2(47.78, 170.79)
|
||||
mask_eyes_rotation = 0.03316125578789186
|
||||
mask_mouth_position = Vector2(31.595, 176.245)
|
||||
mask_mouth_rotation = 0.01745329251994329
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[gd_scene format=3 uid="uid://bvpyqyftqhy45"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dnt4l1eghm1gi" path="res://scenes/character/character.gd" id="1_cuyo6"]
|
||||
[ext_resource type="Resource" uid="uid://wq3g1j3l4gl6" path="res://resources/characters/queen.tres" id="2_fgi2k"]
|
||||
[ext_resource type="Texture2D" uid="uid://c726frtpkk1a8" path="res://assets/characters/Perso 2.png" id="3_f8hpl"]
|
||||
[ext_resource type="Resource" uid="uid://c2v05fqr7cwll" path="res://resources/characters/bishop.tres" id="2_fgi2k"]
|
||||
[ext_resource type="Texture2D" uid="uid://dmmhwqsi3im3w" path="res://assets/characters/Perso 4.png" id="3_f8hpl"]
|
||||
[ext_resource type="PackedScene" uid="uid://3jlukpb5hefb" path="res://scenes/mask/mask.tscn" id="3_mutn8"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_fgi2k"]
|
||||
@@ -164,12 +164,11 @@ chara_resource = ExtResource("2_fgi2k")
|
||||
texture = ExtResource("3_f8hpl")
|
||||
|
||||
[node name="MaskMouth" parent="." unique_id=1087336064 instance=ExtResource("3_mutn8")]
|
||||
position = Vector2(31.595, 176.245)
|
||||
rotation = 0.017453292
|
||||
position = Vector2(47.37, 103.725)
|
||||
|
||||
[node name="MaskEyes" parent="." unique_id=428968220 instance=ExtResource("3_mutn8")]
|
||||
position = Vector2(47.78, 157.815)
|
||||
rotation = 0.033161256
|
||||
position = Vector2(63.135, 91.365)
|
||||
rotation = 0.015707964
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=713965213]
|
||||
libraries/ = SubResource("AnimationLibrary_7ex5l")
|
||||
|
||||
@@ -14,11 +14,13 @@ var pref_score_name: Dictionary[CharacterResource.Preference, String] = {
|
||||
CharacterResource.Preference.HATE: "Hates ",
|
||||
}
|
||||
|
||||
@onready var chara: Sprite2D = $"../GuestList/Chara"
|
||||
|
||||
@onready var label: Label = $Label
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
pass
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
@@ -43,13 +45,16 @@ func cycle_through_items() -> void:
|
||||
if items.size() == 0:
|
||||
label.text = "...\n...\n..."
|
||||
return
|
||||
|
||||
|
||||
current_item += 1
|
||||
var index = current_item % items.size()
|
||||
var item = items.get(index)
|
||||
if item is MaskResource:
|
||||
label.text = "\n\n\n\n" + item.name + "\n\n" + item.description
|
||||
elif item is CharacterResource:
|
||||
chara.visible = true
|
||||
chara.texture = item.chara_sprite
|
||||
|
||||
label.text = item.name + "\n\nTraits\n"
|
||||
for guest_trait: Trait in item.traits:
|
||||
label.text += guest_trait.name + "\n"
|
||||
|
||||
@@ -543,6 +543,10 @@ position = Vector2(-224.08743, 155.85515)
|
||||
scale = Vector2(0.6, 0.6)
|
||||
texture = ExtResource("36_62f45")
|
||||
|
||||
[node name="Chara" type="Sprite2D" parent="GuestList" unique_id=275662105]
|
||||
position = Vector2(179.2679, -334.8194)
|
||||
scale = Vector2(0.08, 0.08)
|
||||
|
||||
[node name="Arrow004" type="Sprite2D" parent="GuestList" unique_id=1454132163]
|
||||
position = Vector2(154.4564, 262.38947)
|
||||
rotation = -0.011010677
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[gd_scene format=3 uid="uid://3jlukpb5hefb"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cfo3mk5f2q3ej" path="res://scenes/mask/mask.gd" id="1_61b51"]
|
||||
[ext_resource type="Resource" uid="uid://divy6byhpwgs2" path="res://resources/masks/truthy.tres" id="2_0pm64"]
|
||||
[ext_resource type="Texture2D" uid="uid://02al0mfbvjc1" path="res://assets/masks/Bouche 2.png" id="3_htpgb"]
|
||||
[ext_resource type="Resource" uid="uid://t2n1q71ce4x6" path="res://resources/masks/deaf.tres" id="2_0pm64"]
|
||||
[ext_resource type="Texture2D" uid="uid://bi2qq11fbn2yd" path="res://assets/masks/Masque 2.png" id="3_htpgb"]
|
||||
|
||||
[node name="Mask" type="Node2D" unique_id=428968220]
|
||||
script = ExtResource("1_61b51")
|
||||
|
||||
Reference in New Issue
Block a user