mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
2cb1196aee
commit
b4f684ff31
@ -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.
|
||||
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
|
||||
|
||||
To compile it with your project, these flags must be set:
|
||||
|
@ -21,6 +21,8 @@ pocketpy是一个轻量级的Python解释器,为嵌入至游戏引擎而设计
|
||||
你可以在 [Github Release](https://github.com/blueloveTH/pocketpy/releases) 页面下载`pocketpy.h`,
|
||||
并加入到你的工程中。请参阅 https://pocketpy.dev 以获取更详细的文档。
|
||||
|
||||
如果你使用 [Unity引擎](https://unity.com/),你可以在Asset Store下载我们的插件 [PocketPython](https://assetstore.unity.com/packages/tools/visual-scripting/pocketpy-241120)。
|
||||
|
||||
```cpp
|
||||
#include "pocketpy.h"
|
||||
|
||||
|
@ -26,6 +26,10 @@ print(primes)
|
||||
# [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
|
||||
|
||||
You can sponsor me via [Github Sponsors](https://github.com/sponsors/blueloveTH).
|
||||
|
@ -7,8 +7,7 @@ order: 4
|
||||
See `Assets/PocketPython/Examples` after you import the plugin.
|
||||
|
||||
|
||||
|
||||
## Primes Example
|
||||
### Primes Example
|
||||
|
||||
```csharp
|
||||
using UnityEngine;
|
||||
|
Loading…
x
Reference in New Issue
Block a user