Tough_Crowd/godot/scenes/crowd/person.tscn

40 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-01-27 15:45:22 +00:00
[gd_scene load_steps=4 format=3 uid="uid://cl4fax7fbh2g7"]
2024-01-26 20:06:59 +00:00
2024-01-26 21:10:03 +00:00
[ext_resource type="Script" path="res://scenes/crowd/person.gd" id="1_mx0i8"]
2024-01-27 11:02:06 +00:00
[ext_resource type="Script" path="res://scenes/crowd/audience_profile.gd" id="2_bsodr"]
2024-01-27 12:08:34 +00:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5rd5b"]
2024-01-27 15:45:22 +00:00
[node name="Person" type="Node2D" node_paths=PackedStringArray("head", "body", "profile")]
2024-01-26 21:10:03 +00:00
script = ExtResource("1_mx0i8")
head = NodePath("Head")
2024-01-27 15:45:22 +00:00
body = NodePath("Body")
2024-01-27 11:02:06 +00:00
profile = NodePath("Profile")
expression = 1
2024-01-26 20:06:59 +00:00
2024-01-27 15:45:22 +00:00
[node name="Body" type="Node2D" parent="."]
position = Vector2(0, 15)
scale = Vector2(0.3, 0.3)
2024-01-26 21:10:03 +00:00
[node name="Head" type="Node2D" parent="."]
2024-01-26 20:06:59 +00:00
position = Vector2(0, -16)
scale = Vector2(0.3, 0.3)
2024-01-27 12:08:34 +00:00
[node name="StaticBody2D" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
shape = SubResource("RectangleShape2D_5rd5b")
2024-01-27 12:54:28 +00:00
2024-01-27 11:02:06 +00:00
[node name="Profile" type="Node2D" parent="."]
script = ExtResource("2_bsodr")
happy_threshold = 3.0
angry_threshold = -3.0
lashout_threshold = -10.0
2024-01-27 16:06:28 +00:00
happiness_decay = 0.1
lashout_decay = 0.1
2024-01-27 14:20:18 +00:00
joke_mood_mapping = {
0: 1.0,
1: 0.0,
2: -0.5
}