游戏开发:对话树与角色动画设置
1. 对话树系统搭建
1.1 对话主题与回复数组
首先,定义玩家与 NPC 2 的对话主题数组 topics_2 和回复数组 replies_2 ,示例代码如下:
// Player conversation topics with npc 2
internal var topics_2 = new String[11];
topics_2[0] = "000 null";
topics_2[1] = "101 Hi";
topics_2[2] = "102 What happened to the other guy?";
topics_2[3] = "103 I got the topi fruit, what am I supposed to do with it?";
topics_2[4] = "004 Where do I find the Tree of Life?";
topics_2[5] = "005 How do I find the tunnels?";
topics_2[6] = "006 Can you help me?";
topics_2[7] = "107 I keep blacking out in the tunnels, any idea where I can find a lantern?";
topics_2[8] = "108 The maze looks different, how do I get out of it?";
topics_2[9] = "109
超级会员免费看
订阅专栏 解锁全文
909

被折叠的 条评论
为什么被折叠?



