Reference Manual: (offline | online) Quickstart: (offline | online)

DynamicDisplayable

Example

init:
    python:
    gm_background = "gmbg1.png"

    def game_menu_background(st, at):
        return gm_background, None

    style.gm_root.background = DynamicDisplayable(game_menu_background)

label start:

    "Here, we'll show the game menu with background 1."

    $ gm_background = "gmbg2.png"

    "Now, we're showing it with background 2."
Reference Manual: (offline | online) Quickstart: (offline | online)