如何使用Python制作菜单?

问题描述 投票:0回答:1

我是 ren'py 的新手,我正在尝试制作一个包含“是”和“否”选项的菜单。但无论我做什么或如何处理它,都是错误的。 enter image description here

我尝试过不同的菜单选择,以及缩进和大写。

python menu renpy
1个回答
0
投票

此代码的格式如下:

label start:
    scene bg_room  # You can display bg image here
    
    "Do you want to continue?"
    
    menu:
        "Yes":
            "You selected 'Yes'."
            jump continue_story
        
        "No":
            "You selected 'No'."
            jump end_story

label continue_story:
    "The story continues..."

label end_story:
    "The story ends..."
© www.soinside.com 2019 - 2024. All rights reserved.