This commit is contained in:
blueloveTH 2023-06-26 23:34:12 +08:00
parent 2cb1196aee
commit b4f684ff31
4 changed files with 9 additions and 2 deletions

View File

@ -25,6 +25,8 @@ Please see https://pocketpy.dev for details or try [Live Demo](https://pocketpy.
Download the `pocketpy.h` on our [GitHub Release](https://github.com/blueloveTH/pocketpy/releases) page. Download the `pocketpy.h` on our [GitHub Release](https://github.com/blueloveTH/pocketpy/releases) page.
And `#include` it in your project. And `#include` it in your project.
If you are working with [Unity Engine](https://unity.com/), you can download our plugin [PocketPython](https://assetstore.unity.com/packages/tools/visual-scripting/pocketpy-241120) on the Asset Store.
### Compile flags ### Compile flags
To compile it with your project, these flags must be set: To compile it with your project, these flags must be set:

View File

@ -21,6 +21,8 @@ pocketpy是一个轻量级的Python解释器为嵌入至游戏引擎而设计
你可以在 [Github Release](https://github.com/blueloveTH/pocketpy/releases) 页面下载`pocketpy.h` 你可以在 [Github Release](https://github.com/blueloveTH/pocketpy/releases) 页面下载`pocketpy.h`
并加入到你的工程中。请参阅 https://pocketpy.dev 以获取更详细的文档。 并加入到你的工程中。请参阅 https://pocketpy.dev 以获取更详细的文档。
如果你使用 [Unity引擎](https://unity.com/)你可以在Asset Store下载我们的插件 [PocketPython](https://assetstore.unity.com/packages/tools/visual-scripting/pocketpy-241120)。
```cpp ```cpp
#include "pocketpy.h" #include "pocketpy.h"

View File

@ -26,6 +26,10 @@ print(primes)
# [2, 3, 5, 7, 11, 13, 17, 19] # [2, 3, 5, 7, 11, 13, 17, 19]
``` ```
## Unity plugin
If you are working with [Unity Engine](https://unity.com/), you can download our plugin [PocketPython](https://assetstore.unity.com/packages/tools/visual-scripting/pocketpy-241120) on the Asset Store.
## Sponsor me ## Sponsor me
You can sponsor me via [Github Sponsors](https://github.com/sponsors/blueloveTH). You can sponsor me via [Github Sponsors](https://github.com/sponsors/blueloveTH).

View File

@ -7,8 +7,7 @@ order: 4
See `Assets/PocketPython/Examples` after you import the plugin. See `Assets/PocketPython/Examples` after you import the plugin.
### Primes Example
## Primes Example
```csharp ```csharp
using UnityEngine; using UnityEngine;