Intermediate Cookbook
This is a selection of code-snippets that use the more complex
ideas from the intermediate techniques section.
Feel free to copy or alter these to use in your own game.
Text in the code blocks can be cut and pasted into Ren'Py files.
Note: These examples should run as presented, but may contain
errors introduced by conversion and syntax highlighting for these
web pages.
- Base FSM
- A simple base class for a finite state machine with named states.
- Base FSM with Timer
- An extension to the base FSM class that adds a timer.