Lysithea Scripting Language
Overview
A handle of basic examples of the Lysithea scripting language running in the browser. Check out the repository for more details.
There are two Unity examples as well, both of these can be found in the repository as well:
- Drawing: Example of creating elements.
- Dialogue: Example of a game dialogue system.
Note: While these work on mobile, they are definitely not mobile optimised and currently there is an issue with input fields and mobile keyboards. Simple Example
Includes the standard library.
A simple example of creating a function and running it.
Loop Example
Includes the standard library.
A simple example looping example.
Performance Test
Includes the standard library with a rand functions.
A basic performance test, the main thing this is testing is calling functions from outside of the VM. Ideally this should not take longer than 1 second to run.
Conditionals
Includes the standard library with a function for getting user input, waiting and random number.
An example of how conditionals work and how they can be used as expressions too. Note that there is a deliberate delay between prompts otherwise you would not see the output in the console.
Page Set
Includes the standard library with setBackground, setTheme and random functions.
A somewhat contrived example of adding some extra functions for interacting with the page.
In this example there are two extra functions setBackground and setTheme.
setBackground has three inputs purple, grey and green.
setTheme has two inputs light and dark.
random.pick takes a list of arguments and will randomly return one of the values.