-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathspeaking_group.rpy
80 lines (56 loc) · 1.76 KB
/
speaking_group.rpy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# 游戏的脚本可置于此文件中。
default a = AdvancedCharacter(
"Alice",
image="alice", # 绑定相应角色的立绘图像标签
)
default m = AdvancedCharacter(
"Mary",
image="mary",
)
default s = AdvancedCharacter(
"Sylvie",
image="sylvie",
)
# 定义一个对话组
default speaking_group = SpeakingGroup(a, m, s)
# 定义角色不同表情的立绘
image alice blush = "images/Alice_VNSpriteSet/Alice_Blush.png"
image alice default = "images/Alice_VNSpriteSet/Alice_Default.png"
image alice worried = "images/Alice_VNSpriteSet/Alice_Worried.png"
image alice doubt = "images/Alice_VNSpriteSet/Alice_Doubt.png"
image mary angry = "images/Sprite - Female Pink Hair Starter Pack/Sprite F PinkH Professional Angry01.png"
image mary smile = "images/Sprite - Female Pink Hair Starter Pack/Sprite F PinkH Professional Smile01.png"
image sylvie smile = "images/Sprite Starter Pack - Female White Hair/FWH smile01.png"
image sylvie angry = "images/Sprite Starter Pack - Female White Hair/FWH angry01.png"
# 游戏在此开始。
label start:
scene bg:
xysize (1920, 1080)
truecenter
# 将角色加入对话组中
#$ speaking_group.add_characters(a, m, s)
a "Hello, my name is Alice. How can I help you today?"
show alice blush:
zoom 0.65
center
a "a"
a @ default "a default"
show mary angry:
zoom 0.7
left
m "m"
m @ smile "m smile"
show sylvie smile:
zoom 0.65
right
s "s"
s @ angry "s angry"
a "return to a"
m "return to m"
# 当需要移除角色时(一位角色离场)
$ speaking_group.del_characters(s)
hide sylvie
"Sylvie left."
m "She has left now."
a "This is our turn."
return