Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 15f95e5ed0 | |||
| a9f2e3c035 | |||
| c8a391c72f | |||
| 661510d7f6 | |||
| f760cecbf7 | |||
| 8b4590b980 |
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.9 MiB |
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 2.8 MiB After Width: | Height: | Size: 2.8 MiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 440 KiB After Width: | Height: | Size: 414 KiB |
|
Before Width: | Height: | Size: 158 KiB After Width: | Height: | Size: 154 KiB |
|
Before Width: | Height: | Size: 277 KiB After Width: | Height: | Size: 283 KiB |
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 159 KiB |
@@ -5,7 +5,7 @@ bus/1/name = &"Music"
|
||||
bus/1/solo = false
|
||||
bus/1/mute = false
|
||||
bus/1/bypass_fx = false
|
||||
bus/1/volume_db = -9.632782
|
||||
bus/1/volume_db = -3.7683105
|
||||
bus/1/send = &"Master"
|
||||
bus/2/name = &"SFX"
|
||||
bus/2/solo = false
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
script = ExtResource("2_ilqpx")
|
||||
name = "Bishop"
|
||||
chara_sprite = ExtResource("1_ilqpx")
|
||||
mask_eyes_position = Vector2(58.7, 91.365)
|
||||
mask_eyes_rotation = -0.05934119456780681
|
||||
mask_mouth_position = Vector2(46.125, 123.665)
|
||||
mask_eyes_position = Vector2(63.135, 91.365)
|
||||
mask_eyes_rotation = 0.015707963267948568
|
||||
mask_mouth_position = Vector2(47.37, 103.725)
|
||||
traits = Array[ExtResource("1_kq1ar")]([ExtResource("6_4wm6o"), ExtResource("9_yew24"), ExtResource("14_lkxga")])
|
||||
preferences = Dictionary[ExtResource("1_kq1ar"), int]({
|
||||
ExtResource("3_kbmal"): 4,
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
script = ExtResource("2_cyb15")
|
||||
name = "Duchex"
|
||||
chara_sprite = ExtResource("1_tppor")
|
||||
mask_eyes_position = Vector2(61.445, 168.635)
|
||||
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
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
script = ExtResource("2_ce0p8")
|
||||
name = "Duke"
|
||||
chara_sprite = ExtResource("1_d1fpd")
|
||||
mask_eyes_position = Vector2(-23.295, -0.335)
|
||||
mask_eyes_position = Vector2(-9.205, -13.46)
|
||||
mask_eyes_rotation = -0.03490658503988659
|
||||
mask_mouth_position = Vector2(-1.83, 2.27)
|
||||
mask_mouth_position = Vector2(4.755, -2.32)
|
||||
traits = Array[ExtResource("3_n21sh")]([ExtResource("5_tl7uu"), ExtResource("7_12asi"), ExtResource("9_ce0p8")])
|
||||
preferences = Dictionary[ExtResource("3_n21sh"), int]({
|
||||
ExtResource("3_tvmgq"): 0,
|
||||
|
||||
@@ -13,8 +13,10 @@
|
||||
script = ExtResource("2_vlbot")
|
||||
name = "Farmer"
|
||||
chara_sprite = ExtResource("1_qptnb")
|
||||
mask_eyes_position = Vector2(112.37, 228.755)
|
||||
mask_mouth_position = Vector2(78.295, 132.145)
|
||||
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")])
|
||||
preferences = Dictionary[ExtResource("1_jl8hl"), int]({
|
||||
ExtResource("3_s3hb5"): 4,
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
script = ExtResource("3_vvog1")
|
||||
name = "King"
|
||||
chara_sprite = ExtResource("1_u46dm")
|
||||
mask_eyes_position = Vector2(6.675, -38.825)
|
||||
mask_eyes_position = Vector2(12.56, -38.825)
|
||||
mask_eyes_rotation = 0.06981317007977318
|
||||
mask_mouth_position = Vector2(-12.43, -47.06)
|
||||
mask_mouth_rotation = -0.12915436464757998
|
||||
mask_mouth_position = Vector2(12.375, -68.335)
|
||||
mask_mouth_rotation = 0.019198621771938023
|
||||
traits = Array[ExtResource("4_0s3fj")]([ExtResource("7_j8s63"), ExtResource("6_vvog1"), ExtResource("9_teajx")])
|
||||
preferences = Dictionary[ExtResource("4_0s3fj"), int]({
|
||||
ExtResource("6_u46dm"): 0,
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
script = ExtResource("2_tdxmb")
|
||||
name = "Knight"
|
||||
chara_sprite = ExtResource("1_3vdcn")
|
||||
mask_eyes_position = Vector2(-94.815, 12.665)
|
||||
mask_eyes_rotation = 0.029670597283903404
|
||||
mask_mouth_position = Vector2(-84.16, -17.325)
|
||||
mask_eyes_position = Vector2(-103.465, -11.925)
|
||||
mask_eyes_rotation = -0.026179938779914945
|
||||
mask_mouth_position = Vector2(-76.23, -5.335)
|
||||
mask_mouth_rotation = 0.029670597283903404
|
||||
traits = Array[ExtResource("1_iqt1j")]([ExtResource("3_bsgk7"), ExtResource("4_aiy02"), ExtResource("7_5qve6"), ExtResource("11_xxla0")])
|
||||
preferences = Dictionary[ExtResource("1_iqt1j"), int]({
|
||||
|
||||
@@ -15,8 +15,9 @@
|
||||
script = ExtResource("2_8e28v")
|
||||
name = "Nun"
|
||||
chara_sprite = ExtResource("1_8e28v")
|
||||
mask_eyes_position = Vector2(156.99, 241.13)
|
||||
mask_mouth_position = Vector2(151.42, 203.93)
|
||||
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
|
||||
traits = Array[ExtResource("1_83ubb")]([ExtResource("8_yhtr4"), ExtResource("10_emld2"), ExtResource("14_1axfg")])
|
||||
preferences = Dictionary[ExtResource("1_83ubb"), int]({
|
||||
|
||||
@@ -14,9 +14,10 @@
|
||||
script = ExtResource("2_ef0f3")
|
||||
name = "Prince"
|
||||
chara_sprite = ExtResource("1_ef0f3")
|
||||
mask_eyes_position = Vector2(104.295, 9.395)
|
||||
mask_eyes_position = Vector2(106.405, -3.38)
|
||||
mask_eyes_rotation = -0.017453292519943295
|
||||
mask_mouth_position = Vector2(88.32, -14.73)
|
||||
mask_mouth_position = Vector2(79.52, -53.32)
|
||||
mask_mouth_rotation = 0.038397243543875054
|
||||
traits = Array[ExtResource("1_3d6c6")]([ExtResource("8_bwj4q"), ExtResource("7_drjus"), ExtResource("14_6apw1")])
|
||||
preferences = Dictionary[ExtResource("1_3d6c6"), int]({
|
||||
ExtResource("5_33mra"): 0,
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
script = ExtResource("2_g8bvo")
|
||||
name = "Queen"
|
||||
chara_sprite = ExtResource("1_d1164")
|
||||
mask_eyes_position = Vector2(48, 187.345)
|
||||
mask_eyes_rotation = 0.05235987755982989
|
||||
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
|
||||
traits = Array[ExtResource("3_dkw07")]([ExtResource("3_y3hrs"), ExtResource("8_j0xhd"), ExtResource("9_hdamc"), ExtResource("12_4ysbx")])
|
||||
|
||||
11
resources/guests/bishop_blind.tres
Normal file
@@ -0,0 +1,11 @@
|
||||
[gd_resource type="Resource" script_class="MaskedChara" format=3 uid="uid://dw8ckdqphstum"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://c2v05fqr7cwll" path="res://resources/characters/bishop.tres" id="1_1jsty"]
|
||||
[ext_resource type="Script" uid="uid://b8peyg02l0mrn" path="res://scenes/managers/masked_chara.gd" id="2_bjdg5"]
|
||||
[ext_resource type="Resource" uid="uid://vsvgpvluq7sh" path="res://resources/masks/blind.tres" id="2_ilfyw"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_bjdg5")
|
||||
character = ExtResource("1_1jsty")
|
||||
face_mask = ExtResource("2_ilfyw")
|
||||
metadata/_custom_type_script = "uid://b8peyg02l0mrn"
|
||||
9
resources/guests/bishop_unmasked.tres
Normal file
@@ -0,0 +1,9 @@
|
||||
[gd_resource type="Resource" script_class="MaskedChara" format=3 uid="uid://k561jqkq8jpa"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://c2v05fqr7cwll" path="res://resources/characters/bishop.tres" id="1_srvwa"]
|
||||
[ext_resource type="Script" uid="uid://b8peyg02l0mrn" path="res://scenes/managers/masked_chara.gd" id="3_u3km6"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("3_u3km6")
|
||||
character = ExtResource("1_srvwa")
|
||||
metadata/_custom_type_script = "uid://b8peyg02l0mrn"
|
||||
11
resources/guests/duchex_falsy.tres
Normal file
@@ -0,0 +1,11 @@
|
||||
[gd_resource type="Resource" script_class="MaskedChara" format=3 uid="uid://bhigq5xthp5ee"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://c87odmn680x7" path="res://resources/characters/duchex.tres" id="1_2k678"]
|
||||
[ext_resource type="Script" uid="uid://b8peyg02l0mrn" path="res://scenes/managers/masked_chara.gd" id="2_lfr00"]
|
||||
[ext_resource type="Resource" uid="uid://kau80jesm22w" path="res://resources/masks/falsy.tres" id="2_r25b7"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_lfr00")
|
||||
character = ExtResource("1_2k678")
|
||||
mouth_mask = ExtResource("2_r25b7")
|
||||
metadata/_custom_type_script = "uid://b8peyg02l0mrn"
|
||||
11
resources/guests/duke_falsy.tres
Normal file
@@ -0,0 +1,11 @@
|
||||
[gd_resource type="Resource" script_class="MaskedChara" format=3 uid="uid://bbnabwyoewgym"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://gy4ygqrjj5ys" path="res://resources/characters/duke.tres" id="1_iaxr1"]
|
||||
[ext_resource type="Script" uid="uid://b8peyg02l0mrn" path="res://scenes/managers/masked_chara.gd" id="2_7bwff"]
|
||||
[ext_resource type="Resource" uid="uid://kau80jesm22w" path="res://resources/masks/falsy.tres" id="2_mhs2o"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_7bwff")
|
||||
character = ExtResource("1_iaxr1")
|
||||
mouth_mask = ExtResource("2_mhs2o")
|
||||
metadata/_custom_type_script = "uid://b8peyg02l0mrn"
|
||||
@@ -6,7 +6,7 @@
|
||||
[resource]
|
||||
script = ExtResource("2_ncal4")
|
||||
name = "Mask of the Liar"
|
||||
description = "Invert all preferences"
|
||||
description = "Invert all traits"
|
||||
mask_sprite = ExtResource("1_r5drl")
|
||||
region = 1
|
||||
stimuli = 1
|
||||
|
||||
@@ -6,6 +6,9 @@ extends Camera2D
|
||||
var should_move_right = false
|
||||
var should_move_left = false
|
||||
|
||||
@onready var arrow_001: Sprite2D = $"../Arrow001"
|
||||
@onready var arrow_002: Sprite2D = $"../Arrow002"
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
@@ -14,6 +17,9 @@ func _ready() -> void:
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
arrow_001.visible = position.x <= 440.0
|
||||
arrow_002.visible = position.x >= 2076.0
|
||||
|
||||
var limit_left_at_center = limit_left + get_viewport_rect().size.x/2
|
||||
var limit_right_at_center = limit_right - get_viewport_rect().size.x/2
|
||||
if position.x < limit_left_at_center:
|
||||
|
||||
@@ -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://i4yr7hqobna7" path="res://resources/characters/prince.tres" id="2_fgi2k"]
|
||||
[ext_resource type="Texture2D" uid="uid://c61n5v2xrlwy2" path="res://assets/characters/Perso 5.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,11 +164,11 @@ chara_resource = ExtResource("2_fgi2k")
|
||||
texture = ExtResource("3_f8hpl")
|
||||
|
||||
[node name="MaskMouth" parent="." unique_id=1087336064 instance=ExtResource("3_mutn8")]
|
||||
position = Vector2(88.32, -14.73)
|
||||
position = Vector2(47.37, 103.725)
|
||||
|
||||
[node name="MaskEyes" parent="." unique_id=428968220 instance=ExtResource("3_mutn8")]
|
||||
position = Vector2(104.295, 9.395)
|
||||
rotation = -0.017453292
|
||||
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.
|
||||
@@ -30,7 +32,7 @@ func set_list(_items):
|
||||
for i in _items:
|
||||
print(i.name)
|
||||
|
||||
current_item = 0
|
||||
current_item = 1
|
||||
if _items.size() == 0:
|
||||
items = []
|
||||
label.text = "...\n...\n..."
|
||||
@@ -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"
|
||||
|
||||
@@ -34,23 +34,24 @@
|
||||
[ext_resource type="Resource" uid="uid://dvmr6qryknr2j" path="res://resources/characters/nun.tres" id="26_6miv3"]
|
||||
[ext_resource type="Resource" uid="uid://kau80jesm22w" path="res://resources/masks/falsy.tres" id="26_i6fjx"]
|
||||
[ext_resource type="Resource" uid="uid://bfvky2dpu6vv0" path="res://resources/guests/duke_unmasked.tres" id="27_6w6mm"]
|
||||
[ext_resource type="Resource" uid="uid://cfargib0urafc" path="res://resources/guests/duchex_unmasked.tres" id="27_62f45"]
|
||||
[ext_resource type="Resource" uid="uid://i4yr7hqobna7" path="res://resources/characters/prince.tres" id="27_yisfj"]
|
||||
[ext_resource type="Resource" uid="uid://q3o5oxegjx2" path="res://resources/masks/no_smell.tres" id="28_7dg2i"]
|
||||
[ext_resource type="Resource" uid="uid://divy6byhpwgs2" path="res://resources/masks/truthy.tres" id="29_08tbl"]
|
||||
[ext_resource type="Resource" uid="uid://c25kg6um2k1dy" path="res://resources/guests/duchex_mute.tres" id="29_62f45"]
|
||||
[ext_resource type="Resource" uid="uid://dfguca2526tk6" path="res://resources/guests/queen_unmasked.tres" id="30_6g32y"]
|
||||
[ext_resource type="Resource" uid="uid://im83307vumpx" path="res://resources/guests/queen_blind.tres" id="33_f4j1x"]
|
||||
[ext_resource type="Script" uid="uid://bb0od2qqdx3or" path="res://scenes/main/ready_bell.gd" id="33_tbnf8"]
|
||||
[ext_resource type="Texture2D" uid="uid://c3bxwu75mcl87" path="res://assets/decor/mask_page_held.png" id="35_1k3ck"]
|
||||
[ext_resource type="Texture2D" uid="uid://ce7wdct4e27e1" path="res://assets/decor/reception.png" id="35_62f45"]
|
||||
[ext_resource type="PackedScene" uid="uid://cayrxqnypoytu" path="res://scenes/table/table.tscn" id="35_r1bmu"]
|
||||
[ext_resource type="Resource" uid="uid://k561jqkq8jpa" path="res://resources/guests/bishop_unmasked.tres" id="35_yisfj"]
|
||||
[ext_resource type="Texture2D" uid="uid://cl1a50j64nnlh" path="res://assets/decor/guest_page_held.png" id="36_62f45"]
|
||||
[ext_resource type="Texture2D" uid="uid://coahojeky8ul7" path="res://assets/decor/bell.png" id="37_6g32y"]
|
||||
[ext_resource type="Resource" uid="uid://dw8ckdqphstum" path="res://resources/guests/bishop_blind.tres" id="37_yisfj"]
|
||||
[ext_resource type="Texture2D" uid="uid://cgl8g5eqy8xm0" path="res://assets/decor/hand_bell.png" id="39_62f45"]
|
||||
[ext_resource type="Texture2D" uid="uid://dj267xgqniy2i" path="res://assets/decor/table_item_a_2.png" id="43_jucdw"]
|
||||
[ext_resource type="Texture2D" uid="uid://b4u3o7fyryxxq" path="res://assets/decor/table_item_a.png" id="44_6miv3"]
|
||||
[ext_resource type="Texture2D" uid="uid://c3jx3y0mbueoo" path="res://assets/ui/arrow_004.png" id="47_6miv3"]
|
||||
[ext_resource type="Texture2D" uid="uid://cgrudt5ev651p" path="res://assets/ui/arrow_001.png" id="52_yisfj"]
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_gkmcc"]
|
||||
random_pitch = 1.122462
|
||||
@@ -392,6 +393,44 @@ _data = {
|
||||
&"idle": SubResource("Animation_62f45")
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ftp6y"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:scale")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(0.5, 0.5)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_pd34m"]
|
||||
resource_name = "idle"
|
||||
length = 2.0
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:scale")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector2(0.5, 0.5), Vector2(0.4, 0.4)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_qjyke"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_ftp6y"),
|
||||
&"idle": SubResource("Animation_pd34m")
|
||||
}
|
||||
|
||||
[node name="Main" type="Node2D" unique_id=875553242]
|
||||
script = ExtResource("1_7smn1")
|
||||
|
||||
@@ -421,10 +460,10 @@ character = NodePath("../Character")
|
||||
guest_list = NodePath("../GuestList")
|
||||
mask_list = NodePath("../MaskList")
|
||||
tables = [NodePath("../Table"), NodePath("../Table2"), NodePath("../Table3")]
|
||||
lvl1_guest_1 = ExtResource("27_62f45")
|
||||
lvl1_guest_1 = ExtResource("35_yisfj")
|
||||
lvl1_guest_2 = ExtResource("27_6w6mm")
|
||||
lvl2_guest_1 = ExtResource("27_62f45")
|
||||
lvl2_guest_2 = ExtResource("30_6g32y")
|
||||
lvl2_guest_1 = ExtResource("27_6w6mm")
|
||||
lvl2_guest_2 = ExtResource("37_yisfj")
|
||||
lvl3_guest_1 = ExtResource("33_f4j1x")
|
||||
lvl3_guest_2 = ExtResource("29_62f45")
|
||||
lvl3_guest_3 = ExtResource("27_6w6mm")
|
||||
@@ -469,12 +508,12 @@ scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("35_62f45")
|
||||
|
||||
[node name="TableItemA2" type="Sprite2D" parent="." unique_id=611798307]
|
||||
position = Vector2(-933, 164)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
position = Vector2(-882, 149)
|
||||
scale = Vector2(0.4, 0.4)
|
||||
texture = ExtResource("43_jucdw")
|
||||
|
||||
[node name="TableItemA" type="Sprite2D" parent="." unique_id=1146510015]
|
||||
position = Vector2(911.00006, 385.00003)
|
||||
position = Vector2(903, 382)
|
||||
scale = Vector2(0.3, 0.3)
|
||||
texture = ExtResource("44_6miv3")
|
||||
|
||||
@@ -504,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
|
||||
@@ -531,6 +574,25 @@ texture = ExtResource("39_62f45")
|
||||
libraries/ = SubResource("AnimationLibrary_6g32y")
|
||||
autoplay = &"idle"
|
||||
|
||||
[node name="Arrow001" type="Sprite2D" parent="." unique_id=2051768141]
|
||||
position = Vector2(828, 7)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("52_yisfj")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="Arrow001" unique_id=23670381]
|
||||
libraries/ = SubResource("AnimationLibrary_qjyke")
|
||||
autoplay = &"idle"
|
||||
|
||||
[node name="Arrow002" type="Sprite2D" parent="." unique_id=557480206]
|
||||
position = Vector2(1631.9999, 4.9999995)
|
||||
rotation = 3.1415927
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("52_yisfj")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="Arrow002" unique_id=1862466503]
|
||||
libraries/ = SubResource("AnimationLibrary_qjyke")
|
||||
autoplay = &"idle"
|
||||
|
||||
[connection signal="defeat_noise" from="GameManager" to="." method="_on_game_manager_defeat_noise"]
|
||||
[connection signal="ring_bell_noise" from="GameManager" to="." method="_on_game_manager_ring_bell_noise"]
|
||||
[connection signal="victory_noise" from="GameManager" to="." method="_on_game_manager_victory_noise"]
|
||||
|
||||
@@ -126,12 +126,14 @@ func compute_ending():
|
||||
|
||||
func ending_tween_cb():
|
||||
var final_score = 0.0
|
||||
for table in tables:
|
||||
final_score += table.compute_score()
|
||||
var table1_score = tables[0].compute_score()
|
||||
var table2_score = tables[1].compute_score()
|
||||
var table3_score = tables[2].compute_score()
|
||||
final_score = table1_score + table2_score + table3_score
|
||||
|
||||
print("Final score: %s" % final_score)
|
||||
|
||||
if final_score < 0:
|
||||
var is_defeat = table1_score < 0 or table2_score < 0 or table3_score < 0
|
||||
if is_defeat:
|
||||
defeat_noise.emit()
|
||||
else:
|
||||
victory_noise.emit()
|
||||
@@ -147,12 +149,15 @@ func ending_tween_cb():
|
||||
current_game_state = GameState.READY
|
||||
ring_bell.visible = true
|
||||
bell_anim_player.play("idle")
|
||||
|
||||
if is_defeat:
|
||||
return
|
||||
|
||||
if current_level == Levels.LVL1 and final_score >= 0:
|
||||
if current_level == Levels.LVL1:
|
||||
current_level = Levels.LVL2
|
||||
elif current_level == Levels.LVL2:
|
||||
current_level = Levels.LVL3
|
||||
elif final_score >= 0:
|
||||
else:
|
||||
roster_size += 1
|
||||
current_level = Levels.RANDOM
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ func compute_score(other_guests: Array[MaskedChara]) -> float:
|
||||
for guest_trait in guest_traits:
|
||||
var trait_strength = 0.0
|
||||
for stimuli in guest_trait.stimulis:
|
||||
var strength = stimuli
|
||||
var strength = 1.0
|
||||
if guest_mouth_mask != null and stimuli == guest_mouth_mask.stimuli:
|
||||
strength *= guest_mouth_mask.stimuli_multiplier
|
||||
if face_mask != null and stimuli == face_mask.stimuli:
|
||||
@@ -51,6 +51,7 @@ func compute_score(other_guests: Array[MaskedChara]) -> float:
|
||||
var preference = character.preferences.get(guest_trait) if guest_trait in character.preferences else CharacterResource.Preference.DONT_CARE
|
||||
var score_multiplier = pref_score_map.get(preference) if preference in pref_score_map else 0.0
|
||||
guest_appreciation += trait_strength*score_multiplier
|
||||
print(guest_appreciation)
|
||||
|
||||
overall_score += guest_appreciation
|
||||
|
||||
|
||||
@@ -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://vsvgpvluq7sh" path="res://resources/masks/blind.tres" id="2_0pm64"]
|
||||
[ext_resource type="Texture2D" uid="uid://sf7sjug1spau" path="res://assets/masks/Masque 1.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")
|
||||
|
||||