Brief Explanations: Renpy’s Coding Format

Below are screenshots of some of Taylor’s coding work in Renpy. There are various commands included, all with different functions and implications for the finished website.

First of all, there is the red text indicating the start of the game; a similar command marks the end of this sequence.

Second, there’s the ‘label’ command marking the beginning of the sequence; this simply identifies the location within the code.

Next, there’s the ‘play music’ command. As discussed in one of our previous posts, this causes the audio file listed to loop on the specified page of the website. The desired audio file is simply named after the command.

The ‘scene’ command established the background image for the page; again, the desired  image is named after the command.

Text strings are listed for various pages after various commands; for example, after the ‘menu’ command (which creates a menu for the user to choose from) the options on that menu are listed (along with the text strings that will show on the screen after an option is chosen by the user).

Happy coding!