Ren'Py language preview
1. A basic scene with dialogue
labels, scene/show statements, and character dialogue
horizon-dark
label start:
scene bg room
show eileen happy at left
with dissolve
e "Hello, {b}world{/b}!"
e "You have [gold] gold pieces."
$ gold = gold + 10
menu:
"Ask about the weather":
jump weather
"Say goodbye":
return
atom-one-dark
label start:
scene bg room
show eileen happy at left
with dissolve
e "Hello, {b}world{/b}!"
e "You have [gold] gold pieces."
$ gold = gold + 10
menu:
"Ask about the weather":
jump weather
"Say goodbye":
return
github-dark
label start:
scene bg room
show eileen happy at left
with dissolve
e "Hello, {b}world{/b}!"
e "You have [gold] gold pieces."
$ gold = gold + 10
menu:
"Ask about the weather":
jump weather
"Say goodbye":
return
dracula
label start:
scene bg room
show eileen happy at left
with dissolve
e "Hello, {b}world{/b}!"
e "You have [gold] gold pieces."
$ gold = gold + 10
menu:
"Ask about the weather":
jump weather
"Say goodbye":
return
nord
label start:
scene bg room
show eileen happy at left
with dissolve
e "Hello, {b}world{/b}!"
e "You have [gold] gold pieces."
$ gold = gold + 10
menu:
"Ask about the weather":
jump weather
"Say goodbye":
return
github
label start:
scene bg room
show eileen happy at left
with dissolve
e "Hello, {b}world{/b}!"
e "You have [gold] gold pieces."
$ gold = gold + 10
menu:
"Ask about the weather":
jump weather
"Say goodbye":
return
2. Variables and screens
define/default statements and a screen block
horizon-dark
define e = Character("Eileen")
default gold = 0
default has_key = False
screen main_menu():
vbox:
textbutton "Start" action Start()
textbutton "Quit" action Quit()
atom-one-dark
define e = Character("Eileen")
default gold = 0
default has_key = False
screen main_menu():
vbox:
textbutton "Start" action Start()
textbutton "Quit" action Quit()
github-dark
define e = Character("Eileen")
default gold = 0
default has_key = False
screen main_menu():
vbox:
textbutton "Start" action Start()
textbutton "Quit" action Quit()
dracula
define e = Character("Eileen")
default gold = 0
default has_key = False
screen main_menu():
vbox:
textbutton "Start" action Start()
textbutton "Quit" action Quit()
nord
define e = Character("Eileen")
default gold = 0
default has_key = False
screen main_menu():
vbox:
textbutton "Start" action Start()
textbutton "Quit" action Quit()
github
define e = Character("Eileen")
default gold = 0
default has_key = False
screen main_menu():
vbox:
textbutton "Start" action Start()
textbutton "Quit" action Quit()
3. Text tags and transforms
text formatting tags and a transform definition
horizon-dark
transform bounce:
ease 0.5 yoffset -20
ease 0.5 yoffset 0
repeat
label show_effects:
show eileen at bounce
"{i}This text is italic{/i} and {color=#ff0000}this is red{/color}."
atom-one-dark
transform bounce:
ease 0.5 yoffset -20
ease 0.5 yoffset 0
repeat
label show_effects:
show eileen at bounce
"{i}This text is italic{/i} and {color=#ff0000}this is red{/color}."
github-dark
transform bounce:
ease 0.5 yoffset -20
ease 0.5 yoffset 0
repeat
label show_effects:
show eileen at bounce
"{i}This text is italic{/i} and {color=#ff0000}this is red{/color}."
dracula
transform bounce:
ease 0.5 yoffset -20
ease 0.5 yoffset 0
repeat
label show_effects:
show eileen at bounce
"{i}This text is italic{/i} and {color=#ff0000}this is red{/color}."
nord
transform bounce:
ease 0.5 yoffset -20
ease 0.5 yoffset 0
repeat
label show_effects:
show eileen at bounce
"{i}This text is italic{/i} and {color=#ff0000}this is red{/color}."
github
transform bounce:
ease 0.5 yoffset -20
ease 0.5 yoffset 0
repeat
label show_effects:
show eileen at bounce
"{i}This text is italic{/i} and {color=#ff0000}this is red{/color}."