Giter Site home page Giter Site logo

rucchiz / puerts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tencent/puerts

0.0 0.0 0.0 308.37 MB

Write your game with TypeScript in UE or Unity. Puerts can be pronounced as pu-erh TS(普洱TS)

License: Other

Shell 0.10% JavaScript 12.00% C++ 55.34% C 0.49% Objective-C 0.37% C# 19.20% TypeScript 6.95% Objective-C++ 0.08% CMake 5.42% Batchfile 0.05%

puerts's Introduction

Logo

license unreal unity PRs Welcome CI

What?

in English

puerts is a TypeScript programming solution within game engines.

  • provides a JavaScript Runtime

  • allows TypeScript to access the host engine(module-binding on the JavaScript level and generating TypeScript declarations)

说中文

puerts是游戏引擎下的TypeScript编程解决方案

  • 提供了一个JavaScript运行时

  • 提供通过TypeScript访问宿主引擎的能力(JavaScript层面的绑定以及TypeScript声明生成)

Why?

in English

  • Facililates game building processes by combining JavaScript packages and toolchains with the rendering power of professional game engines

  • In contrast to lua script, TypeScript supports static type checking, which significantly improves code robustness and maintainability.

  • High efficiency: supports reflection binding throughout the platform (engine) - no extra steps (code generation) needed for development.

  • High performance:supports static binding throughout the platform (engine) - takes care of complex scenes

说中文

  • JavaScript生态有众多的库和工具链,结合专业商业引擎的渲染能力,快速打造游戏

  • 相比游戏领域常用的lua脚本,TypeScript的静态类型检查有助于编写更健壮,可维护性更好的程序

  • 高效:全引擎,全平台支持反射Binding,无需额外(生成代码)步骤即可开发

  • 高性能:全引擎,全平台支持静态Binding,兼顾了高性能的场景


How to Install | 最新版本安装

Changelog

Known issues | 已知问题与解决办法


Code Sample | 编程样例

Unity

import {UnityEngine} from 'csharp'

UnityEngine.Debug.Log('hello world');
let gameObject = new UnityEngine.GameObject("testobject");
console.log(gameObject.name);
gameObject.transform.position = new UnityEngine.Vector3(1, 2, 3);

Unreal

import * as UE from 'ue'
import {argv} from 'puerts';
let world = argv.getByName("World") as UE.World;
let actor = world.SpawnActor(UE.MainActor.StaticClass(),
    undefined, UE.ESpawnActorCollisionHandlingMethod.Undefined, undefined, undefined) as UE.MainActor;
console.log(actor.GetName());
console.log(actor.K2_GetActorLocation().ToString());

Manual | 参考文档

Unreal

Unity

Sample Projects | 示例项目

Unreal

Unity

FAQ | 常见问题


Avaliable on these Engine | 引擎

  • unreal engine 4.22 ~ latest

  • unity 5 ~ latest

Available on these Platform | 平台

  • iOS,Android,Windows,Macos

  • 任意.net环境 | Any .net project

Ask for help | 技术支持

Github Discussion

QQ群:942696334

UE4专属群:689643903

开发博客

知乎专栏

puerts's People

Contributors

3wz avatar annayxguo avatar b1gm0use avatar blackplume233 avatar bluedoom avatar champinn avatar chexiongsheng avatar cooperkuo avatar dawnarc avatar fishorbear avatar geequlim avatar huzhangyang avatar ialex32x avatar iriskadev avatar jayatubi avatar jejee avatar jihuayu avatar junfupan avatar lcyexiaoci avatar littlesome avatar liuwjchinal avatar ljporljp avatar mingxxming avatar morirain avatar mysticfarer avatar qqwx1986 avatar throw-out avatar xtutu avatar zombieyang avatar zxsean avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.