7 Commits

Author SHA1 Message Date
de0c6a959d mask update
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 9s
Create tag and build when new code gets to main / Export (push) Successful in 1m24s
2026-02-01 10:12:50 +01:00
3eca322fdd Updated menu
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 9s
Create tag and build when new code gets to main / Export (push) Successful in 1m23s
2026-02-01 10:07:14 +01:00
4d43e7067f trying to fix mask visibility in build
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 9s
Create tag and build when new code gets to main / Export (push) Successful in 1m23s
2026-02-01 09:49:59 +01:00
db4aa83224 debug build
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 8s
Create tag and build when new code gets to main / Export (push) Successful in 1m20s
2026-02-01 09:46:20 +01:00
3786893384 Fixed score computation and added mouth masks
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 10s
Create tag and build when new code gets to main / Export (push) Successful in 1m22s
2026-02-01 09:40:46 +01:00
1dbafe1940 set back up some masks and a third tuto level
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 9s
Create tag and build when new code gets to main / Export (push) Successful in 1m22s
2026-02-01 08:53:10 +01:00
4e3d70cd61 lvl1 done
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 9s
Create tag and build when new code gets to main / Export (push) Successful in 1m25s
2026-01-31 21:39:23 +01:00
34 changed files with 333 additions and 153 deletions

BIN
assets/masks/Bouche 1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dr265gon4k377"
path="res://.godot/imported/Bouche 1.png-829bdfefb380a5c2146fb79677a3e54e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/masks/Bouche 1.png"
dest_files=["res://.godot/imported/Bouche 1.png-829bdfefb380a5c2146fb79677a3e54e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

BIN
assets/masks/Bouche 2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://02al0mfbvjc1"
path="res://.godot/imported/Bouche 2.png-cef33809e989213ecdcb5eaec450d079.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/masks/Bouche 2.png"
dest_files=["res://.godot/imported/Bouche 2.png-cef33809e989213ecdcb5eaec450d079.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

BIN
assets/masks/Bouche 3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 KiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bfnvs01ynm55q"
path="res://.godot/imported/Bouche 3.png-51e19461e5a132b25fc8982a596c9ed1.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/masks/Bouche 3.png"
dest_files=["res://.godot/imported/Bouche 3.png-51e19461e5a132b25fc8982a596c9ed1.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB

After

Width:  |  Height:  |  Size: 291 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 373 KiB

After

Width:  |  Height:  |  Size: 373 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB

After

Width:  |  Height:  |  Size: 320 KiB

View File

@@ -4,6 +4,10 @@
[ext_resource type="Script" uid="uid://cgj703gjwdvs1" path="res://menus/scenes/menus/main_menu/main_menu_with_animations.gd" id="2_ytpwg"] [ext_resource type="Script" uid="uid://cgj703gjwdvs1" path="res://menus/scenes/menus/main_menu/main_menu_with_animations.gd" id="2_ytpwg"]
[ext_resource type="PackedScene" uid="uid://xkqu58vkydps" path="res://menus/scenes/windows/main_menu_options_window.tscn" id="3_8i6b8"] [ext_resource type="PackedScene" uid="uid://xkqu58vkydps" path="res://menus/scenes/windows/main_menu_options_window.tscn" id="3_8i6b8"]
[ext_resource type="PackedScene" uid="uid://cvweffl7bo7bj" path="res://menus/scenes/windows/main_menu_credits_window.tscn" id="4_t55r5"] [ext_resource type="PackedScene" uid="uid://cvweffl7bo7bj" path="res://menus/scenes/windows/main_menu_credits_window.tscn" id="4_t55r5"]
[ext_resource type="Texture2D" uid="uid://c60m6ulhqcbga" path="res://assets/decor/BG.png" id="5_t55r5"]
[ext_resource type="Texture2D" uid="uid://dbpdehppn5h8v" path="res://assets/decor/entrance_bg_objects.png" id="6_cgy0s"]
[ext_resource type="Texture2D" uid="uid://ce7wdct4e27e1" path="res://assets/decor/reception.png" id="7_l4hix"]
[ext_resource type="Texture2D" uid="uid://crjrcjpfo53t0" path="res://assets/decor/menu.png" id="8_cgy0s"]
[sub_resource type="Animation" id="1"] [sub_resource type="Animation" id="1"]
resource_name = "Intro" resource_name = "Intro"
@@ -327,25 +331,84 @@ tree_root = SubResource("AnimationNodeStateMachine_vikuh")
anim_player = NodePath("../MenuAnimationPlayer") anim_player = NodePath("../MenuAnimationPlayer")
parameters/conditions/intro_done = false parameters/conditions/intro_done = false
[node name="Bg" type="Sprite2D" parent="." index="3" unique_id=1561676140]
position = Vector2(2417.25, 540)
scale = Vector2(0.5, 0.5)
texture = ExtResource("5_t55r5")
[node name="EntranceBgObjects" type="Sprite2D" parent="." index="4" unique_id=545575527]
position = Vector2(967.25, 410)
scale = Vector2(0.5, 0.5)
texture = ExtResource("6_cgy0s")
[node name="Reception" type="Sprite2D" parent="." index="5" unique_id=513064627]
position = Vector2(1063.85, 700)
scale = Vector2(0.5, 0.5)
texture = ExtResource("7_l4hix")
[node name="Menu" type="Sprite2D" parent="." index="6" unique_id=639397146]
position = Vector2(955, 552.25)
scale = Vector2(0.6, 0.6)
texture = ExtResource("8_cgy0s")
[node name="TitleMargin" parent="MenuContainer" index="0"]
theme_override_constants/margin_left = 232
theme_override_constants/margin_top = 141
[node name="TitleContainer" parent="MenuContainer/TitleMargin" index="0"] [node name="TitleContainer" parent="MenuContainer/TitleMargin" index="0"]
modulate = Color(1, 1, 1, 0) modulate = Color(1, 1, 1, 0)
[node name="TitleLabel" parent="MenuContainer/TitleMargin/TitleContainer" index="0"] [node name="TitleLabel" parent="MenuContainer/TitleMargin/TitleContainer" index="0"]
text = "GGJ26" custom_minimum_size = Vector2(200, 0)
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -268.5
offset_right = 67.359985
offset_bottom = 137.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "A majordomo in Venice"
autowrap_mode = 3
script = null
[node name="SubTitleMargin" parent="MenuContainer" index="1"]
theme_override_constants/margin_top = 256
theme_override_constants/margin_right = 84
[node name="SubTitleContainer" parent="MenuContainer/SubTitleMargin" index="0"] [node name="SubTitleContainer" parent="MenuContainer/SubTitleMargin" index="0"]
modulate = Color(1, 1, 1, 0) modulate = Color(1, 1, 1, 0)
[node name="SubTitleLabel" parent="MenuContainer/SubTitleMargin/SubTitleContainer" index="0"]
custom_minimum_size = Vector2(200, 0)
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -100.0
offset_right = 200.0
offset_bottom = 145.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Make tables plans for the best night possible"
autowrap_mode = 3
[node name="MenuButtonsMargin" parent="MenuContainer" index="2"]
theme_override_constants/margin_top = -177
[node name="MenuButtonsContainer" parent="MenuContainer/MenuButtonsMargin" index="0"] [node name="MenuButtonsContainer" parent="MenuContainer/MenuButtonsMargin" index="0"]
modulate = Color(1, 1, 1, 0) modulate = Color(1, 1, 1, 0)
[node name="MenuButtonsBoxContainer" parent="MenuContainer/MenuButtonsMargin/MenuButtonsContainer" index="0"] [node name="MenuButtonsBoxContainer" parent="MenuContainer/MenuButtonsMargin/MenuButtonsContainer" index="0"]
lock = true lock = true
[node name="OptionsButton" parent="MenuContainer/MenuButtonsMargin/MenuButtonsContainer/MenuButtonsBoxContainer" index="1"]
visible = false
[node name="CreditsButton" parent="MenuContainer/MenuButtonsMargin/MenuButtonsContainer/MenuButtonsBoxContainer" index="2"]
visible = false
[node name="VersionContainer" parent="VersionMargin" index="0"] [node name="VersionContainer" parent="VersionMargin" index="0"]
modulate = Color(1, 1, 1, 0) modulate = Color(1, 1, 1, 0)
[node name="MouseFilter" type="Control" parent="." index="6" unique_id=420264660] [node name="MouseFilter" type="Control" parent="." index="10" unique_id=420264660]
layout_mode = 1 layout_mode = 1
anchors_preset = 15 anchors_preset = 15
anchor_right = 1.0 anchor_right = 1.0

View File

@@ -2,27 +2,23 @@
[ext_resource type="Texture2D" uid="uid://dwy3kklywl0ci" path="res://assets/characters/Perso 1.png" id="1_tppor"] [ext_resource type="Texture2D" uid="uid://dwy3kklywl0ci" path="res://assets/characters/Perso 1.png" id="1_tppor"]
[ext_resource type="Script" uid="uid://bwam50qxikpw4" path="res://scenes/character/chara_resource.gd" id="2_cyb15"] [ext_resource type="Script" uid="uid://bwam50qxikpw4" path="res://scenes/character/chara_resource.gd" id="2_cyb15"]
[ext_resource type="Resource" uid="uid://b6614fqoymxur" path="res://resources/traits/silent.tres" id="3_q0kni"]
[ext_resource type="Script" uid="uid://cya40uohlvgbr" path="res://scenes/character/trait.gd" id="3_s53hh"] [ext_resource type="Script" uid="uid://cya40uohlvgbr" path="res://scenes/character/trait.gd" id="3_s53hh"]
[ext_resource type="Resource" uid="uid://cefwc4j3p7m3v" path="res://resources/traits/black.tres" id="4_tppor"] [ext_resource type="Resource" uid="uid://lhskiwag15k" path="res://resources/traits/talkative.tres" id="4_w5qmk"]
[ext_resource type="Resource" uid="uid://blu5de2dhiu46" path="res://resources/traits/young.tres" id="5_cyb15"] [ext_resource type="Resource" uid="uid://ct4iy75ai7lmy" path="res://resources/traits/enby.tres" id="6_cyb15"]
[ext_resource type="Resource" uid="uid://ct4iy75ai7lmy" path="res://resources/traits/enby.tres" id="6_tppor"] [ext_resource type="Resource" uid="uid://cb8jguybr1tlj" path="res://resources/traits/white.tres" id="7_s53hh"]
[ext_resource type="Resource" uid="uid://b118uebk1ldog" path="res://resources/traits/noble.tres" id="7_03y2d"] [ext_resource type="Resource" uid="uid://blu5de2dhiu46" path="res://resources/traits/young.tres" id="8_p10lp"]
[resource] [resource]
script = ExtResource("2_cyb15") script = ExtResource("2_cyb15")
name = "Duchex" name = "Duchex"
chara_sprite = ExtResource("1_tppor") chara_sprite = ExtResource("1_tppor")
mask_eyes_position = Vector2(59.355, 227) mask_eyes_position = Vector2(61.445, 168.635)
mask_mouth_position = Vector2(64.8, 432.04) mask_eyes_rotation = -0.06981317007977318
traits = Array[ExtResource("3_s53hh")]([ExtResource("4_tppor"), ExtResource("5_cyb15"), ExtResource("6_tppor"), ExtResource("7_03y2d")]) mask_mouth_position = Vector2(76.505, 203.355)
preferences = Dictionary[int, int]({ mask_mouth_rotation = -0.05235987755982989
0: 0, traits = Array[ExtResource("3_s53hh")]([ExtResource("4_w5qmk"), ExtResource("6_cyb15"), ExtResource("7_s53hh"), ExtResource("8_p10lp")])
2: 0, preferences = Dictionary[ExtResource("3_s53hh"), int]({
3: 0, ExtResource("3_q0kni"): 0
5: 0,
6: 2,
8: 2,
13: 0,
14: 3
}) })
metadata/_custom_type_script = "uid://bwam50qxikpw4" metadata/_custom_type_script = "uid://bwam50qxikpw4"

View File

@@ -3,23 +3,18 @@
[ext_resource type="Texture2D" uid="uid://spbjfmmk8o0s" path="res://assets/characters/Perso 3.png" id="1_d1fpd"] [ext_resource type="Texture2D" uid="uid://spbjfmmk8o0s" path="res://assets/characters/Perso 3.png" id="1_d1fpd"]
[ext_resource type="Script" uid="uid://bwam50qxikpw4" path="res://scenes/character/chara_resource.gd" id="2_ce0p8"] [ext_resource type="Script" uid="uid://bwam50qxikpw4" path="res://scenes/character/chara_resource.gd" id="2_ce0p8"]
[ext_resource type="Script" uid="uid://cya40uohlvgbr" path="res://scenes/character/trait.gd" id="3_n21sh"] [ext_resource type="Script" uid="uid://cya40uohlvgbr" path="res://scenes/character/trait.gd" id="3_n21sh"]
[ext_resource type="Resource" uid="uid://cefwc4j3p7m3v" path="res://resources/traits/black.tres" id="4_d1fpd"] [ext_resource type="Resource" uid="uid://lhskiwag15k" path="res://resources/traits/talkative.tres" id="3_tvmgq"]
[ext_resource type="Resource" uid="uid://blu5de2dhiu46" path="res://resources/traits/young.tres" id="5_12asi"] [ext_resource type="Resource" uid="uid://b6614fqoymxur" path="res://resources/traits/silent.tres" id="5_tl7uu"]
[ext_resource type="Resource" uid="uid://bmx28vnfhcs8b" path="res://resources/traits/man.tres" id="6_12asi"]
[ext_resource type="Resource" uid="uid://b118uebk1ldog" path="res://resources/traits/noble.tres" id="7_d1fpd"]
[resource] [resource]
script = ExtResource("2_ce0p8") script = ExtResource("2_ce0p8")
name = "Duke" name = "Duke"
chara_sprite = ExtResource("1_d1fpd") chara_sprite = ExtResource("1_d1fpd")
mask_eyes_position = Vector2(-87.17, -459.345) mask_eyes_position = Vector2(-23.295, -0.335)
mask_eyes_rotation = 0.11693705988361988 mask_eyes_rotation = -0.03490658503988659
mask_mouth_position = Vector2(-60.07, -343.01) mask_mouth_position = Vector2(-1.83, 2.27)
traits = Array[ExtResource("3_n21sh")]([ExtResource("4_d1fpd"), ExtResource("5_12asi"), ExtResource("6_12asi"), ExtResource("7_d1fpd")]) traits = Array[ExtResource("3_n21sh")]([ExtResource("5_tl7uu")])
preferences = Dictionary[int, int]({ preferences = Dictionary[ExtResource("3_n21sh"), int]({
5: 0, ExtResource("3_tvmgq"): 0
6: 0,
8: 3,
11: 0
}) })
metadata/_custom_type_script = "uid://bwam50qxikpw4" metadata/_custom_type_script = "uid://bwam50qxikpw4"

View File

@@ -3,10 +3,6 @@
[ext_resource type="Texture2D" uid="uid://c57s3oksagauh" path="res://assets/sprites/sprites by judas la carotte/sprite3 happy small.png" id="1_k1rnw"] [ext_resource type="Texture2D" uid="uid://c57s3oksagauh" path="res://assets/sprites/sprites by judas la carotte/sprite3 happy small.png" id="1_k1rnw"]
[ext_resource type="Script" uid="uid://bwam50qxikpw4" path="res://scenes/character/chara_resource.gd" id="3_vvog1"] [ext_resource type="Script" uid="uid://bwam50qxikpw4" path="res://scenes/character/chara_resource.gd" id="3_vvog1"]
[ext_resource type="Script" uid="uid://cya40uohlvgbr" path="res://scenes/character/trait.gd" id="4_0s3fj"] [ext_resource type="Script" uid="uid://cya40uohlvgbr" path="res://scenes/character/trait.gd" id="4_0s3fj"]
[ext_resource type="Resource" uid="uid://bc376om20da8m" path="res://resources/traits/royal.tres" id="7_0s3fj"]
[ext_resource type="Resource" uid="uid://cb8jguybr1tlj" path="res://resources/traits/white.tres" id="8_u46dm"]
[ext_resource type="Resource" uid="uid://bvophatys2o1o" path="res://resources/traits/old.tres" id="9_fvshn"]
[ext_resource type="Resource" uid="uid://bmx28vnfhcs8b" path="res://resources/traits/man.tres" id="10_hcmf1"]
[resource] [resource]
script = ExtResource("3_vvog1") script = ExtResource("3_vvog1")
@@ -16,13 +12,4 @@ mask_eyes_position = Vector2(-21.75, -274.015)
mask_eyes_rotation = 0.06981317007977318 mask_eyes_rotation = 0.06981317007977318
mask_mouth_position = Vector2(-7.63, -186.87) mask_mouth_position = Vector2(-7.63, -186.87)
mask_mouth_rotation = -0.1884955592153878 mask_mouth_rotation = -0.1884955592153878
traits = Array[ExtResource("4_0s3fj")]([ExtResource("8_u46dm"), ExtResource("9_fvshn"), ExtResource("10_hcmf1"), ExtResource("7_0s3fj")])
preferences = Dictionary[int, int]({
4: 0,
6: 0,
11: 1,
12: 3,
13: 0,
14: 1
})
metadata/_custom_type_script = "uid://bwam50qxikpw4" metadata/_custom_type_script = "uid://bwam50qxikpw4"

View File

@@ -3,25 +3,25 @@
[ext_resource type="Texture2D" uid="uid://c726frtpkk1a8" path="res://assets/characters/Perso 2.png" id="1_d1164"] [ext_resource type="Texture2D" uid="uid://c726frtpkk1a8" path="res://assets/characters/Perso 2.png" id="1_d1164"]
[ext_resource type="Script" uid="uid://bwam50qxikpw4" path="res://scenes/character/chara_resource.gd" id="2_g8bvo"] [ext_resource type="Script" uid="uid://bwam50qxikpw4" path="res://scenes/character/chara_resource.gd" id="2_g8bvo"]
[ext_resource type="Script" uid="uid://cya40uohlvgbr" path="res://scenes/character/trait.gd" id="3_dkw07"] [ext_resource type="Script" uid="uid://cya40uohlvgbr" path="res://scenes/character/trait.gd" id="3_dkw07"]
[ext_resource type="Resource" uid="uid://bc376om20da8m" path="res://resources/traits/royal.tres" id="8_d1164"] [ext_resource type="Resource" uid="uid://lhskiwag15k" path="res://resources/traits/talkative.tres" id="3_y3hrs"]
[ext_resource type="Resource" uid="uid://b6614fqoymxur" path="res://resources/traits/silent.tres" id="4_hdamc"]
[ext_resource type="Resource" uid="uid://ct4iy75ai7lmy" path="res://resources/traits/enby.tres" id="5_wjlcp"]
[ext_resource type="Resource" uid="uid://bvophatys2o1o" path="res://resources/traits/old.tres" id="8_j0xhd"] [ext_resource type="Resource" uid="uid://bvophatys2o1o" path="res://resources/traits/old.tres" id="8_j0xhd"]
[ext_resource type="Resource" uid="uid://cb8jguybr1tlj" path="res://resources/traits/white.tres" id="9_aywjr"] [ext_resource type="Resource" uid="uid://cb8jguybr1tlj" path="res://resources/traits/white.tres" id="9_aywjr"]
[ext_resource type="Resource" uid="uid://dmd7gilnmcefr" path="res://resources/traits/woman.tres" id="10_tw1u2"] [ext_resource type="Resource" uid="uid://dmd7gilnmcefr" path="res://resources/traits/woman.tres" id="10_tw1u2"]
[ext_resource type="Resource" uid="uid://deygyo2n88228" path="res://resources/traits/speaks_of_cats.tres" id="11_utmh4"]
[resource] [resource]
script = ExtResource("2_g8bvo") script = ExtResource("2_g8bvo")
name = "Queen" name = "Queen"
chara_sprite = ExtResource("1_d1164") chara_sprite = ExtResource("1_d1164")
mask_eyes_position = Vector2(13.285, 181.09) mask_eyes_position = Vector2(48, 187.345)
mask_mouth_position = Vector2(26.595, 398.745) mask_eyes_rotation = 0.05235987755982989
traits = Array[ExtResource("3_dkw07")]([ExtResource("9_aywjr"), ExtResource("8_j0xhd"), ExtResource("10_tw1u2"), ExtResource("8_d1164"), ExtResource("11_utmh4")]) mask_mouth_position = Vector2(31.595, 176.245)
preferences = Dictionary[int, int]({ mask_mouth_rotation = 0.017453292519943295
5: 2, traits = Array[ExtResource("3_dkw07")]([ExtResource("3_y3hrs"), ExtResource("9_aywjr"), ExtResource("10_tw1u2"), ExtResource("8_j0xhd")])
6: 0, preferences = Dictionary[ExtResource("3_dkw07"), int]({
9: 2, ExtResource("3_y3hrs"): 4,
11: 3, ExtResource("4_hdamc"): 0,
12: 0, ExtResource("5_wjlcp"): 3
14: 3
}) })
metadata/_custom_type_script = "uid://bwam50qxikpw4" metadata/_custom_type_script = "uid://bwam50qxikpw4"

View File

@@ -1,12 +0,0 @@
[gd_resource type="Resource" script_class="MaskedChara" format=3 uid="uid://ctqdbo8xg3v88"]
[ext_resource type="Script" uid="uid://d26mv2xtvmpqt" path="res://scenes/mask/mask_resource.gd" id="1_mu37d"]
[ext_resource type="Resource" uid="uid://c87odmn680x7" path="res://resources/characters/duchex.tres" id="1_vsvkr"]
[ext_resource type="Script" uid="uid://b8peyg02l0mrn" path="res://scenes/managers/masked_chara.gd" id="2_f07ys"]
[ext_resource type="Resource" uid="uid://cuf1ocb4px4m3" path="res://resources/masks/cat.tres" id="3_4tayd"]
[resource]
script = ExtResource("2_f07ys")
character = ExtResource("1_vsvkr")
masks = Array[ExtResource("1_mu37d")]([ExtResource("3_4tayd")])
metadata/_custom_type_script = "uid://b8peyg02l0mrn"

View File

@@ -0,0 +1,11 @@
[gd_resource type="Resource" script_class="MaskedChara" format=3 uid="uid://c25kg6um2k1dy"]
[ext_resource type="Resource" uid="uid://c87odmn680x7" path="res://resources/characters/duchex.tres" id="1_nsuhm"]
[ext_resource type="Script" uid="uid://b8peyg02l0mrn" path="res://scenes/managers/masked_chara.gd" id="2_lb6bi"]
[ext_resource type="Resource" uid="uid://pdiaprcknftw" path="res://resources/masks/mute.tres" id="2_xmkje"]
[resource]
script = ExtResource("2_lb6bi")
character = ExtResource("1_nsuhm")
mouth_mask = ExtResource("2_xmkje")
metadata/_custom_type_script = "uid://b8peyg02l0mrn"

View File

@@ -0,0 +1,11 @@
[gd_resource type="Resource" script_class="MaskedChara" format=3 uid="uid://im83307vumpx"]
[ext_resource type="Resource" uid="uid://wq3g1j3l4gl6" path="res://resources/characters/queen.tres" id="1_8rhpq"]
[ext_resource type="Resource" uid="uid://vsvgpvluq7sh" path="res://resources/masks/blind.tres" id="2_57tio"]
[ext_resource type="Script" uid="uid://b8peyg02l0mrn" path="res://scenes/managers/masked_chara.gd" id="2_84xil"]
[resource]
script = ExtResource("2_84xil")
character = ExtResource("1_8rhpq")
face_mask = ExtResource("2_57tio")
metadata/_custom_type_script = "uid://b8peyg02l0mrn"

View File

@@ -1,12 +0,0 @@
[gd_resource type="Resource" script_class="MaskedChara" format=3 uid="uid://ca2fcdibf0mdm"]
[ext_resource type="Script" uid="uid://d26mv2xtvmpqt" path="res://scenes/mask/mask_resource.gd" id="1_ns508"]
[ext_resource type="Resource" uid="uid://wq3g1j3l4gl6" path="res://resources/characters/queen.tres" id="1_xr5g8"]
[ext_resource type="Script" uid="uid://b8peyg02l0mrn" path="res://scenes/managers/masked_chara.gd" id="2_5n8mj"]
[ext_resource type="Resource" uid="uid://cbcqtj8mxngfy" path="res://resources/masks/unracist.tres" id="3_ugmdk"]
[resource]
script = ExtResource("2_5n8mj")
character = ExtResource("1_xr5g8")
masks = Array[ExtResource("1_ns508")]([ExtResource("3_ugmdk")])
metadata/_custom_type_script = "uid://b8peyg02l0mrn"

View File

@@ -1,12 +0,0 @@
[gd_resource type="Resource" script_class="MaskResource" format=3 uid="uid://cuf1ocb4px4m3"]
[ext_resource type="Texture2D" uid="uid://buql3bcbqx4pp" path="res://menus/assets/git_logo/Git-Logo-2Color.png" id="1_1u1n5"]
[ext_resource type="Script" uid="uid://d26mv2xtvmpqt" path="res://scenes/mask/mask_resource.gd" id="2_ypt8w"]
[resource]
script = ExtResource("2_ypt8w")
mask_sprite = ExtResource("1_1u1n5")
tags_multipliers = Dictionary[int, int]({
12: 0
})
metadata/_custom_type_script = "uid://d26mv2xtvmpqt"

View File

@@ -0,0 +1,12 @@
[gd_resource type="Resource" script_class="MaskResource" format=3 uid="uid://kau80jesm22w"]
[ext_resource type="Texture2D" uid="uid://dr265gon4k377" path="res://assets/masks/Bouche 1.png" id="1_r5drl"]
[ext_resource type="Script" uid="uid://d26mv2xtvmpqt" path="res://scenes/mask/mask_resource.gd" id="2_ncal4"]
[resource]
script = ExtResource("2_ncal4")
mask_sprite = ExtResource("1_r5drl")
region = 1
stimuli = 1
stimuli_multiplier = -2.0
metadata/_custom_type_script = "uid://d26mv2xtvmpqt"

View File

@@ -1,11 +1,12 @@
[gd_resource type="Resource" script_class="MaskResource" format=3 uid="uid://pdiaprcknftw"] [gd_resource type="Resource" script_class="MaskResource" format=3 uid="uid://pdiaprcknftw"]
[ext_resource type="Script" uid="uid://d26mv2xtvmpqt" path="res://scenes/mask/mask_resource.gd" id="1_urvbb"] [ext_resource type="Script" uid="uid://d26mv2xtvmpqt" path="res://scenes/mask/mask_resource.gd" id="1_urvbb"]
[ext_resource type="Texture2D" uid="uid://cftllq6l7xclt" path="res://icon.svg" id="1_wp4x3"] [ext_resource type="Texture2D" uid="uid://bfnvs01ynm55q" path="res://assets/masks/Bouche 3.png" id="1_wp4x3"]
[resource] [resource]
script = ExtResource("1_urvbb") script = ExtResource("1_urvbb")
mask_sprite = ExtResource("1_wp4x3") mask_sprite = ExtResource("1_wp4x3")
region = 1 region = 1
stimuli = 1 stimuli = 1
stimuli_multiplier = 0.0
metadata/_custom_type_script = "uid://d26mv2xtvmpqt" metadata/_custom_type_script = "uid://d26mv2xtvmpqt"

View File

@@ -0,0 +1,12 @@
[gd_resource type="Resource" script_class="MaskResource" format=3 uid="uid://divy6byhpwgs2"]
[ext_resource type="Texture2D" uid="uid://02al0mfbvjc1" path="res://assets/masks/Bouche 2.png" id="1_dunu4"]
[ext_resource type="Script" uid="uid://d26mv2xtvmpqt" path="res://scenes/mask/mask_resource.gd" id="2_cle5s"]
[resource]
script = ExtResource("2_cle5s")
mask_sprite = ExtResource("1_dunu4")
region = 1
stimuli = 1
stimuli_multiplier = 2.0
metadata/_custom_type_script = "uid://d26mv2xtvmpqt"

View File

@@ -1,12 +0,0 @@
[gd_resource type="Resource" script_class="MaskResource" format=3 uid="uid://cbcqtj8mxngfy"]
[ext_resource type="Script" uid="uid://d26mv2xtvmpqt" path="res://scenes/mask/mask_resource.gd" id="1_fs0fy"]
[ext_resource type="Texture2D" uid="uid://cftllq6l7xclt" path="res://icon.svg" id="1_fv3id"]
[resource]
script = ExtResource("1_fs0fy")
mask_sprite = ExtResource("1_fv3id")
mask_transform = null
category = 3
category_multiplier = 0.0
metadata/_custom_type_script = "uid://d26mv2xtvmpqt"

View File

@@ -0,0 +1,9 @@
[gd_resource type="Resource" script_class="Trait" format=3 uid="uid://b6614fqoymxur"]
[ext_resource type="Script" uid="uid://cya40uohlvgbr" path="res://scenes/character/trait.gd" id="1_750wv"]
[resource]
script = ExtResource("1_750wv")
name = "silent"
stimulis = Array[int]([1])
metadata/_custom_type_script = "uid://cya40uohlvgbr"

View File

@@ -0,0 +1,9 @@
[gd_resource type="Resource" script_class="Trait" format=3 uid="uid://lhskiwag15k"]
[ext_resource type="Script" uid="uid://cya40uohlvgbr" path="res://scenes/character/trait.gd" id="1_rcjnw"]
[resource]
script = ExtResource("1_rcjnw")
name = "talkative"
stimulis = Array[int]([1])
metadata/_custom_type_script = "uid://cya40uohlvgbr"

View File

@@ -5,6 +5,5 @@
[resource] [resource]
script = ExtResource("1_msbkw") script = ExtResource("1_msbkw")
name = "young" name = "young"
stimulis = Array[int]([1, 2]) stimulis = Array[int]([1])
tags = Array[int]([0])
metadata/_custom_type_script = "uid://cya40uohlvgbr" metadata/_custom_type_script = "uid://cya40uohlvgbr"

View File

@@ -42,4 +42,4 @@ var mask_mouth_rotation : float = 0.0:
@export_category("Traits and preferences") @export_category("Traits and preferences")
@export var traits: Array[Trait] @export var traits: Array[Trait]
@export var preferences: Dictionary[Trait.Tag, Preference] @export var preferences: Dictionary[Trait, Preference]

View File

@@ -1,8 +1,8 @@
[gd_scene format=3 uid="uid://bvpyqyftqhy45"] [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="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="Resource" uid="uid://gy4ygqrjj5ys" path="res://resources/characters/duke.tres" id="2_fgi2k"]
[ext_resource type="Texture2D" uid="uid://c726frtpkk1a8" path="res://assets/characters/Perso 2.png" id="3_f8hpl"] [ext_resource type="Texture2D" uid="uid://spbjfmmk8o0s" path="res://assets/characters/Perso 3.png" id="3_f8hpl"]
[ext_resource type="PackedScene" uid="uid://3jlukpb5hefb" path="res://scenes/mask/mask.tscn" id="3_mutn8"] [ext_resource type="PackedScene" uid="uid://3jlukpb5hefb" path="res://scenes/mask/mask.tscn" id="3_mutn8"]
[sub_resource type="Animation" id="Animation_fgi2k"] [sub_resource type="Animation" id="Animation_fgi2k"]
@@ -164,10 +164,11 @@ chara_resource = ExtResource("2_fgi2k")
texture = ExtResource("3_f8hpl") texture = ExtResource("3_f8hpl")
[node name="MaskMouth" parent="." unique_id=1087336064 instance=ExtResource("3_mutn8")] [node name="MaskMouth" parent="." unique_id=1087336064 instance=ExtResource("3_mutn8")]
position = Vector2(26.595, 398.745) position = Vector2(-1.83, 2.27)
[node name="MaskEyes" parent="." unique_id=428968220 instance=ExtResource("3_mutn8")] [node name="MaskEyes" parent="." unique_id=428968220 instance=ExtResource("3_mutn8")]
position = Vector2(13.285, 181.09) position = Vector2(-23.295, -0.335)
rotation = -0.034906585
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=713965213] [node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=713965213]
libraries/ = SubResource("AnimationLibrary_7ex5l") libraries/ = SubResource("AnimationLibrary_7ex5l")

View File

@@ -18,20 +18,24 @@
[ext_resource type="AudioStream" uid="uid://x6erlvj03nlm" path="res://assets/audio/kenney_casino-audio/Audio/card-slide-8.ogg" id="9_i7in8"] [ext_resource type="AudioStream" uid="uid://x6erlvj03nlm" path="res://assets/audio/kenney_casino-audio/Audio/card-slide-8.ogg" id="9_i7in8"]
[ext_resource type="Script" uid="uid://d26mv2xtvmpqt" path="res://scenes/mask/mask_resource.gd" id="9_m4h2d"] [ext_resource type="Script" uid="uid://d26mv2xtvmpqt" path="res://scenes/mask/mask_resource.gd" id="9_m4h2d"]
[ext_resource type="AudioStream" uid="uid://vrw6idscfnei" path="res://assets/audio/kenney_casino-audio/Audio/card-shove-1.ogg" id="10_6llfj"] [ext_resource type="AudioStream" uid="uid://vrw6idscfnei" path="res://assets/audio/kenney_casino-audio/Audio/card-shove-1.ogg" id="10_6llfj"]
[ext_resource type="Resource" uid="uid://cuf1ocb4px4m3" path="res://resources/masks/cat.tres" id="10_p8abn"]
[ext_resource type="AudioStream" uid="uid://b5ea6pr6bv85d" path="res://assets/audio/kenney_casino-audio/Audio/card-shove-2.ogg" id="11_0bhws"] [ext_resource type="AudioStream" uid="uid://b5ea6pr6bv85d" path="res://assets/audio/kenney_casino-audio/Audio/card-shove-2.ogg" id="11_0bhws"]
[ext_resource type="Resource" uid="uid://pdiaprcknftw" path="res://resources/masks/mute.tres" id="11_s17dp"] [ext_resource type="Resource" uid="uid://pdiaprcknftw" path="res://resources/masks/mute.tres" id="11_s17dp"]
[ext_resource type="Resource" uid="uid://cbcqtj8mxngfy" path="res://resources/masks/unracist.tres" id="12_37hlw"]
[ext_resource type="AudioStream" uid="uid://dpv07j0ia0ayl" path="res://assets/audio/kenney_casino-audio/Audio/card-shove-3.ogg" id="12_62atk"] [ext_resource type="AudioStream" uid="uid://dpv07j0ia0ayl" path="res://assets/audio/kenney_casino-audio/Audio/card-shove-3.ogg" id="12_62atk"]
[ext_resource type="AudioStream" uid="uid://b7pe3ogc8rbvx" path="res://assets/audio/kenney_casino-audio/Audio/card-shove-4.ogg" id="13_i7in8"] [ext_resource type="AudioStream" uid="uid://b7pe3ogc8rbvx" path="res://assets/audio/kenney_casino-audio/Audio/card-shove-4.ogg" id="13_i7in8"]
[ext_resource type="Script" uid="uid://cgctwciolfqe5" path="res://scenes/camera/camera_controller.gd" id="14_0bhws"] [ext_resource type="Script" uid="uid://cgctwciolfqe5" path="res://scenes/camera/camera_controller.gd" id="14_0bhws"]
[ext_resource type="Texture2D" uid="uid://c60m6ulhqcbga" path="res://assets/decor/BG.png" id="14_os81g"] [ext_resource type="Texture2D" uid="uid://c60m6ulhqcbga" path="res://assets/decor/BG.png" id="14_os81g"]
[ext_resource type="Texture2D" uid="uid://dbpdehppn5h8v" path="res://assets/decor/entrance_bg_objects.png" id="15_1k3ck"] [ext_resource type="Texture2D" uid="uid://dbpdehppn5h8v" path="res://assets/decor/entrance_bg_objects.png" id="15_1k3ck"]
[ext_resource type="Resource" uid="uid://vsvgpvluq7sh" path="res://resources/masks/blind.tres" id="24_g2upo"]
[ext_resource type="PackedScene" uid="uid://0rq12xgcteak" path="res://scenes/list/list.tscn" id="25_6llfj"] [ext_resource type="PackedScene" uid="uid://0rq12xgcteak" path="res://scenes/list/list.tscn" id="25_6llfj"]
[ext_resource type="Resource" uid="uid://dfguca2526tk6" path="res://resources/guests/queen_unmasked.tres" id="26_rofvo"] [ext_resource type="Resource" uid="uid://t2n1q71ce4x6" path="res://resources/masks/deaf.tres" id="25_38d3o"]
[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://bfvky2dpu6vv0" path="res://resources/guests/duke_unmasked.tres" id="27_6w6mm"]
[ext_resource type="Resource" uid="uid://ca2fcdibf0mdm" path="res://resources/guests/queen_unracist.tres" id="28_r1bmu"] [ext_resource type="Resource" uid="uid://cfargib0urafc" path="res://resources/guests/duchex_unmasked.tres" id="27_62f45"]
[ext_resource type="Resource" uid="uid://ctqdbo8xg3v88" path="res://resources/guests/duchex_cat.tres" id="29_6w6mm"] [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="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://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="Texture2D" uid="uid://ce7wdct4e27e1" path="res://assets/decor/reception.png" id="35_62f45"]
@@ -373,15 +377,17 @@ texture = ExtResource("15_1k3ck")
[node name="GameManager" type="Node" parent="." unique_id=528989100 node_paths=PackedStringArray("character", "guest_list", "mask_list", "tables")] [node name="GameManager" type="Node" parent="." unique_id=528989100 node_paths=PackedStringArray("character", "guest_list", "mask_list", "tables")]
script = ExtResource("3_hxu8e") script = ExtResource("3_hxu8e")
character_roster = Array[ExtResource("4_nvumn")]([ExtResource("5_ou6is"), ExtResource("6_necax"), ExtResource("7_r4lks"), ExtResource("8_pg34l")]) character_roster = Array[ExtResource("4_nvumn")]([ExtResource("5_ou6is"), ExtResource("6_necax"), ExtResource("7_r4lks"), ExtResource("8_pg34l")])
mask_roster = Array[ExtResource("9_m4h2d")]([ExtResource("10_p8abn"), ExtResource("11_s17dp"), ExtResource("12_37hlw")]) mask_roster = Array[ExtResource("9_m4h2d")]([ExtResource("24_g2upo"), ExtResource("25_38d3o"), ExtResource("26_i6fjx"), ExtResource("11_s17dp"), ExtResource("28_7dg2i"), ExtResource("29_08tbl")])
character = NodePath("../Character") character = NodePath("../Character")
guest_list = NodePath("../GuestList") guest_list = NodePath("../GuestList")
mask_list = NodePath("../MaskList") mask_list = NodePath("../MaskList")
tables = [NodePath("../Table"), NodePath("../Table2"), NodePath("../Table3")] tables = [NodePath("../Table"), NodePath("../Table2"), NodePath("../Table3")]
lvl1_guest_1 = ExtResource("26_rofvo") lvl1_guest_1 = ExtResource("27_62f45")
lvl1_guest_2 = ExtResource("27_6w6mm") lvl1_guest_2 = ExtResource("27_6w6mm")
lvl2_guest_1 = ExtResource("28_r1bmu") lvl2_guest_1 = ExtResource("27_62f45")
lvl2_guest_2 = ExtResource("29_6w6mm") lvl2_guest_2 = ExtResource("30_6g32y")
lvl3_guest_1 = ExtResource("33_f4j1x")
lvl3_guest_2 = ExtResource("29_62f45")
[node name="Camera2D" type="Camera2D" parent="." unique_id=1166192115] [node name="Camera2D" type="Camera2D" parent="." unique_id=1166192115]
limit_left = -960 limit_left = -960

View File

@@ -23,8 +23,12 @@ class_name GameManager
@export var lvl2_guest_1: MaskedChara @export var lvl2_guest_1: MaskedChara
@export var lvl2_guest_2: MaskedChara @export var lvl2_guest_2: MaskedChara
@export_group("Level 3")
@export var lvl3_guest_1: MaskedChara
@export var lvl3_guest_2: MaskedChara
@export_category("Random levels") @export_category("Random levels")
@export var max_roster_size: int = 3; @export var current_level: Levels = Levels.LVL1
@export_tool_button("Create chara roster") var create_roster_action = create_new_roster @export_tool_button("Create chara roster") var create_roster_action = create_new_roster
var current_chara_roster: Array[MaskedChara] var current_chara_roster: Array[MaskedChara]
@@ -37,13 +41,14 @@ enum GameState {
enum Levels { enum Levels {
LVL1, LVL1,
LVL2, LVL2,
LVL3,
RANDOM RANDOM
} }
var current_game_state = GameState.READY var current_game_state = GameState.READY
var current_level = Levels.LVL1
var first_guest = true var first_guest = true
var current_guest: MaskedChara var current_guest: MaskedChara
var selected_seat: Seat var selected_seat: Seat
var roster_size: int = 2
@onready var camera_2d: Camera2D = $"../Camera2D" @onready var camera_2d: Camera2D = $"../Camera2D"
@onready var ring_bell: Sprite2D = $"../RingBell" @onready var ring_bell: Sprite2D = $"../RingBell"
@@ -54,7 +59,7 @@ func create_new_roster() -> void:
current_chara_roster = [] current_chara_roster = []
print(character_roster.size()) print(character_roster.size())
var roster_for_this_round = character_roster.duplicate() var roster_for_this_round = character_roster.duplicate()
var max_number_of_people = min(max_roster_size, character_roster.size()) var max_number_of_people = min(roster_size, character_roster.size())
for i in range(max_number_of_people): for i in range(max_number_of_people):
# Pick unique characters for the roster # Pick unique characters for the roster
var random_index = randi_range(0, roster_for_this_round.size() - 1) var random_index = randi_range(0, roster_for_this_round.size() - 1)
@@ -113,7 +118,10 @@ func ending_tween_cb():
mask_list.visible = false mask_list.visible = false
if current_level == Levels.LVL1: if current_level == Levels.LVL1:
current_level = Levels.LVL2 current_level = Levels.LVL2
elif current_level == Levels.LVL2:
current_level = Levels.LVL3
else: else:
roster_size += 1
current_level = Levels.RANDOM current_level = Levels.RANDOM
@@ -140,6 +148,8 @@ func on_ready_bell_pressed() -> void:
current_chara_roster = [lvl1_guest_1, lvl1_guest_2] current_chara_roster = [lvl1_guest_1, lvl1_guest_2]
elif current_level == Levels.LVL2: elif current_level == Levels.LVL2:
current_chara_roster = [lvl2_guest_1, lvl2_guest_2] current_chara_roster = [lvl2_guest_1, lvl2_guest_2]
elif current_level == Levels.LVL3:
current_chara_roster = [lvl3_guest_1, lvl3_guest_2]
else: else:
create_new_roster() create_new_roster()

View File

@@ -5,7 +5,7 @@ class_name MaskedChara
@export var face_mask: MaskResource @export var face_mask: MaskResource
@export var mouth_mask: MaskResource @export var mouth_mask: MaskResource
@export var pref_score_map: Dictionary[CharacterResource.Preference, float] = { var pref_score_map: Dictionary[CharacterResource.Preference, float] = {
CharacterResource.Preference.LOVE: 2.0, CharacterResource.Preference.LOVE: 2.0,
CharacterResource.Preference.APPROVE: 1.0, CharacterResource.Preference.APPROVE: 1.0,
CharacterResource.Preference.DONT_CARE: 0.0, CharacterResource.Preference.DONT_CARE: 0.0,
@@ -44,9 +44,11 @@ func compute_score(other_guests: Array[MaskedChara]) -> float:
strength *= face_mask.stimuli_multiplier strength *= face_mask.stimuli_multiplier
trait_strength += strength trait_strength += strength
var preference = character.preferences.get(guest_trait.tag) if guest_trait.tag in character.preferences else CharacterResource.Preference.APPROVE 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 1.0 var score_multiplier = pref_score_map.get(preference) if preference in pref_score_map else 0.0
guest_appreciation += trait_strength*score_multiplier guest_appreciation += trait_strength*score_multiplier
print("%s guest appreciation %s" % [character.name, guest_appreciation])
overall_score += guest_appreciation overall_score += guest_appreciation

View File

@@ -12,28 +12,9 @@ class_name Mask
func _on_mask_resource_changed() -> void: func _on_mask_resource_changed() -> void:
if mask_resource == null: if mask_resource == null:
mask_sprite.visible = false
return return
if mask_sprite != null: if mask_sprite != null:
mask_sprite.visible = true
mask_sprite.texture = mask_resource.mask_sprite mask_sprite.texture = mask_resource.mask_sprite
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if Engine.is_editor_hint():
_engine_process(delta)
else:
_game_process(delta)
func _game_process(delta: float) -> void:
pass
func _engine_process(delta: float) -> void:
if mask_resource == null:
return

View File

@@ -1,12 +1,12 @@
[gd_scene format=3 uid="uid://3jlukpb5hefb"] [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="Script" uid="uid://cfo3mk5f2q3ej" path="res://scenes/mask/mask.gd" id="1_61b51"]
[ext_resource type="Texture2D" uid="uid://cftllq6l7xclt" path="res://icon.svg" id="1_jlvus"] [ext_resource type="Resource" uid="uid://divy6byhpwgs2" path="res://resources/masks/truthy.tres" id="2_0pm64"]
[ext_resource type="Resource" uid="uid://pdiaprcknftw" path="res://resources/masks/mute.tres" id="2_0pm64"] [ext_resource type="Texture2D" uid="uid://02al0mfbvjc1" path="res://assets/masks/Bouche 2.png" id="3_htpgb"]
[node name="Mask" type="Node2D" unique_id=428968220] [node name="Mask" type="Node2D" unique_id=428968220]
script = ExtResource("1_61b51") script = ExtResource("1_61b51")
mask_resource = ExtResource("2_0pm64") mask_resource = ExtResource("2_0pm64")
[node name="MaskSprite" type="Sprite2D" parent="." unique_id=1997645103] [node name="MaskSprite" type="Sprite2D" parent="." unique_id=1997645103]
texture = ExtResource("1_jlvus") texture = ExtResource("3_htpgb")

View File

@@ -1,8 +1,9 @@
[gd_scene format=3 uid="uid://l0hl170iqkgx"] [gd_scene format=3 uid="uid://l0hl170iqkgx"]
[ext_resource type="Script" uid="uid://cuojjiwxidmwu" path="res://scenes/seat/seat.gd" id="1_pceab"] [ext_resource type="Script" uid="uid://cuojjiwxidmwu" path="res://scenes/seat/seat.gd" id="1_pceab"]
[ext_resource type="Resource" uid="uid://ca2fcdibf0mdm" path="res://resources/guests/queen_unracist.tres" id="2_wnjs1"] [ext_resource type="Resource" uid="uid://c25kg6um2k1dy" path="res://resources/guests/duchex_mute.tres" id="2_i14o5"]
[ext_resource type="PackedScene" uid="uid://bvpyqyftqhy45" path="res://scenes/character/character.tscn" id="3_dxmy0"] [ext_resource type="PackedScene" uid="uid://bvpyqyftqhy45" path="res://scenes/character/character.tscn" id="3_dxmy0"]
[ext_resource type="Resource" uid="uid://c87odmn680x7" path="res://resources/characters/duchex.tres" id="4_ipxud"]
[ext_resource type="Texture2D" uid="uid://cftllq6l7xclt" path="res://icon.svg" id="4_wnjs1"] [ext_resource type="Texture2D" uid="uid://cftllq6l7xclt" path="res://icon.svg" id="4_wnjs1"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rofvo"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_rofvo"]
@@ -10,11 +11,13 @@ size = Vector2(128, 128)
[node name="Seat" type="Area2D" unique_id=1604639021] [node name="Seat" type="Area2D" unique_id=1604639021]
script = ExtResource("1_pceab") script = ExtResource("1_pceab")
guest = ExtResource("2_wnjs1") guest = ExtResource("2_i14o5")
[node name="Character" parent="." unique_id=138741531 instance=ExtResource("3_dxmy0")] [node name="Character" parent="." unique_id=138741531 instance=ExtResource("3_dxmy0")]
chara_resource = ExtResource("4_ipxud")
[node name="Empty" type="Sprite2D" parent="." unique_id=357649392] [node name="Empty" type="Sprite2D" parent="." unique_id=357649392]
visible = false
texture = ExtResource("4_wnjs1") texture = ExtResource("4_wnjs1")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1054126207] [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1054126207]