An open API service indexing awesome lists of open source software.

https://github.com/seedv/seedlangexamples

Example applications that demonstrate the features of SeedLang.
https://github.com/seedv/seedlangexamples

animation education game-development scripting scripting-engine unity

Last synced: about 1 year ago
JSON representation

Example applications that demonstrate the features of SeedLang.

Awesome Lists containing this project

README

          

# SeedLangExamples

Example applications that demonstrate SeedLang's in-game scripting and
visualization features.

## AppleCalc

A simple project that shows the way how to embed SeedLang into a .Net console
application.

Here is an example run:

```shell
dotnet run --project AppleCalc
] 3+4*(5-3)-4
STEP 1: 🍎🍎🍎🍎🍎 - 🍎🍎🍎 = 🍎🍎
STEP 2: 🍎🍎🍎🍎 * 🍎🍎 = 🍎🍎🍎🍎🍎🍎🍎🍎
STEP 3: 🍎🍎🍎 + 🍎🍎🍎🍎🍎🍎🍎🍎 = 🍎🍎🍎🍎🍎🍎🍎🍎🍎🍎🍎
STEP 4: 🍎🍎🍎🍎🍎🍎🍎🍎🍎🍎🍎 - 🍎🍎🍎🍎 = 🍎🍎🍎🍎🍎🍎🍎
Result: 🍎🍎🍎🍎🍎🍎🍎
] bye
```

## FuncCallTrace

A visualizer that traces the function call history of a script program then
draws the function call graph with Unity animations.

![FuncCallTrace Demo](images/funccalltrace_demo.gif)

## SeedLangUnityCommon

Common libraries for integrating SeedLang with Unity games or applications:

- An in-game code editor for SeedLang. It supports modern IDE features such as
syntax highlighting, auto indention, etc.
- A coroutine-based action queue framework to queue animations or other tasks
into Unity's main thread. With this framework, we can run SeedLang in a
separate thread and synchronize with Unity's main thread easily.

## SortingBot

A Unity project that visualizes common sorting algorithms with the visualization
framework of SeedLang.

![SortingBot Demo](images/sortingbot_demo.gif)

## XyzWalker

A simple and interesting example that shows how to run a python script with
SeedLang and visualize the values of a set of variables during the runtime.

![XyzWalker](images/xyzwalker_demo.gif)